Hi everyone !
These are GRC molds. Models are solid. I have a lot of molds. Every molds are similar but not same. All models contain two “V” form cover .(Left-right and dimentions secont picture). I want to make with with Grasshopper automaticle. My problem is molds model’s vertexs and edges number are differens. How the numbers become the same?
Hi everyone !
Can you please internalize your geometries?
(right-click internalize on Brep parameters)
You’ll need to sort the vertex points along world axis and/or some other way to get a reliable order…
Sorry I do not understand you ! I am new on GH. Can you show me?
Generally Rhino contains geometry (heavy data, lot of points, curves etc) and grasshopper is a light small file containing only code.
Inside grasshopper there are the params (like the “Brep” you used) which can cointain REFERENCED geometries , that is just a “link” to the actual rhino file geometries, not the geometry itself.
As you attached the .gh file only and not also the .3dm , it does not contain the geometries.
But, you can also save the geometries inside the param object.
You need to “internalize” your geometries (to save them inside the .gh file) in the Brep params.
See the video at point 3 here: How to ask effective questions
(Also, see that whole post…)
ok. I added the Rhino file
gh_V2.gh (14.5 KB)
The vertices of a brep (or polysurface) are in a almost random order.
A method to get the ordered points of a face, is first to get the face, i did so by sorting along X.
Then, for each face (that is a rhino surface) convert it into a curve, and adjust its seam (start/end point) in way that will give a predicable result.
(also we know that the direction clockwise/counterclockwise is constant because of the normal of the face is always out-going from the brep).
Try to study this a bit.
It already have a tree structure, if you want it simpler, bypass the Merge component and use a single Brep at time.
Thank you so much.