6 package eu.mihosoft.vrl.v3d;
8 import static eu.mihosoft.vrl.v3d.Transform.unity;
11 import eu.mihosoft.vrl.v3d.parametrics.LengthParameter;
102 CSG spherePrototype =
109 CSG sphere1 = spherePrototype.
transformed(unity().translate(-x, -y, -z));
110 CSG sphere2 = spherePrototype.
transformed(unity().translate(x, -y, -z));
111 CSG sphere3 = spherePrototype.
transformed(unity().translate(x, y, -z));
112 CSG sphere4 = spherePrototype.
transformed(unity().translate(-x, y, -z));
114 CSG sphere5 = spherePrototype.
transformed(unity().translate(-x, -y, z));
115 CSG sphere6 = spherePrototype.
transformed(unity().translate(x, -y, z));
116 CSG sphere7 = spherePrototype.
transformed(unity().translate(x, y, z));
117 CSG sphere8 = spherePrototype.
transformed(unity().translate(-x, y, z));
119 List<Polygon> result = sphere1.
union(
120 sphere2, sphere3, sphere4,
CSG transformed(Transform transform)
List< Polygon > getPolygons()
RoundedCube(double w, double h, double d)
RoundedCube(LengthParameter size)
void setResolution(int resolution)
RoundedCube cornerRadius(double cornerRadius)
RoundedCube(Vector3d center, Vector3d dimensions)
List< Polygon > toPolygons()
PropertyStorage getProperties()
RoundedCube(LengthParameter w, LengthParameter h, LengthParameter d)
final PropertyStorage properties
void setCenter(Vector3d center)
void setDimensions(Vector3d dimensions)
void setCornerRadius(double cornerRadius)
RoundedCube resolution(int resolution)
static Vector3d y(double y)
static final Vector3d ZERO
static Vector3d z(double z)
static Vector3d x(double x)