Skip to content
Discussion options

You must be logged in to vote

I'm very curious to see how you designed your repair pipeline such that the performance bottleneck is the mesh creation.

Anyway, you first need to create the Surface_mesh and allocate memory. For that you can use reserve().

Then you need to add the vertices and set the points. For that you need to use add_vertex().

Then you need to create edges are link them together and to incident faces.
To add an edge, you can use add_edge(). Note that it is important to add edges only once. The function will return a halfedge, corresponding to the oriented edge, pointing in one of the two (at most) incident faces.

Then you need to add faces. You can use add_face().

I don't know what information exactl…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@vladgl
Comment options

Comment options

You must be logged in to vote
1 reply
@vladgl
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by vladgl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants