hello everyone, I am using Delaunay mesh and I want to sort groups of vertical, horizontal, and diagonal lines separately.
i would appreciate if anyone can help me?
thank you !!
hello everyone, I am using Delaunay mesh and I want to sort groups of vertical, horizontal, and diagonal lines separately.
i would appreciate if anyone can help me?
thank you !!
Hi,
maybe you could post a file with the geometry internalized.
Regards!
first find the two end points of all the mesh lines.
compare their xyz.
Here are some hints as to how to sort the curves:
kindly if you have an example ???
best regards
If you use Delauney in the shown collection … have in mind that the algo is NOT written for non planar collections (a Ball Pivot is better suited for that).
But you are out of target anyway: is waaaaaay better to define a Surface (or a BrepFace [holes, trimmed outLoop etc etc]), divide in U/V and then instead of classic Surface pieces get the Mesh Faces from a given quad pts collection. That way you have absolute control upon what’s going on [plus the “orientation” of triangles - if you are after triangles].
As a very naive example see the attached (FYI: code is used for the triangulation AND for the edge clustering in U/V/Diagonals).
Mesh_FromSurface_ToTriMesh_V1.gh (127.7 KB)
Here’s one way to group and sort the lines in your file:
parallel lamella_re02.gh (33.5 KB)
-Kevin
thank you it’s helpful !!
I will be grateful if you can show me how to sort the rings in this example ??
From the file I posted above:
All of the lines were sorted previously by thier Z-Position by the red group.
This shows the grouping and ordering of the “ring lines”:
You can pass them through a Flip Matirx component if you prefer this ordering:
-Kevin
thank u so much!!