Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to find out whether the spline is self-intersected.
#1
Hi,
I have a question.
I want to check whether my curvy spline is intersected by itself.
I want to build something following my curvy spline. Before start building them, I want check whether my building collide into other building on the same spline.
Please let me know how to do it
Reply
#2
Hi

The easy but not optimized solution is to generate the buildings, then test intersections between the buildings' bounding boxes, then delete the intersecting ones.

The optimized solution would be to apply a self-intersection test for the type of the spline you are using. Such test is not implemented in Curvy. I am not familiar with such algorithms, but they do exist, as you can see here: https://www.sciencedirect.com/science/ar...1589900729
All the splines do offer access, through the API, to the relevant data of their related spline type. So implementing such algorithms using the API is feasible.

I hope my answer helped. Let me know if you have other questions.
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


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Spline.length incorrect dazz777 3 133 10-07-2021, 10:23 AM
Last Post: _Aka_
  Control of an object that uses a spline ricke 5 317 09-16-2021, 10:30 AM
Last Post: _Aka_
  Problems with spline prefab topquarkone 3 223 09-15-2021, 08:47 PM
Last Post: _Aka_
  Change to Random Spline on End Reached Event ricke 10 498 09-14-2021, 12:31 AM
Last Post: ricke

Forum Jump: