Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to fill a closed spline with mesh
#1
I'm looking for a way to fill a closed spline with a mesh. Most of the generator features seem to support doing mesh operations *along* a spline, but I cannot find features related to closed splines.

I got kinda close with a Input Spline Shape, but then I ran into issues with overlapping polygons that resulted in z-fighting.
   

And in other cases the inner vertices from one half of the mesh extended beyond the bounds of the opposite end.
   

The end result I'm looking for is something like this, where the red dots are the control points. (excuse quick hand drawing)
   

Thanks
Reply
#2
Hi
What you need is in the toolbar -> Tools -> Spline To Mesh
https://curvyeditor.com/documentation/to...tart#tools
Did this help?
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#3
Oh ye that does the trick.

Would it be possible to give something like this a volume instead of it just creating a flat plane?

I kinda achieved this with two splines, but the mesh is incomplete. I also prefer to not have the duplicate spline, but I can try solve this by writing a tool for it.
   
Reply
#4
I realized in the meantime that I might get the result I need if use switch my Spine Path with my Spline Shape.

This very nearly gave me exactly what I want.
   
 

But sadly this also opened another can of worms. The mesh doesn't create caps at the start/end, so I can only really use it for colliders. But also the collider is just a ribbon, it's not a actual volume.

I tried the Generate Mesh tool again on it, but this creates a new mesh independent from the one made by the generator. So again the collider doesn't become part of it.
Reply
#5
Hi
The Volume Caps module is what you are missing. You can see how it is used in example scene 27
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply
#6
Works like a charm!
Reply
#7
Great
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 helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mesh Generation between two splines vatan 4 311 02-14-2025, 07:11 AM
Last Post: vatan
  Disable a spline's gizmo when not selected or disabled. mikechr2000 1 140 02-03-2025, 09:34 AM
Last Post: _Aka_
  Create Mesh Node, Make Static Options rickgplus 1 174 01-23-2025, 10:12 AM
Last Post: _Aka_
Information Questions regarding spline colliders and collisions with rigidbodies Spyboticer 7 510 01-20-2025, 12:25 PM
Last Post: _Aka_

Forum Jump: