Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fill a spline
#1
Hi,

I'm trying to fill a spline thanks to MeshHelper.CreateSplineMesh().
I explain the problem:
i create wall a runtime by clicking and adding control point in a spline + meshbuilder. if the first and the last control point are near enought, the spline shut itself and i want to add
a roof the the wall thanks to MeshHelper.CreateSplineMesh(). 
It kinda works sometime. i have some triangle wiwh are drawn. but not all the surface.
sometime the faces normal are switched with no reason.
and finally i don't understand how the curvation angle works in the function.

here a picture to have a better idea: http://hpics.li/25264cb
Could you please give some information about this function and tell me if what i wanna do is possible.

Thanks Smile
 
Reply
#2
Hi,

that's weird, the triangles shouldn't flip. What settings are you using? Another way to find out what's going wrong: If that happens, pause the game, switch to scene view and create a Mesh Shape from the actual spline using the wizard. This way you can play around with the settings and perhaps find out what parameters cause that error. If nothing help, I can send you our current dev version, we've reworked the wizard and use a way better triangulation method now.

The curvation angle determines where to create vertices by the curvation of the spline. A good value is between 1-5 and will ensure that almost linear parts will create less vertices than sharp curves. But using a fixed step or Granularity points to determine vertices usually gives a more predictable result.

Jake
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to duplicate a spline with an offset Kapistijn 8 1,352 04-12-2026, 03:18 PM
Last Post: _Aka_
Smile Constant speed along a spline? tfishell 1 654 11-13-2025, 11:32 AM
Last Post: _Aka_
  SplineController Ignores Follow-Up and Chooses Wrong Spline Josenildo 7 4,452 07-29-2025, 09:15 PM
Last Post: _Aka_
  Curvy Line Renderer for UI Spline? gekido 7 6,210 07-13-2025, 07:11 PM
Last Post: _Aka_

Forum Jump: