Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Questions about Generator: mesh/objects within spline, snap to control point
#2
Hi

Glad to hear that you are loving the asset

1- You can do that using the Spline To Mesh tool in the toolbar: https://curvyeditor.com/documentation/toolbar/start#tools
2- I guess there are different ways to determine if a point is inside a spline, which you will probably find on the internet, but one (maybe not efficient) that I thought about is to compute the cross product of the following vectors:
Vector A: the delta between a point and its nearest point on the spline (using yourSpline.GetNearestPointTF)
Vector B: the tangent of the spline at that point (using yourSpline.GetTangent)
The cross product's direction should tell you if a point is inside the closed spline or not.
3- Using yourSpline.Connections, you can get a list of the connections on your spline. Use their transforms to place your object.

Let me know if I missed something
If and when you feel like it, please leave a review for the asset, that helps a lot.

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


Messages In This Thread
RE: Questions about Generator: mesh/objects within spline, snap to control point - by _Aka_ - 05-31-2021, 02:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  Getting Distance from a World Point zorksox 3 5 04-16-2024, 07:30 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 10 04-03-2024, 03:16 PM
Last Post: _Aka_

Forum Jump: