Ejemplo n.º 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);
        }
Ejemplo n.º 2
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;
 }