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