HDK
|
#include <SIM_VolumeInstanceSource.h>
Public Member Functions | |
sim_TileIntersectionTester () | |
void | initTester (const SIM_RawField *field, const GEO_Primitive *prim, const UT_Vector3 &pos, const UT_Quaternion &orient, const UT_Vector3 &pivot) |
bool | intersectsTile (const UT_Vector3 &p) const |
This class can be used to check if tiles of the given raw field intersect the bounding box of the instanced primitive.
Definition at line 240 of file SIM_VolumeInstanceSource.h.
sim_TileIntersectionTester::sim_TileIntersectionTester | ( | ) |
Create a new tester. initTester() must be called on the created object before intersections can be checked.
void sim_TileIntersectionTester::initTester | ( | const SIM_RawField * | field, |
const GEO_Primitive * | prim, | ||
const UT_Vector3 & | pos, | ||
const UT_Quaternion & | orient, | ||
const UT_Vector3 & | pivot | ||
) |
Gets this object ready to perform intersection tests. Intersection tests are done for tiles of the field, against the oriented bounding box of the instanced primitive.
bool sim_TileIntersectionTester::intersectsTile | ( | const UT_Vector3 & | p | ) | const |
Returns true if the tile (a chunk of 16x16x16 voxels) of field starting at the given world location intersects the instanced primitive. This function checks the tile as if it were complete; it is thus a conservative test.