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