12-12-2020, 07:00 PM
(12-12-2020, 06:53 PM)Mos Def Wrote: But I was wondering can i make same thing Spline to Mesh at runtime from code.
Yes you can. here is the code for it. I will include this code in an upcoming update:
Code:
public static Mesh SplineToMesh(CurvySpline spline)
{
Mesh result;
Spline2Mesh splineToMesh = new Spline2Mesh();
splineToMesh.Lines.Add(new SplinePolyLine(spline));
splineToMesh.Winding = WindingRule.EvenOdd;
splineToMesh.Apply(out result);
if (String.IsNullOrEmpty(splineToMesh.Error) == false)
Debug.Log(splineToMesh.Error);
return result;
}
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.