openscenegraph
|
#include <Polytope>
Public Types | |
typedef unsigned int | ClippingMask |
typedef std::vector< Plane > | PlaneList |
typedef std::vector< Vec3 > | VertexList |
typedef fast_back_stack< ClippingMask > | MaskStack |
Protected Attributes | |
MaskStack | _maskStack |
ClippingMask | _resultMask |
PlaneList | _planeList |
VertexList | _referenceVertexList |
A Polytope class for representing convex clipping volumes made up of a set of planes. When adding planes, their normals should point inwards (into the volume)
typedef unsigned int osg::Polytope::ClippingMask |
typedef std::vector<Plane> osg::Polytope::PlaneList |
typedef std::vector<Vec3> osg::Polytope::VertexList |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Check whether any part of a bounding box is contained within clipping set. Using a mask to determine which planes should be used for the check, and modifying the mask to turn off planes which wouldn't contribute to clipping of any internal objects. This feature is used in osgUtil::CullVisitor to prevent redundant plane checking.
|
inline |
Check whether any part of a bounding sphere is contained within clipping set. Using a mask to determine which planes should be used for the check, and modifying the mask to turn off planes which wouldn't contribute to clipping of any internal objects. This feature is used in osgUtil::CullVisitor to prevent redundant plane checking.
|
inline |
Check whether a vertex is contained within clipping set.
bool osg::Polytope::contains | ( | const osg::Vec3f & | v0, |
const osg::Vec3f & | v1, | ||
const osg::Vec3f & | v2 | ||
) | const |
Check whether any part of a triangle is contained within the polytope.
|
inline |
Check whether any part of vertex list is contained within clipping set.
|
inline |
Check whether the entire bounding box is contained within clipping set.
|
inline |
Check whether the entire bounding sphere is contained within clipping set.
|
inline |
Check whether all of vertex list is contained with clipping set.
|
inline |
|
inline |
flip/reverse the orientation of all the planes.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Create a Polytope which is a equivalent to BoundingBox.
|
inline |
Create a Polytope which is a cube, centered at 0,0,0, with sides of 2 units.
|
inline |
|
inline |
Transform the clipping set by matrix. Note, this operations carries out the calculation of the inverse of the matrix since a plane must be multiplied by the inverse transposed to transform it. This makes this operation expensive. If the inverse has been already calculated elsewhere then use transformProvidingInverse() instead. See http://www.worldserver.com/turk/computergraphics/NormalTransformations.pdf
|
inline |
Transform the clipping set by provide a pre inverted matrix. see transform for details.
|
protected |
|
protected |
|
protected |
|
protected |