molecular
Functions
molecular::util::PlaneSet Namespace Reference

Functions

template<class PlaneIterator , class PointInputIterator , class PointOutputIterator >
PointOutputIterator ClipPolygon (PlaneIterator planesBegin, PlaneIterator planesEnd, PointInputIterator pointsInputBegin, PointInputIterator pointInputEnd, PointOutputIterator pointsOutputBegin)
 Clip polygon by set of planes. More...
 
template<class PointIterator , class PlaneOutputIterator >
PlaneOutputIterator CreateCullingPlanes (const Vector3 &viewPos, PointIterator polygonBegin, PointIterator polygonEnd, PlaneOutputIterator planesBegin)
 Generate culling planes from polygon. More...
 
template<class PlaneIterator , class Object >
Plane::IntersectStatus CheckIntersection (PlaneIterator planesBegin, PlaneIterator planesEnd, Object object)
 Check intersection of object. More...
 

Function Documentation

template<class PlaneIterator , class Object >
Plane::IntersectStatus molecular::util::PlaneSet::CheckIntersection ( PlaneIterator  planesBegin,
PlaneIterator  planesEnd,
Object  object 
)

Check intersection of object.

See also
Plane::Check
Frustum::Check
template<class PlaneIterator , class PointInputIterator , class PointOutputIterator >
PointOutputIterator molecular::util::PlaneSet::ClipPolygon ( PlaneIterator  planesBegin,
PlaneIterator  planesEnd,
PointInputIterator  pointsInputBegin,
PointInputIterator  pointInputEnd,
PointOutputIterator  pointsOutputBegin 
)

Clip polygon by set of planes.

See also
Plane::ClipPolygon()
template<class PointIterator , class PlaneOutputIterator >
PlaneOutputIterator molecular::util::PlaneSet::CreateCullingPlanes ( const Vector3 viewPos,
PointIterator  polygonBegin,
PointIterator  polygonEnd,
PlaneOutputIterator  planesBegin 
)

Generate culling planes from polygon.

For perspective projections. Does not generate near and far plane.