Hi community,
I have a mesh that shares some corners (but not all edges) with a BREP of the same shape. I’m trying to match vertices on the mesh (big number) to vertices on the BREP (small number). Could you please give me some guidance?
My end goal is to get a mesh quad version of the BREP. I want [1] the sharp corner (there are four in this example) of the mesh and the BREP to coincide exactly, and [2] vertices on the mesh to lie on the contour of the BREP, and [3] to follow WB subdivision’s scheme (for a BREP edge, predictable number of mesh vertices fall on it.)–this seems impossible with quad remesh, so I’m trying out alternative way here (to make mesh vertex with big number K move to the position of point on BREP boundary with small number k).
The mesh comes from connecting sharp corners of the BREP and weaverbird constant quad subdivision (it doesn’t support BREP).
I want to do this reasonably fast, so I ruled out trying to get closest points for everything.
Instead, I try to sort along curves, so that these points line up. I visualize the alignment with numbers.
The problem here is, the alignment is off by one position. I’ve reparametrized the curves to have the same ‘start’ t position, but it didn’t help.
Many Thanks, and sorry for the verbose explanation
matching.gh (31.6 KB)
Note: for clarity, I hid the BREP in the above picture. It’s important that this works for BREPs with =/= 4 ‘edges’ (by which I mean tangency or above continuity naked edges, broken by contact continuity naked vertices)