Splits a brep. A brep can be either a surface with a single face or a polysurface.
rhinoscriptsyntax.SplitBrep (brep, cutter, delete_input=False)
brep |
Required. String or Guid. The identifier of the brep object to split. |
cutter |
Required. String or Guid. The identifier of the brep object to split with. |
delete_input |
Optional. Boolean. Delete input brep. If omitted, the input brep will not be deleted (False). |
List |
The identifiers of the new brep objects if successful. |
None |
If not successful, or on error. |
import rhinoscriptsyntax as rs
filter = rs.filter.surface + rs.filter.polysurface
brep = rs.GetObject("Select brep to split", filter)
cutter = rs.GetObject("Select cutting brep", filter)
rs.SplitBrep ( brep, cutter )