|
BowlerKernel
|


Public Member Functions | |
| Tetrahedron () | |
| Tetrahedron (double size) | |
| Tetrahedron (Vector3d center, double size) | |
| List< Polygon > | toPolygons () |
| Vector3d | getCenter () |
| Tetrahedron | setCenter (Vector3d center) |
| double | getRadius () |
| void | setRadius (double radius) |
| PropertyStorage | getProperties () |
| Tetrahedron | noCenter () |
Public Member Functions inherited from eu.mihosoft.vrl.v3d.Primitive | |
| CSG | toCSG () |
Private Attributes | |
| Vector3d | center |
| double | radius |
| boolean | centered = true |
| final PropertyStorage | properties = new PropertyStorage() |
Definition at line 13 of file Tetrahedron.java.
| eu.mihosoft.vrl.v3d.Tetrahedron.Tetrahedron | ( | ) |
Constructor. Creates a new tetrahedron with center
and dimensions
.
Definition at line 33 of file Tetrahedron.java.
References eu.mihosoft.vrl.v3d.Tetrahedron.center, and eu.mihosoft.vrl.v3d.Tetrahedron.radius.
| eu.mihosoft.vrl.v3d.Tetrahedron.Tetrahedron | ( | double | size | ) |
Constructor. Creates a new tetrahedron with center
and radius
.
| size | size |
Definition at line 44 of file Tetrahedron.java.
References eu.mihosoft.vrl.v3d.Tetrahedron.center, and eu.mihosoft.vrl.v3d.Tetrahedron.radius.
| eu.mihosoft.vrl.v3d.Tetrahedron.Tetrahedron | ( | Vector3d | center, |
| double | size | ||
| ) |
Constructor. Creates a new tetrahedron with the specified center and radius.
| center | center of the tetrahedron |
| size | of the tetrahedron |
Definition at line 56 of file Tetrahedron.java.
References eu.mihosoft.vrl.v3d.Tetrahedron.center.
| Vector3d eu.mihosoft.vrl.v3d.Tetrahedron.getCenter | ( | ) |
Gets the center.
Definition at line 86 of file Tetrahedron.java.
References eu.mihosoft.vrl.v3d.Tetrahedron.center.
| PropertyStorage eu.mihosoft.vrl.v3d.Tetrahedron.getProperties | ( | ) |
Returns the property storage of this primitive.
Reimplemented from eu.mihosoft.vrl.v3d.Primitive.
Definition at line 122 of file Tetrahedron.java.
References eu.mihosoft.vrl.v3d.Tetrahedron.properties.
| double eu.mihosoft.vrl.v3d.Tetrahedron.getRadius | ( | ) |
Gets the radius.
Definition at line 105 of file Tetrahedron.java.
References eu.mihosoft.vrl.v3d.Tetrahedron.radius.
| Tetrahedron eu.mihosoft.vrl.v3d.Tetrahedron.noCenter | ( | ) |
Defines that this tetrahedron will not be centered.
Definition at line 130 of file Tetrahedron.java.
References eu.mihosoft.vrl.v3d.Tetrahedron.centered.
| Tetrahedron eu.mihosoft.vrl.v3d.Tetrahedron.setCenter | ( | Vector3d | center | ) |
Sets the center.
| center | the center to set |
Definition at line 95 of file Tetrahedron.java.
References eu.mihosoft.vrl.v3d.Tetrahedron.center.
| void eu.mihosoft.vrl.v3d.Tetrahedron.setRadius | ( | double | radius | ) |
Sets the radius.
| radius | the radius to set |
Definition at line 114 of file Tetrahedron.java.
References eu.mihosoft.vrl.v3d.Tetrahedron.radius.
| List<Polygon> eu.mihosoft.vrl.v3d.Tetrahedron.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 65 of file Tetrahedron.java.
References eu.mihosoft.vrl.v3d.CSG.getPolygons(), eu.mihosoft.vrl.v3d.ext.quickhull3d.HullUtil.hull(), eu.mihosoft.vrl.v3d.Tetrahedron.radius, and eu.mihosoft.vrl.v3d.CSG.scale().

|
private |
Center of this tetrahedron.
Definition at line 18 of file Tetrahedron.java.
Referenced by eu.mihosoft.vrl.v3d.Tetrahedron.getCenter(), eu.mihosoft.vrl.v3d.Tetrahedron.setCenter(), and eu.mihosoft.vrl.v3d.Tetrahedron.Tetrahedron().
|
private |
The centered.
Definition at line 25 of file Tetrahedron.java.
Referenced by eu.mihosoft.vrl.v3d.Tetrahedron.noCenter().
|
private |
The properties.
Definition at line 28 of file Tetrahedron.java.
Referenced by eu.mihosoft.vrl.v3d.Tetrahedron.getProperties().
|
private |
Tetrahedron circumscribed radius.
Definition at line 22 of file Tetrahedron.java.
Referenced by eu.mihosoft.vrl.v3d.Tetrahedron.getRadius(), eu.mihosoft.vrl.v3d.Tetrahedron.setRadius(), eu.mihosoft.vrl.v3d.Tetrahedron.Tetrahedron(), and eu.mihosoft.vrl.v3d.Tetrahedron.toPolygons().