Represents a three-dimensional closed geometric solid defined by flat polygonal faces.
![]() | Represents a three-dimensional closed geometric solid defined by flat polygonal faces. |
![]() | Specifies the vertices of this polyhedron. |
![]() | Specifies the individual faces of this polyhedron. |
![]() | The default constructor creates a null polyhedron. |
![]() | Returns the number of vertices in this polyhedron. |
![]() | Returns the number of faces in this polyhedron. |
![]() | Returns the number of (unique) edges in this polyhedron. |
![]() | Returns a pointer to an array of vertices of this polyhedron. |
![]() | Returns the |
![]() | Returns the |
![]() | Returns all the (unique) edges of this polyhedron. |
![]() | |
![]() | Returns all the (unique) edges of this polyhedron, as indices to the polyhedron vertex array. |
![]() | Returns a polygon representing the given face. |
![]() | Returns the plane of the given polyhedron face. |
![]() | Returns the normalized normal vector of the given face. |
![]() | Returns the index of the vertex of this polyhedron that reaches farthest in the given direction. |
![]() | Computes an extreme point of this Polyhedron in the given direction. |
![]() | Projects this Polyhedron onto the given 1D axis direction vector. |
![]() | Returns the exact center of mass of the convex hull of this polyhedron. |
![]() | If this Polyhedron is a tetrahedron, this is the center of mass for the Polyhedron. |
![]() | Computes the total surface area of the faces of this polyhedron. |
![]() | Computes the internal volume of this polyhedron. |
![]() | Returns the smallest AABB that encloses this polyhedron. |
![]() | |
![]() | Tests if the faces in this polyhedron refer to valid existing vertices. |
![]() | Flips the winding order of all faces in this polyhedron. |
![]() | Assuming that this polyhedron is convex, reorients all faces of this polyhedron so that each face plane has its normal pointing outwards. |
![]() | Removes from the vertex array all vertices that are not referred to by any of the faces of this polyhedron. |
![]() | Returns true if this polyhedron has 0 vertices and 0 faces. |
![]() | Returns true if this polyhedron is closed and does not have any gaps. |
![]() | Returns true if this polyhedron is convex. |
![]() | Returns true if the Euler formula (V + F - E == 2) holds for this Polyhedron. |
![]() | Tests whether all the faces of this polyhedron are non-degenerate (have at least 3 vertices) and in case they have more than 3 vertices, tests that the faces are planar. |
![]() | Clips the line/ray/line segment specified by L(t) = ptA + t * dir, tFirst <= t <= tLast, inside this |
![]() | Returns the index of the nearest vertex to the given point. |
![]() | Tests if the given object is fully contained inside this closed polyhedron. |
![]() | Tests if the given face of this Polyhedron contains the given point. |
![]() | A helper for Contains() and FaceContains() tests: Returns a positive value if the given point is contained in the given face, and a negative value if the given point is outside the face. |
![]() | Tests if the given object is fully contained inside this |
![]() | Computes the closest point on this polyhedron to the given object. |
![]() | Returns the closest point on this |
![]() | Returns the distance between this polyhedron and the given object. |
![]() | Tests whether this polyhedron and the given object intersect. |
![]() | Tests whether this |
![]() | |
![]() | Translates this Polyhedron in world space. |
![]() | Applies a transformation to this Polyhedron. |
![]() | Tests if these two polyhedrons represent the same set of points. |
![]() | Swaps two vertices in the vertex array and updates all faces of this polyhedron so that the volume represented by this polyhedron stays the same. |
![]() | Converts the list of faces into a canonical order for easier comparison. |
![]() | Returns true if one of the faces of this Polyhedron has the same ordered of indices as the given Face. |
![]() | Searches each vertex of this polyhedron to find the closest vertex to the given target point. |
![]() | |
![]() | |
![]() | Creates a Polyhedron object that represents the convex hull of the given point array. |
![]() | See http://paulbourke.net/geometry/platonic/. |
![]() | See http://paulbourke.net/geometry/platonic/. |
![]() | See http://paulbourke.net/geometry/platonic/. |
![]() | See http://paulbourke.net/geometry/platonic/. |
![]() | See http://paulbourke.net/geometry/platonic/. |