Want to clip a mesh by using MeshSplit. It processes a few seconds and produces nothing. Any ideas?
Not sure why you say nothing is produced. Opening your file gives:
Are you perhaps just confused that nothing is drawn in a document where the viewports are looking on world origin? Your object is far, far away from world origin.
On the right in the image below a 10x10x10 box at world origin, on the left your mesh.
If you want the results to be around world origin you need to move the original mesh and the splitter geometry, but it is not required to get your results.
Thanks for your suggestion, but the location is actually correct. For some reason this script doesn’t
work for me.
Going from the tag for this post you’re using Rhino 6?
At least it works in Rhino 7, so in all likelihood fixes were made to the splitting code that made it work in Rhino 7. You’ll probably have to upgrade to that to be able to get the results you are looking for.
What puzzles me is that the same code worked 2013:
Probably because the mesh is more complex. If anyone still has Rhino6, I would love to hear if the code works for you.
Given the opportunity: the Mesh.Split (…) Methods work … when they work. See this C# where an user oriented Box defines 3 splitting Planes (red, green, blue) and (a) either gets all the pieces or (b) the “oriented” ones (spot the Z Vectors indicating orientations) - the latter option mimics a “multi” Clip effect so to speak.