4 package eu.mihosoft.vrl.v3d;
6 import java.util.ArrayList;
9 import eu.mihosoft.vrl.v3d.ext.quickhull3d.HullUtil;
65 throw new NumberFormatException(
"radius can not be negative");
67 double phi = (Math.sqrt(5)+1)/2;
69 List<Vector3d> points =
new ArrayList<>();
78 points.add(
new Vector3d(0,1/phi,phi));
79 points.add(
new Vector3d(0,-1/phi,phi));
80 points.add(
new Vector3d(phi,0,1/phi));
81 points.add(
new Vector3d(1/phi,phi,0));
82 points.add(
new Vector3d(-1/phi,phi,0));
83 points.add(
new Vector3d(-phi,0,1/phi));
84 points.add(
new Vector3d(1/phi,-phi,0));
85 points.add(
new Vector3d(phi,0,-1/phi));
86 points.add(
new Vector3d(0,1/phi,-phi));
87 points.add(
new Vector3d(-phi,0,-1/phi));
88 points.add(
new Vector3d(-1/phi,-phi,0));
89 points.add(
new Vector3d(0,-1/phi,-phi));
List< Polygon > getPolygons()
CSG scale(Number scaleValue)
Dodecahedron setCenter(Vector3d center)
PropertyStorage getProperties()
final PropertyStorage properties
Dodecahedron(double size)
List< Polygon > toPolygons()
Dodecahedron(Vector3d center, double size)
void setRadius(double radius)
static CSG hull(List<?> points)