34 package eu.mihosoft.vrl.v3d;
36 import java.util.ArrayList;
37 import java.util.List;
39 import eu.mihosoft.vrl.v3d.parametrics.LengthParameter;
40 import eu.mihosoft.vrl.v3d.parametrics.Parameter;
105 public Cube(
double w,
double h,
double d) {
115 this(size,size,size);
123 throw new NumberFormatException(
"X can not be negative");
125 throw new NumberFormatException(
"Y can not be negative");
127 throw new NumberFormatException(
"Z can not be negative");
130 {{0, 4, 6, 2}, {-1, 0, 0}},
131 {{1, 3, 7, 5}, {+1, 0, 0}},
132 {{0, 1, 5, 4}, {0, -1, 0}},
133 {{2, 6, 7, 3}, {0, +1, 0}},
134 {{0, 2, 3, 1}, {0, 0, -1}},
135 {{4, 5, 7, 6}, {0, 0, +1}}
137 List<Polygon> polygons =
new ArrayList<>();
138 for (
int[][] info : a) {
139 List<Vertex> vertices =
new ArrayList<>();
140 for (
int i : info[0]) {
PropertyStorage getProperties()
Cube(LengthParameter size)
List< Polygon > toPolygons()
Cube setDimensions(Vector3d dimensions)
final PropertyStorage properties
Cube setCenter(Vector3d center)
Cube(Vector3d center, Vector3d dimensions)
Cube(double w, double h, double d)
Cube(LengthParameter w, LengthParameter h, LengthParameter d)
static Vector3d y(double y)
static final Vector3d ZERO
static Vector3d z(double z)
static Vector3d x(double x)