Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to encode triangle strips? #423

Closed
FreddyFunk opened this issue Jun 15, 2018 · 4 comments
Closed

How to encode triangle strips? #423

FreddyFunk opened this issue Jun 15, 2018 · 4 comments

Comments

@FreddyFunk
Copy link
Contributor

Hello,

I saw the file "mesh_stripifier.h" and am courious, how to initialize a Draco Mesh with triangle strips and if the C++ Encoder and Decoder could handle triangle strips with primitive restart or with degenerated triangles in a Mesh as input.

Kind Regards

@ondys
Copy link
Collaborator

ondys commented Jun 16, 2018

mesh stripifier is used only to generate triangle strips out of an existing draco::Mesh but draco::Mesh itself does not support triangle strip representation. If you want to encode triangle strips with draco, you need to "unroll" the strips to regular tri-list representation and then stripify the decoded mesh (but the strips will be most likely different compared to the input mesh)

@FreddyFunk
Copy link
Contributor Author

Ok, thank you for this information. Do you know which algorithms have constraints that prevent the draco encoder to work directly on triangle strips?

@ondys
Copy link
Collaborator

ondys commented Jul 4, 2018

The main algorithm used by Draco is based on the Edgebreaker method that encodes the connectivity in a specific pattern that does not follow triangle strips. Strips could be theoretically encoded directly with the sequential encoding method, but we currently don't have a support for that

@guanprco
Copy link

Hi @ondys,

Draco implementation has references to mesh sequential encoding in a few places:

  • class MeshSequentialEncoder cf src/draco/compression/mesh/mesh_sequential_encoder.h
  • class MeshSequentialDecoder cf src/draco/compression/mesh/mesh_sequential_decoder.h

Is sequential encoding now supported, meaning it should be possible to use Draco to exchange triangle strip?

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants