Miscellaneous Module

Detailed Description

group a3d_misc_module

Tools and common structures.

This module describes tools and common structures.

Type Documentation

enum A3DMaterialPhysicType

Material physical type properties.

Version

9.0

Values:

enumerator A3DPhysicType_None

If no material type set.

enumerator A3DPhysicType_Fiber

Fiber Type.

enumerator A3DPhysicType_HoneyComb

Honey Comb Type.

enumerator A3DPhysicType_Isotropic

Isotropic Type.

enumerator A3DPhysicType_Orthotropic2D

Orthotropic Type.

enumerator A3DPhysicType_Orthotropic3D

Orthotropic 3D Type.

enumerator A3DPhysicType_Anisotropic

Anisotropic Type.

Function Documentation

A3DStatus A3DMiscGetMaterialProperties(const A3DEntity *pEntity, A3DMiscMaterialPropertiesData *pMaterialPropertiesData)

Get density in kg/m3 read from the file.

Equal to -1.0 if not set \ Can call it on product occurrences, part, and representation item

Version

8.2

A3DStatus A3DMiscGetBoundingBox(const A3DEntity *pEntity, A3DBoundingBoxData *pAABB)

Read the axis-aligned bounding box (AABB) of the given A3DEntity directly from the CAD data.

Version

8.2

Warning

This function does not compute any bounding box. To do so please check A3DMiscComputeBoundingBox.

Parameters
Return values
  • A3D_SUCCESS

  • A3D_BASE_BAD_ENTITY_TYPE

  • A3D_INITIALIZE_BAD_VALUES

Returns

A3D_SUCCESS in case of success or an error code

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.

An invalid bouding box corresponds to those values:

Version

11.1

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.

Parameters
  • pEntity[in] The Entity to get the bounding box from. It can be any of A3DAsmProductOccurrence, A3DAsmPartDefinition or A3DRiSet.

  • pOptPlacement[in] Reserved for future use. Must be set to 0.

  • pAABB[out] 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).

Return values
  • A3D_INVALID_DATA_STRUCT_SIZE

  • A3D_INVALID_DATA_STRUCT_NULL

  • A3D_BASE_BAD_ENTITY_TYPE

  • A3D_SUCCESS – The bouding box computation is done on visible entities only. The unit used is the same as the given entity.

Returns

A3D_SUCCESS in case of success or an error code