Beispiel #1
0
        public static SphereN CalcSphere(int numSlices, int numStacks, float radius, Vector3 center)
        {
            SphereN sphere = new SphereN();

            sphere.Positions = CalcSphereTriangles(numSlices, numStacks, radius, center, ref sphere.Normals, false, ref sphere.TexCoords, false);
            return(sphere);
        }
 public static SphereN CalcSphere(int numSlices, int numStacks, float radius, Vector3 center)
 {
     SphereN sphere = new SphereN();
     sphere.Positions = CalcSphereTriangles(numSlices, numStacks, radius, center, ref sphere.Normals, false, ref sphere.TexCoords, false);
     return sphere;
 }