Creates and accesses entities that represent Representation items. More...
Modules | |
Representation Item Base | |
Set Representation Item | |
PointSet Representation Item | |
Direction Representation Item | |
Coordinate System Representation Item | |
An axis system. | |
Curve Representation Item | |
Plane Representation Item | |
BrepModel Representation Item | |
PolyBrepModel Representation Item | |
PolyWire Representation Item | |
Drawing Block | |
Creates and accesses entities that contain graphics entities. | |
Functions | |
A3DStatus | A3DMiscComputeBoundingBox (const A3DEntity *pEntity, A3DDouble const *pOptPlacement, A3DBoundingBoxData *pAABB) |
Use the tessellation to compute the axis-aligned bounding box (AABB) of the given entity. More... | |
Detailed Description
Creates and accesses entities that represent Representation items.
Representation item entities define individual objects that are present in a CAD file, such as a bolt, wheel, or table leg.
Multiple representation items are contained within a part definition, which scales and positions the representation items within a 3D space. The result is a 3D part that can be assembled into higher level product occurrences, such as an engine part, car, or table.
An A3DRiRepresentationItem contains a local A3DRiCoordinateSystem. The A3DRiCoordinateSystem coordinate system is expressed relative to the parent product occurrence's coordinate system (A3DAsmProductOccurrence).
All representation item entities inherit the A3DRiRepresentationItem base class.
Function Documentation
A3DStatus A3DMiscComputeBoundingBox | ( | const A3DEntity * | pEntity, |
A3DDouble const * | pOptPlacement, | ||
A3DBoundingBoxData * | pAABB | ||
) |
Use the tessellation to compute the axis-aligned bounding box (AABB) of the given entity.
- Version
- 11.1
- Parameters
-
[in] pEntity The Entity to get the bounding box from. It can be any of A3DAsmProductOccurrence, A3DAsmPartDefinition or A3DRiSet. [in] pOptPlacement Reserved for future use. Must be set to 0. [out] pAABB A pointer to a valid A3DBoundingBoxData which will be filled in with the computed bounding box. If not possible an invalid bounding box is filled in (see below).
- Returns
- A3D_INVALID_DATA_STRUCT_SIZE
- A3D_INVALID_DATA_STRUCT_NULL
- A3D_BASE_BAD_ENTITY_TYPE
- A3D_SUCCESS
The bounding box computation is done on visible entities only. The unit used is the same as the given entity.
An invalid bounding box corresponds to those values:
- A3DBoundingBoxData::m_sMin is
{1.0, 0.0, 0.0}
- A3DBoundingBoxData::m_sMax is
{-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.
- pEntity is of type A3DRiPlane.
- Warning
- This function computes the bounding box using tessellation data. If you want to read the actual bounding box from CAD data, see A3DMiscGetBoundingBox.