Parallel line

All of these blue lines are equal in length. Can this line be isolated from them?
Does anyone have a suggestion?


Maybe filter out the line(s) that intersect with more than two points/lines?

Curve.PointAtParameter on every curve, with the curve input set to level 1 and the parameter set to a list of [0,1], into a List.Flatten node to remove the list structure. Follow that with a Point.PruneDuplicates node to remove the doubled points.

Then use a Geometry.DoesIntersect node with the base curves at the first input, set to Level 1, and the pruned list of points as the second input.

List.CountTrue to count how many intersections are in each list. The ‘rim boards’ will have only two intersections, while the joists will only have two intersections.

1 Like

It didn’t work for me, I don’t know where the problem is


stairline26.dyn (50.0 KB)
cad.dwg (31.9 KB)

Parameter 0 and 1.
List.Flatten.
Point.PruneDuplicates.

It didn’t work

Hi @Alisadeq Here is a very alternative way, could probably work in that case

1 Like

My previously proposed method which uses no custom nodes:

@Alisadeq You need to work with one sequential set of lists here as opposed to trying to break the sequence into two - the PointAtParameter needs the list of 0 and 1 not two separate point at parameter nodes. Be sure to watch your list levels along the way.

2 Likes

thank you It works

1 Like

Curves.shater What package is it in?

That node is from Ampersand think Sparrow have as welll, wriiten with ootb nodes just in a node , almost the same as here with ootb

1 Like