Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 4159

Rhino 7; SplitMeshWithCurve issue

$
0
0

Hello,

I’m in the process of converting Rhino 5 scripts into Rhino 7 scripts, and I got weird results using SplitMeshWithCurve function.

Here is the mesh I’m tring to split, with the splitting curve:

Here is the result:

The big mesh remains, and some triangles make another mesh (shown in yellow)

Here is the testing code:

mesh = rs.ObjectsByLayer(“Input_Mesh”)[0]
curve = rs.ObjectsByLayer(“Input_Curve”)[0]

cmd="-_SplitMeshWithCurve " + "_Selid " + str(rs.CopyObject(mesh)) + " " + "_Selid " + str(curve) + " _Enter " + " _Enter "
rs.Command(cmd, echo=True)
split = rs.LastCreatedObjects()

And the 3dm: SplitMeshWithCurveBug.3dm (1.0 MB)

Thank you!

Alexandre Filiatrault

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4159

Trending Articles