Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert mesh regions to 2d, alter in 2d, push back into 3d mesh #182

Open
wtaisto opened this issue Nov 19, 2022 · 0 comments
Open

Convert mesh regions to 2d, alter in 2d, push back into 3d mesh #182

wtaisto opened this issue Nov 19, 2022 · 0 comments

Comments

@wtaisto
Copy link

wtaisto commented Nov 19, 2022

Thank you so much for this fantastic set of tools!

My project involves meshes build up from geometric primatives, which have mostly flat faces joined at right angles. I need to be able to find those continuous flat faces, manipulate them in 2d, then merge the changed region back into the 3d mesh.

I already have code working which:

  1. builds a distinct list of all triangle normals in the mesh (with some floating point fuzz)
  2. uses MeshConnectedComponents to take each group of coplanar triangles and get the connected coplanar subsets
  3. uses MeshRegionBoundaryLoops on each connected coplanar subset to get the outer perimeter and any holes

What i'm not sure how to do is to take those 3d regions, project them into one of your 2d classes, modify the interior of the 2d object (like, say, cut a hole) WITHOUT CHANGING THE BOUNDARIES, unproject the new 2d back into 3d and merge it back into the 3d.

Any recommendations on which of your classes I should look at, or a general gist of what my process should look like, would be hugely appreciated.

Thanks again for sharing this with the community!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant