A3DMiscComputeBoundingBox
-
A3DStatus
A3DMiscComputeBoundingBox(const A3DEntity *pEntity, const A3DMiscComputeBoundingBoxOptions *pOptions, A3DBoundingBoxData *pAABB) A3DStatusA3DMiscComputeBoundingBox(constA3DEntity* pEntity, constA3DMiscComputeBoundingBoxOptions* pOptions,A3DBoundingBoxData* pAABB)Use the tessellation to compute the axis-aligned bounding box (AABB) of the given entity.
An invalid bounding box corresponds to those values:
A3DBoundingBoxData::m_sMinis{1.0, 0.0, 0.0}A3DBoundingBoxData::m_sMaxis{-1.0, 0.0, 0.0}
It can occur under following conditions:
The computation is done on infinite elements.
The CAD data do not contain any tessellation.
pEntityis of typeA3DRiPlane.This function computes the bounding box using tessellation data. If you want to read the actual bounding box from CAD data, see
A3DMiscGetBoundingBox().
Parameters
pEntity: The Entity to get the bounding box from. It can be any of
A3DAsmModelFile,A3DAsmProductOccurrence,A3DAsmPartDefinitionorA3DRiSet.pOptions: Options of the function. Can be NULL.
pAABB: A pointer to a valid
A3DBoundingBoxDatawhich will be filled in with the computed bounding box. If not possible an invalid bounding box is filled in (see below).Returns
A3D_SUCCESSon success, or an error code on failure