4 package eu.mihosoft.vrl.v3d;
6 import java.util.ArrayList;
9 import eu.mihosoft.vrl.v3d.ext.quickhull3d.HullUtil;
10 import eu.mihosoft.vrl.v3d.parametrics.LengthParameter;
11 import eu.mihosoft.vrl.v3d.parametrics.Parameter;
67 throw new NumberFormatException(
"radius can not be negative");
68 double _1_sqrt2 = 1/Math.sqrt(2);
70 List<Vector3d> points =
new ArrayList<>();
71 points.add(
new Vector3d(-1,0,-_1_sqrt2));
72 points.add(
new Vector3d(+1,0,-_1_sqrt2));
73 points.add(
new Vector3d(0,-1,+_1_sqrt2));
74 points.add(
new Vector3d(0,+1,+_1_sqrt2));
List< Polygon > getPolygons()
CSG scale(Number scaleValue)
final PropertyStorage properties
void setRadius(double radius)
PropertyStorage getProperties()
List< Polygon > toPolygons()
Tetrahedron(Vector3d center, double size)
Tetrahedron setCenter(Vector3d center)
static CSG hull(List<?> points)