Given a line class object (a simple straight line), I would like to insert an edit point at a length value and end up with a straight polyline. What’s the best way to do this? I can’t figure it out on my own. Maybe convert a line to NurbsCurve > DivideByLength > and then join the given array of lines, or it’s too clumsy approach?
Not sure if it’s the best, but here’s a simple approach using the line, vector and polyline(curve) classes:
240201_InsertPointOnLine_00.gh (5.5 KB)
You can change PolylineCurve
to Polyline
if you don’t need a curve output.
2 Likes
Clever, much appreciated!
1 Like