Using the C++ API is it possible to get the order of encoded points?
We have generic attributes that we don't want to store in the draco buffer and we need a way to reorder them in case points get ordered differently during encoding. Ideally the encoder would provide an array of the new point indices.
Workarounds that we're considering:
- Use
POINT_CLOUD_SEQUENTIAL_ENCODING. We're trying to avoid that.
- Add an index attribute alongside position and other attributes, encode points, decode points, get new point indices from the index attribute and reorder non-draco attributes, re-encode without index attribute. I'm not sure if this actually works or is practical.
Is there another way that we're missing?
Using the C++ API is it possible to get the order of encoded points?
We have generic attributes that we don't want to store in the draco buffer and we need a way to reorder them in case points get ordered differently during encoding. Ideally the encoder would provide an array of the new point indices.
Workarounds that we're considering:
POINT_CLOUD_SEQUENTIAL_ENCODING. We're trying to avoid that.Is there another way that we're missing?