I got a Solid and want to trim a part of a surface thats not withini the Solid. How to do this?
I’ve tried:
Geometry.Brep.CreateBooleanIntersection(Brep1, Brep2, doc.ModelAbsoluteTolerance)
but doesnt work with a srf. Missing something here or wrong command?
yes I’ve tried that but its only working with solids somehow.
Deleted it accidentaly. I’ve had something like":
Dim object1 As DocObjects.ObjRef = Nothing
Dim rc = Rhino.Input.RhinoGet.GetOneObject("Object1", False, DocObjects.ObjectType.AnyObject, object1)
If rc <> Result.Success Then
Return Nothing
End If
Dim object2 As DocObjects.ObjRef = Nothing
Dim rc = Rhino.Input.RhinoGet.GetOneObject("Object2", False, DocObjects.ObjectType.AnyObject, object2)
If rc <> Result.Success Then
Return Nothing
End If
Dim NewBrep as geometry.brep = Geometry.Brep.CreateBooleanIntersection(Object1.Brep, Object2.Brep, doc.ModelAbsoluteTolerance)
doc.objects.addbrep(NewBrep)