Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Intersection of two curvy splines
#2
Hi
There are two ways I am thinking of:
  1. The elegant one, but difficult one: look up for "X splines intersection" with X being the type of splines you are using. You should find the mathematical equation to find such intersection. Implement it, then apply it on the splines for which you want to find an intersection.
  2. The brute force one: take one of the splines (A), and go through its points (for example sample 1000 point on it) and for each one find the nearest point on the other spline (B) (see CurvySpline.GetNearestPoint). Calculate the distance between both points. If you find a point with a distance smaller than a threshold you would specify, then it means that there might be an intersection nearby. You can try again with another set of points around that found point, until you find a distance small enough to be considered equivalent to 0.
I hope this helped
Have a nice day
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
Intersection of two curvy splines - by Einherj - 09-30-2022, 02:34 PM
RE: Intersection of two curvy splines - by _Aka_ - 10-01-2022, 08:09 AM
RE: Intersection of two curvy splines - by _Aka_ - 10-03-2022, 09:13 AM
RE: Intersection of two curvy splines - by _Aka_ - 10-04-2022, 10:14 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Connections Between Opposing Splines lockiidraws 1 570 12-04-2025, 02:14 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 6,173 07-13-2025, 07:11 PM
Last Post: _Aka_
  Spawn at start/ end of splines rickgplus 4 2,860 03-21-2025, 12:34 PM
Last Post: _Aka_
  Any performance 'hacks' for scene with lots of splines rickgplus 1 1,807 03-18-2025, 10:11 PM
Last Post: _Aka_

Forum Jump: