algorithmic modeling for Rhino
Hello
I have a lot of lines in 3D,and want to find the closed loop to detect polygonal surfaces.
After i get polygonal surfaces
How to find close space to detect polyhedron?
What the concept is ?
By the way, the lines are large number.
I attach the node .csv file ,and it means the start point and endpoint of the line.
Thank you for any advices.
Tags:
Hello
not an easy task ! The first one was to put your points in Excel and to Grasshopper. Internalize date in grasshopper it is more simple for helping.
At the moment I have no clear solutions, I began to make a bit of topology. Here is the script, it is similar to sandbox. It gives relation between points (line 1 is with point X and Y)
Point YY is linked with points a b c ...
So an algorithm could be begin with a point, choose 2 lines connected to this point find next point connected to these line and not to far from the plane generated by the plane defined by the first 2 lines continue until you close the loop or before counting xx points so you will have faces and after that ??
Hello,
I continue to work a bit on this. It is not simple, it works now for a low (very low :() number of lines.
I changed the logic, I choose first a point, then 2 points connected to it. So it is used to calculate a direction of a plane containing the 3 points. After that next points are tested if they have quite the same direction as the first plane. There is a recursion if it works. Recursion end
if limit in size is obtained (no polygon with more than xx points)
if angle is too big
if the next point is the same as the beginning of polygon.
The problem now is that it generates many polygons on the same place. It could (must) be filtered.
Here an example with 3 twisted hexagon (5°, 10° and 15°). Depending on angle threshold there is not the same number of same hexagon on each one.
Spaghetti a la salmonela.
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
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by