Grasshopper

algorithmic modeling for Rhino

Hey all,

What is the best way to split a surface in RhinoCommon? SrfSplit in grasshopper is ridiculously slow. In Rhino I am able to select a surface and then split it with a set of curves almost instantaneously, so I was hoping there would be a solution in RhinoCommon. I asked this question before and the current solution is this:

import Rhino.Geometry
temp1=Rhino.Geometry.BrepFace.Split(mybrep.Faces[0],mycurves,mytolerance).Faces

temp2=[]

for i in temp1:

    temp2.append(i.DuplicateFace(False))

a=temp2

The problem with this method is that it still runs significantly slower than in Rhino. I'm still a bit fuzzy as to why my trimmed surfaces need to be converted to breps (mybrep is actually a trimmed surface in Rhino, but I changed the hint to say that it is a brep). The other thing I am not understanding is why I need to do DuplicateFace() (why can't temp1 be the split geometry)?

Views: 4895

Replies to This Discussion

That is really good news. So for me get this faster version I have to install Rhino WIP? Does this fix also apply to the component SrfSplit (since it's pretty much does the same thing)?

Yes the fix is for the entire RhinoCommon domain in Rhino WIP.

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

i have also been looking for a faster way to split surfaces with curves, if you ever find a way, please post it. I mostly use grasshopper to modulate surfaces and that includes studying different modulations for a given surface, so i am often facing this problem.
thanks :)
How do i download Rhino 6 WIP? (sorry if this is a silly question but i couldnt find it in the Rhino webpage)

It may have changed, but i think still currently in Private Beta. Best place to look if its available to download is the Rhino forum:

http://discourse.mcneel.com/

Though if I remember right when Rhino 5 became a Public Beta its was listed on the Rhino splash screen as you started. Sorry i can't help more

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