A3DMiscGetBoundingBox
-
A3DStatus
A3DMiscGetBoundingBox(const A3DEntity *pEntity, A3DBoundingBoxData *pAABB) Read the axis-aligned bounding box (AABB) of the given:c:type:~A3DEntitydirectly from the CAD data.
Parameters
pEntity: The Entity to get the bounding box from. It can be any of:c:type:~A3DAsmModelFile,:c:type:~A3DAsmProductOccurrence,:c:type:~A3DAsmPartDefinitionor:c:type:~A3DRiSet.
pAABB: A pointer to a valid:c:struct:~A3DBoundingBoxDatawhich will be filled in with the found bounding box. If no AABB is found in the CAD data,:c:member:A3DBoundingBoxData::m_sMin <A3DBoundingBoxData.m_sMin>and:c:member:A3DBoundingBoxData::m_sMax <A3DBoundingBoxData.m_sMax>will be set to zero vectors ({0.0, 0.0, 0.0}).
Returns
A3D_SUCCESSon success, or an error code on failure