Hi
In Rhino8 Script Editor python 3:
from an excel file : I’m reading point coordinates, creating vertices, creating triangular surfaces.
I have around 30,000 triangles
df_meshinfo_minimal[‘Triangle_Brep’] is a column in the dataframe containing the rhino objects generated through RhinoGeometry.NurbsSurface.CreateFromCorners
Next I want to write these into Rhino, which I’m doing like this:
for brep in df_meshinfo_minimal['Triangle_Brep']:
if brep:
sc.doc.Objects.AddSurface(brep)
rs.Redraw()
It looks to me that the OPs script has already done that.
If all them triangles happen to be created so that Rhino can join them, then joining before adding to the document might be faster.
Also I don’t know how much faster , but it definitely will be at least a little faster to add the breps directly to the Rhino document instead of calling another script to do it for you.
I haven’t done meshes in Rhino Gh before, let me take a look what that means.
for what I’m doing, I could use a couple of nurbs surface by combining these triangles based on some parameter. I was going to use lunchbox join brep tool to do that once everything was in Rhino.
some of these triangles in the same category are offset from each other. The brep join tool (lunchbox), joins as much as geometry as possible and returns the minimum number of breps. I would want the two breps in blue and yellow highlights
Is there a way to do this in Rhino?
It has two category labels, each of which contain several hundred mesh labels, each mesh label is associated with 3 vertices, whose coordinates are identified as V1, V2, V3. My goal is to get the least number of breps/ surfaces possible for each category label.