Helpers
Types
Functions
Detailed Description
- group a3d_rihelpers
Helpers for Representation Items.
Function Documentation
-
A3DStatus A3DRiComputeMesh(const A3DRiRepresentationItem *pRi, const A3DMiscCascadedAttributes *pAttributes, A3DMeshData *pMesh)
Fill the mesh structure with tessellation information of a previously created A3DRiRepresentationItem with the current graphical context( A3DMiscCascadedAttributes ).
Or release the memory used by the mesh if nullptr is provided instead of the representation item.
- Version
24.0
Note
This function computes the mesh for kA3DTypeRiBrepModel and kA3DTypeRiPolyBrepModel representation items only.
- Parameters
pRi – [in] A3DRiRepresentationItem from which we compute the mesh. If nullptr, release the memory of the mesh.
pAttributes – [in] A3DMiscCascadedAttributes of the representation item’s father.
pMesh – [inout] A3DMeshData Mesh computed or the mesh to release if pRi = nullptr.
- 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_MESH_EMPTY –
A3D_MESH_INCONSISTENT –
A3D_ERROR –
A3D_SUCCESS –
- Returns
A3D_SUCCESS in case of success or an error code