| Constructor and Description |
|---|
Tetrahedron()
Constructor.
|
Tetrahedron(double size)
Constructor.
|
Tetrahedron(Vector3d center,
double size)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3d |
getCenter()
Gets the center.
|
PropertyStorage |
getProperties()
Returns the property storage of this primitive.
|
double |
getRadius()
Gets the radius.
|
Tetrahedron |
noCenter()
Defines that this tetrahedron will not be centered.
|
Tetrahedron |
setCenter(Vector3d center)
Sets the center.
|
void |
setRadius(double radius)
Sets the radius.
|
java.util.List<Polygon> |
toPolygons()
Returns the polygons that define this primitive.
|
public Tetrahedron()
[0,0,0] and
dimensions [1,1,1].public Tetrahedron(double size)
[0,0,0] and
radius size.size - sizepublic Tetrahedron(Vector3d center, double size)
center - center of the tetrahedroncircumradius - of the tetrahedronpublic java.util.List<Polygon> toPolygons()
PrimitiveCSG object.toPolygons in class Primitivepublic Vector3d getCenter()
public Tetrahedron setCenter(Vector3d center)
center - the center to setpublic double getRadius()
public void setRadius(double radius)
radius - the radius to setpublic PropertyStorage getProperties()
PrimitivegetProperties in class Primitivepublic Tetrahedron noCenter()