Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Equally spaced points on Bezier
#1
Is there functionality in Curvy to obtain equally spaced points from a Bezier curve?

For example, if you requested 10 equally spaced points from a curve, you would receive 10 points back that are all equal distance apart (or as close as possible to equal).  The distance between the points is measured along the curve.
Reply
#2
Hi,
Use CurvySpline.InterpolateByDistance(x), with x being (CurvySpline.Length / 10) * index, the index being a value from 0 to 10
Is it clear?
Have a nice day
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
That is perfect, thank you!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Video How do I merge splines only if some control points are at the sam position? arcade.autumn 5 15 02-13-2023, 09:35 AM
Last Post: _Aka_
  Control handles gone for control points! :( danne_lindwall 3 5 02-10-2023, 08:49 AM
Last Post: _Aka_
  Shapes points orientation itsGama 3 6 01-18-2023, 02:51 PM
Last Post: _Aka_
  Closed splines and duplicate points jh092 3 6 07-24-2022, 01:54 PM
Last Post: _Aka_

Forum Jump: