Lei_Yang1
(Lei Yang)
June 19, 2018, 10:35am
1
Hello guys,
I`m trying to call a function in RHINO5 called ‘MeshSplit ’ into GH Python.
Imported Libraries:
Rhino,
RhinoScriptSyntax
However when I use function “r.Geometry.Mesh.Split()”, the fucntions avaible are only by Mesh and Mesh, Mesh and Plane. pls see pic below
But In RHION5, the mesh could be splited by curve. pls see the pic below.
So… I was wondering if I import the correct library?
Thanks in adcvance!
Lei
Gijs
(Gijs de Zwart)
June 19, 2018, 8:21pm
2
Native Rhino commands and Methods in scripting are often different… don’t be confused by similar names. For example here you can find methods you can use for meshes:
http://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_Geometry_Mesh.htm
What Rhino probably does behind the scenes, is extrude the curve through the boundary box of the mesh, then mesh the result and do a Mesh/Mesh split operation. So this is the way you could replicate it in a script.