|
CFx SDK Documentation 2026 SP0
|
#include <GiIntersectionsCalculator.h>
Protected Member Functions | |
| virtual bool | notifyObjectPlacedAtNode (OdGiTriangleForIntersectTest *pTriang, int objectType, OdGiExtents3dSpaceNode_Gi *pNode) |
| void | intersectTriangles (OdUInt32 idObjA, OdUInt32 trIdA, OdUInt32 idObjB, OdUInt32 trIdB, OdUInt32 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 148 of file GiIntersectionsCalculator.h.
| OdGiIntersectionsCalculator::OdGiIntersectionsCalculator | ( | ) |
Default constructor for the OdGiIntersectionsCalculator class.
|
inlinevirtual |
Destructor for the OdGiIntersectionsCalculator class.
Definition at line 196 of file GiIntersectionsCalculator.h.
Adds specified triangle container to the "containers to be tested" list
| OdInt32 OdGiIntersectionsCalculator::addTriangleToContainer | ( | OdInt32 | containerID, |
| const OdGePoint3d * | pTriangle ) |
Adds triangle to the specified triangle container
| OdInt32 OdGiIntersectionsCalculator::appendTriangleContainer | ( | OdGiIntersectTrianglesVector * | pContainer | ) |
Appends specified triangle container to the containers list and returns it ID
| void OdGiIntersectionsCalculator::computeIntersections | ( | OdInt32 | containerID, |
| OdGeExtents3d & | extents ) |
Computes intersections between specified triangle container and "containers to be tested" list
|
inline |
Definition at line 239 of file GiIntersectionsCalculator.h.
|
inline |
Definition at line 233 of file GiIntersectionsCalculator.h.
|
inline |
Definition at line 243 of file GiIntersectionsCalculator.h.
|
virtual |
Reimplemented in OdGiCollisionDetector.
| bool OdGiIntersectionsCalculator::getSpaceTreeRootExtents | ( | OdGeExtents3d & | ext | ) |
|
virtual |
| void OdGiIntersectionsCalculator::intermediatefinalizeCalculations | ( | ) |
|
inline |
Definition at line 245 of file GiIntersectionsCalculator.h.
|
inline |
Definition at line 244 of file GiIntersectionsCalculator.h.
|
protected |
|
protectedvirtual |
Implements OdGiExtentsSpaceTreeCallback< OdGeExtents3d, OdGiTriangleForIntersectTest >.
Reimplemented in OdGiCollisionDetector.
| void OdGiIntersectionsCalculator::processTrianglesIntoSpaceTree | ( | OdUInt32 | objID, |
| bool | bOtherObjectsProcessed ) |
Specifies intersection tolerance
| tol | [in] Intersection tolerance |
Definition at line 229 of file GiIntersectionsCalculator.h.
|
inline |
Retrives intersection tolerance
Definition at line 224 of file GiIntersectionsCalculator.h.
|
inline |
Definition at line 237 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 177 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 162 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 165 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 176 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 173 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 172 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 168 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 169 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 152 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 155 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 156 of file GiIntersectionsCalculator.h.
|
protected |
Definition at line 159 of file GiIntersectionsCalculator.h.