| Constructor and Description |
|---|
Dodecahedron()
Constructor.
|
Dodecahedron(double size)
Constructor.
|
Dodecahedron(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.
|
Dodecahedron |
noCenter()
Defines that this dodecahedron will not be centered.
|
Dodecahedron |
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 Dodecahedron()
[0,0,0] and
dimensions [1,1,1].public Dodecahedron(double size)
[0,0,0] and
radius size.size - sizepublic Dodecahedron(Vector3d center, double size)
center - center of the dodecahedroncircumradius - of the dodecahedronpublic java.util.List<Polygon> toPolygons()
PrimitiveCSG object.toPolygons in class Primitivepublic Vector3d getCenter()
public Dodecahedron 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 Dodecahedron noCenter()