Hatch from points

I made a script that creates the stopping sight distance lines in 3D.
That works well, but I have to create a hatch with the boundary of those lines.
I have the points that have to be bounded as well.
I have tried ConvexHull, but the shape is obviously not convex :sweat_smile:
I have tried Delaunay, but I have to get rid of outside edges, and still only have curves
I have tried Mesh.ByPointsFaceIndices, I have no idea how it works.

So, any ideas how to create a closed curve around the points?

My boss wants a 3D mesh, but I think that is stupid, as the lines are skew lines, so I pulled that on the XY plane.


1 Like

Hi,
Have you tried doing an intersection between each line and the others? After deleting duplicate points, I think you will get the boundary.

Well, I got the points from the intersection on the lines on the 2D plane. What I donโ€™t know is how to get only the ones on the perimeter (the ones you showed) as there are multiple crossings on every line.
Also, while the shape itself looks selfintersecting I need the non-selfintersecting boundary.

Could you send something to test? For example, the lines and the axis in a DWG file.

I tried with sample lines, and I got the boundary points with these nodes.

Thanks, I tried to only get the intersection of the consecutive lines, like you did, but didnโ€™t work.
I attach a dwg with the 3d lines.

visibility lines.dwg (1.2 MB)