Page 1 of 1

Compute total length of spline

Posted: Sun Sep 24, 2023 3:50 pm
by Seymour Clufley
This function, equivalent to the SVG function getTotalLength() for paths, would be very useful.

Re: Compute total length of spline

Posted: Sun Sep 24, 2023 3:55 pm
by STARGĂ…TE
It is already there, isn't it?
PathLength()

Re: Compute total length of spline

Posted: Sun Sep 24, 2023 6:52 pm
by Seymour Clufley
That's for the vector drawing library, not the spline library.

Re: Compute total length of spline

Posted: Sun Sep 24, 2023 10:52 pm
by marc_256
Hi,

It is impossible to calculate the length of a spline ...
You can calculate the approximated length by adding the distances between each point on the spline.
If you want the most accurate length, you need to add lots of points on the spline.

Marc,