Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
issues with face over lapping and generator ranges
#6
(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.
Reply


Messages In This Thread
RE: issues with face over lapping and generator ranges - by _Aka_ - 12-12-2020, 07:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  8.8.0 is live, and it improves Curvy Generator greatly _Aka_ 1 10 04-03-2024, 03:16 PM
Last Post: _Aka_
Exclamation Extending Curvy Generator for Advanced Lofting - Feasibility Check amutp 2 5 03-27-2024, 07:25 AM
Last Post: amutp
  Generating GO only on CPs in Generator GameDeveloperek4123 1 7 03-04-2024, 11:06 AM
Last Post: _Aka_
Bug Issues when working with in-place prefabs Sacryn 4 6 02-27-2024, 04:08 PM
Last Post: _Aka_

Forum Jump: