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 Splines, this helps immensely. Thank you.
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
  Unity 6 issues Moonbo 4 1,563 11-21-2025, 12:07 PM
Last Post: _Aka_
  How to rotate generator asteroids patndan74 6 4,214 05-08-2025, 10:07 PM
Last Post: _Aka_
  Is it possible to make the face at the end of mesh? Chanon 3 2,640 11-14-2024, 04:38 PM
Last Post: _Aka_
  I have to refresh generator manualy :( GameDeveloperek4123 4 3,304 10-07-2024, 05:36 PM
Last Post: _Aka_

Forum Jump: