decConvexFaceClipper Class Reference

Convex Face Clipper. More...

#include <decConvexFaceClipper.h>

List of all members.

Public Member Functions

Constructors and Destructors
 decConvexFaceClipper ()
 Creates an empty convex volume face.
 ~decConvexFaceClipper ()
 Cleans up the convex volume face.
Management
const decDVectorGetNormal () const
 Retrieves the face normal.
void SetNormal (const decDVector &normal)
 Sets the face normal.
int GetVertexCount () const
 Retrieves the number of vertices.
const decDVectorGetVertexAt (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.

Detailed Description

Convex Face Clipper.

Stores a convex face and allows to clip it with various planes.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

decConvexFaceClipper::decConvexFaceClipper (  )

Creates an empty convex volume face.

decConvexFaceClipper::~decConvexFaceClipper (  )

Cleans up the convex volume face.


Member Function Documentation

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.


The documentation for this class was generated from the following file: