Perimeter Contour slicing of voxel mesh

I am trying to slice this voxel mesh so the resultant curves represent the boundary (perimeter) of the mesh. When I use the contour node I am not getting closed curves. I assume this has to do with the voxel mesh having non-manifold shapes within it?

I think perhaps I need to try the approach of merging together regions to obtain the perimeter shape? Any guidance would be appreciated.

Mesh is internalized.

Thanks so much in advance

Voxel Slice.gh (748.4 KB)

The right method would be Make2D, I tried it and it didn’t give a satisfactory result.
I attach a possible solution.
Voxel Slice a.gh (758.0 KB)

Thank you so much for posting this. I was able to fix my problem after reviewing your graph. It seems I needed to add a trim tree node which I wasn’t thinking of until I saw yours. Thank you!

Here is the solution I came up with. I am using 2 plugins: pufferfish and MeshNakedEdges. Is there a way to embed the addons I am using similar to internalizing data?

Data is internalized.

I realize the contour tool may be the better choice but with the various overlapping regions this solution was working well until I came across a few pieces of weird geometry.

Any guidance would be stellar.

The problematic geo does have a nonmanfold edge, but the resultant bogus line work is not located in in that exact location. Not sure if it is related?

Slicer Forums.gh (42.8 KB)

With Mesh/Plane there seems to be no errors.
I moved the planes slightly just to highlight the intersection.
Slicer Forums a.gh (50.4 KB)

2 Likes

Wow this works magic. Thank you so much! The mesh plane node is so simple. I was overcomplicating it.

Just wanted to say thanks again. Been using this script this week and this method is bulletproof with the geo I throw at it. Cheers!!!

Glad to have been helpful.