Skip to content
Discussion options

You must be logged in to vote

The matching problem disappears if the curves are never created independently. Build the border row by row as mesh topology first, and assign positions afterwards: every row then has exactly the vertices of C, the correspondence is the mesh itself, and offsetContours - the only step in your pipeline that looks at the projection globally and can weld branches - is not used at all.

Recipe (all native, the attached script does it in ~100 lines):

  1. findRightBoundary( mesh.topology ) gives the loop C with the hole to the left of every edge, vertices in order.
  2. For every row of the profile call makeDegenerateBandAroundHole( mesh, e, &newFaces ). It returns the edge of the new hole opposite to e, so

Replies: 6 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

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

Comment options

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

Comment options

You must be logged in to vote
2 replies
@netemadi9
Comment options

@netemadi9
Comment options

Answer selected by Fedr
Comment options

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

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants