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)?
Tags:
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
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:
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
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
© 2024 Created by Scott Davidson. Powered by