Skip to content

Is it possible to get the order of encoded points? #584

@lilleyse

Description

@lilleyse

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:

  1. Use POINT_CLOUD_SEQUENTIAL_ENCODING. We're trying to avoid that.
  2. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions