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 })); }
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 })); }
public static Solid Cube(Vector3D size, Vector3D center) { var r = size / 2; var c = center; return(Solids.Cube(new CubeOptions { Radius = r, Center = c })); }
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 })); }
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 })); }
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 })); }
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 })); }
public static Solid Sphere(double r, Vector3D center) { return(Solids.Sphere(new SphereOptions { Radius = r, Center = center })); }