Shape
public class PolyhedronGeneral extends Polyhedron
edges, faces
D, embeddedSpace, hyperPlanes, position, vertices
Modifier | Constructor | Description |
---|---|---|
protected |
PolyhedronGeneral(Polygon[] faces) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
contains(Vector vector) |
Returns true if the given point lies inside or on an edge of the polyhedron
|
double |
getVolume() |
Returns the 3-D volume of the polyhedron, which is its conventional volume
|
void |
updateVertices() |
Calculates vertices from their internal representation, which
for a general polyhedron does nothing because the vertices are
the internal representation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
distanceTo, getEdges, getFaces, getPerimeter, getSurfaceArea
applyTranslationRotation, D, getEmbeddedSpace, getPosition, getVertexCount, getVertices, setPosition, toString
protected PolyhedronGeneral(Polygon[] faces)
public void updateVertices()
updateVertices
in class Polytope
public double getVolume()