Get mapping after remeshing #4702
Replies: 2 comments
-
Hello! The easiest way is to use these callbacks to track topology updates during remesh: MeshLib/source/MRMesh/MRMeshDecimate.h Lines 276 to 279 in a838bfc Also you can mark region boundary edges as non-flappable. |
Beta Was this translation helpful? Give feedback.
-
If you re-mesh some region on a mesh, then you specify it in As to exact mapping, between old and new triangle, it may not always exist, because only region boundaries and manually specified edges are maintained. Other edges can move during re-meshing. So one new triangle can partially overlap several old triangles and vice versa. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
When remeshing the blue area in the image below, the border edges can get subdivided or merged into a longer edge.
It is simple to get the face_bitset after remeshins of the newly added faces in the requested region.
But there are faces lost and added along the region boundary.
Is there a way to easily get a mapping of these faces from
oldFaceID
->newFaceID
or is there another way you would manage this?We would need to map regions to before and after remeshing, and these faces mess with our logic since the number of faces and indices no longer match
Beta Was this translation helpful? Give feedback.
All reactions