Convex Face Clipper. More...
#include <decConvexFaceClipper.h>
Public Member Functions | |
Constructors and Destructors | |
| decConvexFaceClipper () | |
| Creates an empty convex volume face. | |
| ~decConvexFaceClipper () | |
| Cleans up the convex volume face. | |
Management | |
| const decDVector & | GetNormal () const |
| Retrieves the face normal. | |
| void | SetNormal (const decDVector &normal) |
| Sets the face normal. | |
| int | GetVertexCount () const |
| Retrieves the number of vertices. | |
| const decDVector & | GetVertexAt (int position) const |
| Retrieves the the vertex at the given position. | |
| bool | HasVertex (const decDVector &vertex) const |
| Determines if the given vertex exists. | |
| int | IndexOfVertex (const decDVector &vertex) const |
| Retrieves the index of the given vertex or -1 if not found. | |
| void | AddVertex (const decDVector &vertex) |
| Adds a vertex. | |
| void | RemoveAllVertices () |
| Removes all vertices. | |
| void | ClipByPlane (const decDVector &planeNormal, const decDVector &planePosition) |
| Clips the face by the given plane. | |
| void | Transform (const decDMatrix &matrix) |
| Transforms the face using a matrix. | |
Convex Face Clipper.
Stores a convex face and allows to clip it with various planes.
| decConvexFaceClipper::decConvexFaceClipper | ( | ) |
Creates an empty convex volume face.
| decConvexFaceClipper::~decConvexFaceClipper | ( | ) |
Cleans up the convex volume face.
| void decConvexFaceClipper::AddVertex | ( | const decDVector & | vertex ) |
Adds a vertex.
| void decConvexFaceClipper::ClipByPlane | ( | const decDVector & | planeNormal, |
| const decDVector & | planePosition | ||
| ) |
Clips the face by the given plane.
| const decDVector& decConvexFaceClipper::GetNormal | ( | ) | const [inline] |
Retrieves the face normal.
| const decDVector& decConvexFaceClipper::GetVertexAt | ( | int | position ) | const |
Retrieves the the vertex at the given position.
| int decConvexFaceClipper::GetVertexCount | ( | ) | const [inline] |
Retrieves the number of vertices.
| bool decConvexFaceClipper::HasVertex | ( | const decDVector & | vertex ) | const |
Determines if the given vertex exists.
| int decConvexFaceClipper::IndexOfVertex | ( | const decDVector & | vertex ) | const |
Retrieves the index of the given vertex or -1 if not found.
| void decConvexFaceClipper::RemoveAllVertices | ( | ) |
Removes all vertices.
| void decConvexFaceClipper::SetNormal | ( | const decDVector & | normal ) |
Sets the face normal.
| void decConvexFaceClipper::Transform | ( | const decDMatrix & | matrix ) |
Transforms the face using a matrix.
1.7.2