module
Credits: This module was made in order to get evenly spaced points along a bezier curve and was made with the help of gregsnand frankin the forum thread: BézierSpreads: what length: i have taken gregsn's arclength patch for B-Splines and made it a more generic tool for any input curve. john
ArcLength(3d generic)takes a spread of 3D co-ordinates and calculates the length of the straight lines connecting them from start to finish.
Another pin will take a spread of lengths from which the module will output a spread of coordinates, and the slice number of the nearest input point.
Note that the slice number returned is a decimal. this means that if the slice number 3.49 is returned and you use it with a getslice node, getslice will return slice 3, if the slice number is 3.51 slice 4 will be returned, in this way the closest point is determined.
If a length specified is between two original helper points then the output point is calculated to lie somewhere along the straight line between the two points.
Obviously the higher the spread count of helper points the more accurate this will be.
Dont forget to specify if the curve is open or closed!
Useful for any spread whether it is bezier based, b-spine based or any list of 3d coordinates meant to represent a line in 1,2, or 3D space.
Helper points are input as an (xyz) vector so to calculate for only 2d or 1d set the unused coordinates to 0 in a Vector (3d Join).
main nodes used are Integrateand Interval and Normalise
Bins are yet to be implemented (feel free to so !)
Enjoy
john
john
anonymous user login
~2d ago
~2d ago
~9d ago
~11d ago
~13d ago
~16d ago
~16d ago
~23d ago
~30d ago
~30d ago
small bug fixed. new version here ArcLength (3d generic).zip
@frank can you remember the bug you fixed ?
Been looking for something like this, thanks!
Anyone got the binsizes sorted? Tried a few times without success. Any hints welcome!
hi does someone got a spreadable version of this ?
+1 spreadable version!
looks like is not spreadable, a shame indeed...
here's a rewritten-as-plugin fully spreadable version of ArcLength, because it's really cool and powerful: pathvectors-(3d)