A3DMiscGetBoundingBox
-
A3DStatus
A3DMiscGetBoundingBox(const A3DEntity *pEntity, A3DBoundingBoxData *pAABB) -
Read the axis-aligned bounding box (AABB) of the given
A3DEntitydirectly from the CAD data.Parameters
pEntity: The Entity to get the bounding box from. It can be any of
A3DAsmModelFile,A3DAsmProductOccurrence,A3DAsmPartDefinitionorA3DRiSet.pAABB: A pointer to a valid A3DBoundingBoxData which will be filled in with the found bounding box. If no AABB is found in the CAD data, A3DBoundingBoxData::m_sMin and 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