Beispiel #1
0
 public void MakeSphereBorder(Vector3 sphereCenter, float sphereRadius, int numPoints, Camera camera)
 {
     List<Vector3> sphereBorderPoints = PrimitiveFactory.GenerateSphereBorderPoints(camera, sphereCenter, sphereRadius, numPoints);
     SetClockwisePoints(camera.ConvertWorldToScreenPoints(sphereBorderPoints), true);
 }
Beispiel #2
0
        public static void DrawSphereBorder(Camera camera, Vector3 sphereCenter, float sphereRadius, int numPoints)
        {
            List <Vector3> boundaryPoints = PrimitiveFactory.GenerateSphereBorderPoints(camera, sphereCenter, sphereRadius, numPoints);

            DrawLineLoop3D(boundaryPoints);
        }