Topology Body (the topology base entity)

Functions

A3DStatus

A3DTopoBodyGet

A3DStatus

A3DTopoBodySet

Detailed Description

group a3d_topobody

Sets and gets attributes that apply to all A3DTopoBody entities.

Entity type is kA3DTypeTopoBody

Function Documentation

A3DStatus A3DTopoBodyGet(const A3DTopoBody *pBody, A3DTopoBodyData *pData)

Populates the A3DTopoBodyData structure.

Version

2.0

Return values:
  • A3D_INITIALIZE_NOT_CALLED

  • A3D_INVALID_DATA_STRUCT_SIZE

  • A3D_INVALID_DATA_STRUCT_NULL

  • A3D_INVALID_ENTITY_NULL

  • A3D_INVALID_ENTITY_TYPE

  • A3D_SUCCESS

Returns:

A3D_SUCCESS on success, or an error code on failure

A3DStatus A3DTopoBodySet(A3DTopoBody *pBody, const A3DTopoBodyData *pData)

Sets a previously created A3DTopoBody with an A3DTopoBodyData structure.

Version

2.0

Note

Because an A3DTopoBody entity is an abstract class, you cannot create directly such entity. Instead, use the appropriate derived function (such as A3DTopoSingleWireBodyCreate or A3DTopoBrepDataCreate) to create a specific topology entity. Then use this function to specify values in the entity base class. For example, this function specifies a value for the A3DTopoBodyData::m_pContext.

Return values:
  • A3D_INVALID_DATA_STRUCT_SIZE

  • A3D_INVALID_DATA_STRUCT_NULL

  • A3D_SET_INCONSISTENT_EMPTY

  • A3D_SUCCESS

Returns:

A3D_SUCCESS on success, or an error code on failure