CFx SDK Documentation 2024 SP0
|
#include <GiIntersectionsCalculator.h>
Protected Member Functions | |
virtual bool | notifyObjectPlacedAtNode (OdGiTriangleForIntersectTest *pTriang, int objectType, OdGiExtents3dSpaceNode_Gi *pNode) |
void | intersectTriangles (OdUInt64 idObjA, OdUInt64 trIdA, OdUInt64 idObjB, OdUInt64 trIdB, OdUInt64 idObjTested, const OdGeTol &tol) |
This class implements triangles-based intersection calculation. Usage: 1) call initializeCalculations() 2) add triangles: 2.1) call appendTriangleContainer to obtain containerID 2.2) call addTriangleToContainer with obtained ID 3) specify containers that should be tested by calling addContainerToBeTested and call processPathCalculation for them 4) call computeIntersections to calculate intersections between specified container and all "should be tested" containers 5) use processPathCalculation() to obtain results
Library: Source code provided.
<group OdGi_Classes>
Definition at line 144 of file GiIntersectionsCalculator.h.
OdGiIntersectionsCalculator::OdGiIntersectionsCalculator | ( | ) |
|
inlinevirtual |
Definition at line 185 of file GiIntersectionsCalculator.h.
Adds specified triangle container to the "containers to be tested" list
OdInt64 OdGiIntersectionsCalculator::addTriangleToContainer | ( | OdInt64 | containerID, |
const OdGePoint3d * | pTriangle | ||
) |
Adds triangle to the specified triangle container
OdInt64 OdGiIntersectionsCalculator::appendTriangleContainer | ( | OdGiIntersectTrianglesVector * | pContainer | ) |
Appends specified triangle container to the containers list and returns it ID
void OdGiIntersectionsCalculator::computeIntersections | ( | OdInt64 | containerID, |
const OdGeExtents3d & | extents | ||
) |
Computes intersections between specified triangle container and "containers to be tested" list
|
inline |
Definition at line 228 of file GiIntersectionsCalculator.h.
|
inline |
Definition at line 222 of file GiIntersectionsCalculator.h.
|
inline |
Definition at line 232 of file GiIntersectionsCalculator.h.
|
virtual |
Reimplemented in OdGiCollisionDetector.
bool OdGiIntersectionsCalculator::getSpaceTreeRootExtents | ( | OdGeExtents3d & | ext | ) |
|
virtual |
void OdGiIntersectionsCalculator::intermediatefinalizeCalculations | ( | ) |
|
inline |
Definition at line 234 of file GiIntersectionsCalculator.h.
|
inline |
Definition at line 233 of file GiIntersectionsCalculator.h.
|
protected |
|
protectedvirtual |
Implements OdGiExtentsSpaceTreeCallback< OdGeExtents3d, OdGiTriangleForIntersectTest >.
Reimplemented in OdGiCollisionDetector.
void OdGiIntersectionsCalculator::processTrianglesIntoSpaceTree | ( | OdInt64 | objID, |
bool | bOtherObjectsProcessed | ||
) |
Specifies intersection tolerance
tol | [in] Intersection tolerance |
Definition at line 218 of file GiIntersectionsCalculator.h.
|
inline |
Retrives intersection tolerance
Definition at line 213 of file GiIntersectionsCalculator.h.
|
inline |
Definition at line 226 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 173 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 158 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 161 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 172 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 169 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 168 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 164 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 165 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 148 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 151 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 152 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 155 of file GiIntersectionsCalculator.h.