TEST LINE_solution.gh (7.4 KB)
i use a cross product!
“perpendicular to a point” doesn’t make sense. What you mean is perpendicular to a curve at a point. Furthermore, the curves are all in the World XY plane.
Why polylines instead of smoother Nurbs curves? Is it primarily intended to affect spacing?
I used Discontinuity points (after Reduce PLine) to create Nurbs curves and then placed an HFrame on the Nurbs curve at each “discontinuity” point (Crv CP) and used it for the direction of the Line SDL.
TEST_LINE_2019Jun30a.gh (12.7 KB)
By the way, the first two curves in the “out” param are not polylines so they break the code.
P.S. Here is a slightly different approach that has two “improvements”:
- It uses Discontinuity points before Reduce PLine to create smoother Nurbs curves and
- uses DivLength to evenly space the HFrames instead of .Discontinuity points after Reduce PLine, though a switch (blue group) is provided to use either method.
TEST_LINE_2019Jun30b.gh (16.4 KB)