Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::ConvexPolyhedron Class Reference

#include <ConvexPolyhedron.h>

List of all members.

Public Member Functions

 ConvexPolyhedron (const Array< ConvexPolygon > &_face)
 ConvexPolyhedron ()
void cut (const Plane &plane, ConvexPolyhedron &above, ConvexPolyhedron &below)
float getVolume () const
bool isEmpty () const

Public Attributes

Array< ConvexPolygonface


Constructor & Destructor Documentation

G3D::ConvexPolyhedron::ConvexPolyhedron (  )  [inline]

G3D::ConvexPolyhedron::ConvexPolyhedron ( const Array< ConvexPolygon > &  _face  ) 


Member Function Documentation

void G3D::ConvexPolyhedron::cut ( const Plane plane,
ConvexPolyhedron above,
ConvexPolyhedron below 
)

Cuts the polyhedron at the plane.

If the polyhedron is entirely above or below the plane, one of the returned polyhedra will be empty.

Parameters:
above The part of the polyhedron above (on the side the normal points to or in the plane) the plane
below The part of the polyhedron below the plane.

float G3D::ConvexPolyhedron::getVolume (  )  const

O(n) in the number of edges.

bool G3D::ConvexPolyhedron::isEmpty (  )  const

O(n) in the number of edges.


Member Data Documentation

Zero faces indicates an empty polyhedron.


The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:45 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo