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/to...tart#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 Splines, this helps immensely. Thank you.
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
  Generator gameobjects missing offset and rotated beewhale 1 25 1 hour ago
Last Post: _Aka_
  Spline Spots from 2 samples. BitBlit 8 897 06-30-2026, 11:49 AM
Last Post: _Aka_
  Best way to duplicate a spline with an offset Kapistijn 8 2,283 04-12-2026, 03:18 PM
Last Post: _Aka_
  Is there a way to generate UVs along deformed and copied mesh? kubak 1 624 03-18-2026, 08:34 PM
Last Post: _Aka_

Forum Jump: