Forgetting to add some RCAttributeType to RCPointBuffer has no consequence

Forgetting to add some RCAttributeType to RCPointBuffer has no consequence

lamorlette
Advocate Advocate
650 Views
1 Reply
Message 1 of 2

Forgetting to add some RCAttributeType to RCPointBuffer has no consequence

lamorlette
Advocate
Advocate

I use RCProjectImportSession to create a RCP, and I add scans to it via RCPointBuffer.

I've just realised that if I omit to call RCPointBuffer::addAttribute(RCAttributeType::Position) (and RCPointBuffer::addAttribute(RCAttributeType::RowIndex) and RCPointBuffer::addAttribute(RCAttributeType::ColumnIndex) for structured scans), it has no consequence: the calls to RCPointBuffer::setPositionAt() (and respectively to RCPointBuffer::setRowIndexAt() and RCPointBuffer::setColumnIndexAt()) don't trigger any error or exception, and the resulting RCP is perfectly fine.

0 Likes
651 Views
1 Reply
Reply (1)
Message 2 of 2

martin.graner
Contributor
Contributor

I thought these attributes are used to speed up the calculation process and give a starting point for the intern resampling, but it would work perfectly fine if you don't set them.

0 Likes