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
vertex indices #69
Comments
Not sure if this is helpful, but just in case: I had a similar requirement. I wanted to take 3d-planar polygons and triangulate them. To do that I did a 3d-to-2d projection (throwing away the least useful dimension in the 3d coordinates and passing the other two into spades 2d-triangulation). As an output I required a datatype like: Vec<[usize; 3]>, where each list item is a triple of indexes into the original vertices list representing each triangles' vertices that the delaunay creates. Then since my 2d projection vertices list of coordinates has the same order as my 3d-list of vertices I now have my polygon traingulated into triangles in 3d space. I acheived this by using the support for a custom number type:
|
Agreed, this should be solved my making |
You sometimes represent a mesh with an array of vertices, and an array of triangle indices. I would construct such an array with something like:
Except, in spade 2.0, the index method is private. Is there another way?
The text was updated successfully, but these errors were encountered: