A3DRiComputeMesh
-
A3DStatus
A3DRiComputeMesh(const A3DRiRepresentationItem *pRi, const A3DMiscCascadedAttributes *pParentAttributes, A3DMeshData *pMesh, const A3DRiComputeMeshDataParameters *psMeshOptionsData) A3DStatusA3DRiComputeMesh(constA3DRiRepresentationItem* pRi, constA3DMiscCascadedAttributes* pParentAttributes,A3DMeshData* pMesh, constA3DRiComputeMeshDataParameters* psMeshOptionsData)Populate an
A3DMeshDatastructure with mesh information extracted from the providedA3DRiRepresentationItementity.24.0This function computes the underlying mesh structure contained within the given representation item and fills in an instance of
A3DMeshData. If normals are missing from the representation item, they are computed usingA3DRiComputeMesh.Parameters
pRi: The
A3DRiRepresentationItemfrom which to compute the mesh. If nullptr, memory of the mesh is released.pParentAttributes: The
A3DMiscCascadedAttributesof the representation item’s parent.pMesh: The
A3DMeshDatato store the computed mesh or release memory if pRi = nullptr.psMeshOptionsData: Options used to compute Mesh. 0 for now, options structure for future use.
Returns
A3D_SUCCESS if successful, otherwise an error code.