HDK
|
#include <GU_ConvexHull3D.h>
Public Member Functions | |
GU_ConvexHullHalfPlanesT (const UT_Array< UT_PlaneT< T >> &planes) | |
Directly build from a set of directed half planes. More... | |
GU_ConvexHullHalfPlanesT (const UT_Vector3DArray &pts) | |
Build from a cloud of points. More... | |
void | addPlane (const UT_PlaneT< T > &plane) |
void | applyOffset (T offset) |
template<typename S > | |
T | distance (UT_Vector3T< S > pos) const |
Return signed distance for the convex hull. More... | |
template<typename S > | |
T | distance (UT_Vector3T< S > pos, T maxdist) const |
template<typename IDX , typename S > | |
T | distance (const UT_Array< IDX > &activeplanes, UT_Vector3T< S > pos, T maxdist) const |
template<typename IDX , typename S > | |
bool | findActivePlanes (UT_Array< IDX > &activeplanes, UT_Vector3T< S > pos, T rad) const |
template<typename S > | |
bool | contains (const UT_BoundingBoxT< S > &bbox) const |
template<typename S > | |
bool | excludes (UT_Vector3T< S > pos, T radius=0) const |
template<typename S > | |
bool | excludes (const UT_BoundingBoxT< S > &bbox) const |
size_t | format (char *buffer, size_t bufsize) const |
Protected Attributes | |
UT_Array< UT_PlaneT< T > > | myPlanes |
Utility for working with a convex hull defined as a set of half planes.
Definition at line 97 of file GU_ConvexHull3D.h.
|
inline |
Directly build from a set of directed half planes.
Definition at line 101 of file GU_ConvexHull3D.h.
|
inline |
Build from a cloud of points.
Definition at line 107 of file GU_ConvexHull3D.h.
|
inline |
Definition at line 174 of file GU_ConvexHull3D.h.
|
inline |
Definition at line 179 of file GU_ConvexHull3D.h.
|
inline |
Definition at line 275 of file GU_ConvexHull3D.h.
|
inline |
Return signed distance for the convex hull.
Definition at line 190 of file GU_ConvexHull3D.h.
|
inline |
Return signed distance for the convex hull. Early exits when maxdist is reached.
Definition at line 205 of file GU_ConvexHull3D.h.
|
inline |
Return signed distance for the convex hull. Restricts tests to a set of active planes. Early exits when maxdist is reached.
Definition at line 223 of file GU_ConvexHull3D.h.
|
inline |
Definition at line 312 of file GU_ConvexHull3D.h.
|
inline |
Definition at line 324 of file GU_ConvexHull3D.h.
|
inline |
Constructs a list of planes that are active for the given sphere. These will be any planes that intersect the sphere. The idea being that if one has already culled by this sphere, only these planes have to be tested to if we are in or out. If no active planes are found, the return result will be true if entirely inside the planes, or false if entirely out.
Definition at line 245 of file GU_ConvexHull3D.h.
|
inline |
Definition at line 339 of file GU_ConvexHull3D.h.
|
protected |
Definition at line 357 of file GU_ConvexHull3D.h.