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/toolbar/start#tools
Did this help?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
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 will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
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 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 to get length starting from one spline to connected nth spline Dragon-3623 1 1 05-14-2024, 04:52 PM
Last Post: _Aka_
  Incorrect mesh alignment after extrusion on curved path Thinkurvy 10 21 04-17-2024, 10:57 AM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 3 6 04-04-2024, 12:56 PM
Last Post: _Aka_
  Get position of all control points for a spline gekido 1 6 03-28-2024, 10:08 PM
Last Post: _Aka_

Forum Jump: