Hi!
Your problem is the fact that you are trying to cut a mesh exactly alongside a loop of edges, so you are trying to “split in half” a lot of edges and vertexes…
This happens because you have a box with 10 faces as height, and splitting it exactly at half will result in a cutting plane exactly between 5th and 6th face, and there rhino go crazy.
Simple workaround: use a 11-face box.
11 is a prime number, it’s very unlikely you’ll encounter the same situation again… Fixing Mesh Problem re.gh (22.5 KB)
Hello Daniel, thanks for the reply.
I am actually experiencing the mesh problem with that network you created earlier.
It was extremely helpful, but the mesh problem always messes some values, and I am not able to correct it.
As you can see from the test Mesh … it works with any Mesh that is closed and valid (a manifold test is rather required as well). It could (with some lines more) work with any GeometryBase Type that is either a Mesh or a Brep (auto converted to Mesh). Obviously if the Mesh has 1Z Vertices … it’s a bit slow. In fact it could work with any Brep as well (but would be way slower - most notably if the Brep is a complex “blob”).
Notify if you want to work with Mesh Lists (a few mods are required for that).
BTW: You don’t need to know anything about C# mind.