The 3D Tiles PNTS format defines the RTC_CENTER property that can be used to store points in a local coordinate system. This PR provides the option to have a PNTSReader automatically shift the points during reading from the local coordinate system to the global coordinate system by adding the value of RTC_CENTER. Since we don't always want this, it is an option on the PNTSReader.
As an added bonus, I finally implemented the PointBufferWriteableExt extension trait, that provides methods for setting attributes and points, and a possibly very useful method transform_attribute that takes a closure through which all values of a single attribute can be modified.
The 3D Tiles PNTS format defines the
RTC_CENTER
property that can be used to store points in a local coordinate system. This PR provides the option to have aPNTSReader
automatically shift the points during reading from the local coordinate system to the global coordinate system by adding the value ofRTC_CENTER
. Since we don't always want this, it is an option on thePNTSReader
.As an added bonus, I finally implemented the
PointBufferWriteableExt
extension trait, that provides methods for setting attributes and points, and a possibly very useful methodtransform_attribute
that takes a closure through which all values of a single attribute can be modified.