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/article/abs/pii/0166361589900729
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
  How can I find the point on the spline after applying with offset angle+radius? Chanon 1 2 3 hours ago
Last Post: _Aka_
  Find intersection point soccertrash 1 10 09-28-2022, 03:17 PM
Last Post: _Aka_
  Scale Deform Mesh Along Spline? / aligning colliders MamasToast 6 33 09-25-2022, 08:47 PM
Last Post: _Aka_
  How can I remove one segment of the road that I made by spline? Chanon 3 7 09-14-2022, 04:44 PM
Last Post: _Aka_

Forum Jump: