Trim.Brep(Plane,Tolerance ) vs Trim.Brep(Brep,Tolerance )

Hi there,

I would like to use the Trim.Brep method in Iron Python, however I selected the Brep surface as cutter, Rhino still expect the Plane.

import Rhino
import rhinoscriptsyntax as rs

objBrep = rs.GetObject ( "SelectBrep", 0, False, False, None, True)
cut = rs.GetObject ( "Select cutter", 0, False, False, None, False)

cut = rs.coercerhinoobject(cut)

print objBrep.Brep().Trim(cut,0.01)

how about cut = rs.coercebrep(cut)?

1 Like

Thanks for the hint. It works perfectly!