BowlerKernel
|
Public Member Functions | |
Octahedron () | |
Octahedron (double size) | |
Octahedron (Vector3d center, double size) | |
List< Polygon > | toPolygons () |
Vector3d | getCenter () |
Octahedron | setCenter (Vector3d center) |
double | getRadius () |
void | setRadius (double radius) |
PropertyStorage | getProperties () |
Octahedron | noCenter () |
![]() | |
CSG | toCSG () |
Private Attributes | |
Vector3d | center |
double | radius |
boolean | centered = true |
final PropertyStorage | properties = new PropertyStorage() |
Definition at line 11 of file Octahedron.java.
eu.mihosoft.vrl.v3d.Octahedron.Octahedron | ( | ) |
Constructor. Creates a new octahedron with center
and dimensions
.
Definition at line 31 of file Octahedron.java.
References eu.mihosoft.vrl.v3d.Octahedron.center, and eu.mihosoft.vrl.v3d.Octahedron.radius.
eu.mihosoft.vrl.v3d.Octahedron.Octahedron | ( | double | size | ) |
Constructor. Creates a new octahedron with center
and radius
.
size | size |
Definition at line 42 of file Octahedron.java.
References eu.mihosoft.vrl.v3d.Octahedron.center, and eu.mihosoft.vrl.v3d.Octahedron.radius.
eu.mihosoft.vrl.v3d.Octahedron.Octahedron | ( | Vector3d | center, |
double | size | ||
) |
Constructor. Creates a new octahedron with the specified center and radius.
center | center of the octahedron |
size | of the octahedron |
Definition at line 54 of file Octahedron.java.
References eu.mihosoft.vrl.v3d.Octahedron.center.
Vector3d eu.mihosoft.vrl.v3d.Octahedron.getCenter | ( | ) |
Gets the center.
Definition at line 86 of file Octahedron.java.
References eu.mihosoft.vrl.v3d.Octahedron.center.
PropertyStorage eu.mihosoft.vrl.v3d.Octahedron.getProperties | ( | ) |
Returns the property storage of this primitive.
Reimplemented from eu.mihosoft.vrl.v3d.Primitive.
Definition at line 122 of file Octahedron.java.
References eu.mihosoft.vrl.v3d.Octahedron.properties.
double eu.mihosoft.vrl.v3d.Octahedron.getRadius | ( | ) |
Gets the radius.
Definition at line 105 of file Octahedron.java.
References eu.mihosoft.vrl.v3d.Octahedron.radius.
Octahedron eu.mihosoft.vrl.v3d.Octahedron.noCenter | ( | ) |
Defines that this octahedron will not be centered.
Definition at line 130 of file Octahedron.java.
References eu.mihosoft.vrl.v3d.Octahedron.centered.
Octahedron eu.mihosoft.vrl.v3d.Octahedron.setCenter | ( | Vector3d | center | ) |
Sets the center.
center | the center to set |
Definition at line 95 of file Octahedron.java.
References eu.mihosoft.vrl.v3d.Octahedron.center.
void eu.mihosoft.vrl.v3d.Octahedron.setRadius | ( | double | radius | ) |
Sets the radius.
radius | the radius to set |
Definition at line 114 of file Octahedron.java.
References eu.mihosoft.vrl.v3d.Octahedron.radius.
List<Polygon> eu.mihosoft.vrl.v3d.Octahedron.toPolygons | ( | ) |
Returns the polygons that define this primitive.
Note: this method computes the polygons each time this method is called. The polygons can be cached inside a CSG object.
Reimplemented from eu.mihosoft.vrl.v3d.Primitive.
Definition at line 63 of file Octahedron.java.
References eu.mihosoft.vrl.v3d.CSG.getPolygons(), eu.mihosoft.vrl.v3d.ext.quickhull3d.HullUtil.hull(), eu.mihosoft.vrl.v3d.Octahedron.radius, and eu.mihosoft.vrl.v3d.CSG.scale().
|
private |
Center of this octahedron.
Definition at line 16 of file Octahedron.java.
Referenced by eu.mihosoft.vrl.v3d.Octahedron.getCenter(), eu.mihosoft.vrl.v3d.Octahedron.Octahedron(), and eu.mihosoft.vrl.v3d.Octahedron.setCenter().
|
private |
The centered.
Definition at line 23 of file Octahedron.java.
Referenced by eu.mihosoft.vrl.v3d.Octahedron.noCenter().
|
private |
The properties.
Definition at line 26 of file Octahedron.java.
Referenced by eu.mihosoft.vrl.v3d.Octahedron.getProperties().
|
private |
Octahedron circumscribed radius.
Definition at line 20 of file Octahedron.java.
Referenced by eu.mihosoft.vrl.v3d.Octahedron.getRadius(), eu.mihosoft.vrl.v3d.Octahedron.Octahedron(), eu.mihosoft.vrl.v3d.Octahedron.setRadius(), and eu.mihosoft.vrl.v3d.Octahedron.toPolygons().