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

support for quad meshes #119

Open
nitinagarwal opened this issue Aug 30, 2023 · 2 comments
Open

support for quad meshes #119

nitinagarwal opened this issue Aug 30, 2023 · 2 comments

Comments

@nitinagarwal
Copy link

Does xatlas support unwrapping and packing of quad meshes?
Is that on the roadmap?

@rondreas
Copy link

It is supported, when you make the xatlas::MeshDecl give it a vector of int for number of vertices per face,vector should be size of face count

// Optional. Must be faceCount in length.
// Polygon / n-gon support. Faces are assumed to be triangles if this is null.
const uint8_t *faceVertexCount = nullptr;

@nitinagarwal
Copy link
Author

Thanks for your reply.
Do you also support quad meshes which already have uvs.
A potential use case could be to just use the xatlas packing algorithm with predefined uvs.

I couldnt find it in

struct UvMeshDecl

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

2 participants