예제 #1
0
        public static Solid Cube(double width, double height, double depth, bool center = false)
        {
            var r = new Vector3D(width / 2, height / 2, depth / 2);
            var c = center ? new Vector3D(0, 0, 0) : r;

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }
예제 #2
0
        public static Solid Cube(Vector3D size, Vector3D center)
        {
            var r = size / 2;
            var c = center;

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }
예제 #3
0
        public static Solid Cube(Vector3D size, bool center = false)
        {
            var r = size / 2;
            var c = center ? new Vector3D(0, 0, 0) : r;

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }
예제 #4
0
        public static Solid Cube(double size, Vector3D center)
        {
            var r = new Vector3D(size / 2, size / 2, size / 2);
            var c = center;

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }
예제 #5
0
        public static Solid Cube(double size = 1, bool center = false)
        {
            var r = new Vector3D(size / 2, size / 2, size / 2);
            var c = center ? new Vector3D(0, 0, 0) : r;

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }
예제 #6
0
        public static Solid Cube(float width, float height, float depth, bool center = false)
        {
            var r = new Vector3(width / 2, height / 2, depth / 2);
            var c = center ? new Vector3(0, 0, 0) : r;

            return(Solids.Cube(new CubeOptions {
                Radius = r, Center = c
            }));
        }