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
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
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
  Best way to duplicate a spline with an offset Kapistijn 8 1,302 04-12-2026, 03:18 PM
Last Post: _Aka_
  Is there a way to generate UVs along deformed and copied mesh? kubak 1 296 03-18-2026, 08:34 PM
Last Post: _Aka_
  Control Point Interpolation Overrides. rickgplus 1 515 12-11-2025, 08:52 AM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 647 11-13-2025, 11:32 AM
Last Post: _Aka_

Forum Jump: