KrisLibrary  1.0.0
Public Member Functions | Public Attributes | List of all members
Math3D::ConvexPolyhedron3D Struct Reference

A convex polyhedron given in a dual representation, planes and vertices of convex hull. More...

#include <Polyhedron3D.h>

Public Member Functions

void initialize (int numPlanes, int numVertices)
 
void resize (int numPlanes, int numVertices)
 
void cleanup ()
 
void makeFromTriangles (const Point3D *p, int numVertices, int *triangles, int numFaces)
 
void setTransformed (const ConvexPolyhedron3D &in, const Matrix4 &T)
 
void operator= (const ConvexPolyhedron3D &)
 
void getAABB (AABB3D &) const
 
bool intersects (const ConvexPolyhedron3D &other) const
 
void planeExtents (const Plane3D &p, Real &dmin, Real &dmax) const
 
bool planeSplits (const Plane3D &p) const
 
bool planePos (const Plane3D &p) const
 
bool planeNeg (const Plane3D &p) const
 
bool contains (const Point3D &v) const
 
bool withinDistance (const Point3D &v, Real dist) const
 
Real planeDistance (const Point3D &v) const
 
bool intersects (const Line3D &l, Real &tmin, Real &tmax) const
 
bool intersects (const Line3D &l) const
 
bool intersects (const Segment3D &l) const
 
bool Read (File &f)
 
bool Write (File &f) const
 

Public Attributes

Plane3Dplanes
 
Point3Dvertices
 
int numPlanes
 
int numVertices
 

Detailed Description

A convex polyhedron given in a dual representation, planes and vertices of convex hull.

Plane normals point to the outside.


The documentation for this struct was generated from the following files: