algorithmic modeling for Rhino
Hello.
I am trying to split a Brep(converted surface) using a plane which is based on the UV values of the surface.
I have consulted RhinoCommon SDk and it explains that there is a split command for Brep's, but after an hour of trying every possible combination of verbage, i am unable to locate the proper syntax.
Has anyone successfully used the split command for a Brep? A split for curve or even a plane would work just as well if any of those are available.
Thanks!
Erin
Tags:
Hi Erin,
there is no method for splitting a Brep with a Plane. What you need to do is create an actual plane (a surface), then convert that to a Brep and use the Split method with this cutting Brep.
You can use the Plane.ExtendThroughBox method in conjunction with the Brep boundingbox to make sure your cutting plane is big enough.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hey David,
I tried syntax for split method but was unsuccessful. What i did manage was to create surface (P) and...
Dim Pbr As Brep = P.ToBrep
Dim bfl As rhino.Geometry.Collections.BrepFaceList = Pbr.Faces
Dim bf As brepface = bfl(0)
Dim bs As brep = bf.Split(intcrvV, 0.1)
Dim bsF As rhino.Geometry.Collections.BrepFaceList = bs.Faces
but now the issue is that though it technically splits the brepface, it is not in 2 seperate faces. It remains as one "surface" with a cut line at my split curve. Is there a way to byref 2 seperate pieces?
Hope that is clear,
Thanks!
Hi Erin,
you should call Split on the entire Brep, not the individual faces.
I attached a ghx with a VB component for this.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
thanks ! i was just looking for this and it really helped !
:)
David,
that greatly helped me.
on another issue,
maybe i'm missing something, but what can i do if i want to split that brep with a curve that i've projected on the my open brep? basically i'm trying to split a brep with a curve? like the rhino command - split
thanks a lot
amir
Hi Amir,
you'll need to extrude the curve through the brep. That's what the Rhino command does as well.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by