Shape
Hexahedron
, PolyhedronGeneral
, TruncatedOctahedron
public abstract class Polyhedron extends Polytope
Modifier and Type | Field | Description |
---|---|---|
protected LineSegment[] |
edges |
|
protected Polygon[] |
faces |
D, embeddedSpace, hyperPlanes, position, vertices
Modifier | Constructor | Description |
---|---|---|
protected |
Polyhedron(Polygon[] faces) |
Constructs a polyhedron with the given faces for its sides.
|
Modifier and Type | Method | Description |
---|---|---|
double |
distanceTo(Vector r) |
Returns the perpendicular distance to the nearest face of the
polyhedron.
|
LineSegment[] |
getEdges() |
Returns all edges defined by the polyhedron.
|
Polygon[] |
getFaces() |
Returns all faces defined by the polyhedron.
|
double |
getPerimeter() |
Returns the sum of the length of the edges of the polyhedron
|
double |
getSurfaceArea() |
Returns the sum the area of the faces of the polyhedron
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
applyTranslationRotation, contains, D, getEmbeddedSpace, getPosition, getVertexCount, getVertices, getVolume, setPosition, toString, updateVertices
protected final LineSegment[] edges
protected final Polygon[] faces
protected Polyhedron(Polygon[] faces)
public Polygon[] getFaces()
public LineSegment[] getEdges()
public double getPerimeter()
public double getSurfaceArea()
public double distanceTo(Vector r)
r
-