Line center point

How can I get the midpoint of a line?

Hi @Andrej try curve point at parameter with parameter 0.5

1 Like

Note: this will work for uniform curves, but some curves (non-uniform ones) it will not be correct. Curve.PointAtSegmentLength(crv, crv.Length/2); should work in all cases, but will be an order of magnitude slower (granted 0.01ms to 0.1ms isn’t really perceptible until you have 10000 curves, at which point you’ll be slowed down by other aspects of the code…

2 Likes