Grasshopper

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

Views: 1508

Replies to This Discussion

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

Attachments:

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

sorry again for the "delay in understanding"

i have an open brep - basically a loft between two curves

which i want to split with an extruded curve.

this didn't work until i extruded the open brep , why is that?

thanks

amir

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service