I have a polygon mesh. I need to triangulate it to visualize with OpenGL. I am using SurfaceTriangulation to do this (I see the example visualization code has its own built-in visualization routine).
When the triangulation is complete, the 'new' triangles do not have the face_properties of the polygon they came from.
In this case, I have normal vectors stored in a face_property. When I triangulate the polygon mesh, I would expect the new triangles to inherit (copy) the face properties of their parent face. Sometimes this data will be correct (normal vector) -- other times it might not make sense (area).
I could potentially lookup the data, but I don't see any way to obtain the 'parent' face for all the new tris.
Obviously I can recalculate a normal vector, but in the near future I will also need to assign other properties like color etc.
Suggestions are appreciated.
I have a polygon mesh. I need to triangulate it to visualize with OpenGL. I am using SurfaceTriangulation to do this (I see the example visualization code has its own built-in visualization routine).
When the triangulation is complete, the 'new' triangles do not have the face_properties of the polygon they came from.
In this case, I have normal vectors stored in a face_property. When I triangulate the polygon mesh, I would expect the new triangles to inherit (copy) the face properties of their parent face. Sometimes this data will be correct (normal vector) -- other times it might not make sense (area).
I could potentially lookup the data, but I don't see any way to obtain the 'parent' face for all the new tris.
Obviously I can recalculate a normal vector, but in the near future I will also need to assign other properties like color etc.
Suggestions are appreciated.