コード例 #1
0
        public static Solid Sphere(double r = 1, bool center = true)
        {
            var c = center ? new Vector3D(0, 0, 0) : new Vector3D(r, r, r);

            return(Solids.Sphere(new SphereOptions {
                Radius = r, Center = c
            }));
        }
コード例 #2
0
 public static Solid Sphere(double r, Vector3D center)
 {
     return(Solids.Sphere(new SphereOptions {
         Radius = r, Center = center
     }));
 }