I’m looking all over the documentation for the equivalent of the “SplitMeshWithCurve” command. I want to be able to call this from a Grasshopper component. The basic use-case is batch splitting of a mesh by many splitting curves.
The only alternative I can think of right now is to use RunScript to repeatedly call the command in Rhino…which is quite inconvenient. Given that the command is a multi-step operation (select mesh, select curve, etc) I don’t think it’s even possible to carry out operations in grasshopper via RunScript without some form of user-interaction in Rhino (the user would have to select the splitting curve). That’s not feasible for my use case because there are too many splitting curves and it would defeat the purpose of automation.
Is the code for SplitMeshWithCurve accessible somewhere that I could implement into my solution?
The functionality behind SplitMeshWithCurve is not exposed in the Rhino SDK. I know mesh intersections are being overhauled for Rhino 7, so perhaps we’ll see something available in an API in that release.
I have a Python script that does this. Would that be of any help? I should warn you that it is somewhat complicated, spanning several thousand lines of code. But it is super fast compared to Rhino’s Mesh Split command.