A3DTreeNodeGetGeometry

A3DStatus A3DTreeNodeGetGeometry(const A3DTree *pTree, const A3DTreeNode *pNode, A3DBool bApplyTreeStyle, A3DMeshData *pMeshData, const A3DRiComputeMeshParametersData *psMeshOptionsData)
A3DStatus A3DTreeNodeGetGeometry(const A3DTree* pTree, const A3DTreeNode* pNode, A3DBool bApplyTreeStyle, A3DMeshData* pMeshData, const A3DRiComputeMeshParametersData* psMeshOptionsData)

Get mesh associated to the node.

24.0

Return Values

A3D_INVALID_DATA_STRUCT_SIZE: Incorrect initialization size for pMeshData.

A3D_INVALID_DATA_STRUCT_NULL: Null pMeshData pointer.

A3D_INVALID_ENTITY_NULL: Null no entity is linked to the node

A3D_INVALID_ENTITY_TYPE: Unsupported type for the entity linked to the node

A3D_MESH_EMPTY: Entity linked to the node contains no coordinate data.

A3D_MESH_INCONSISTENT: Inconsistent tessellation information.

A3D_ERROR: Mesh data computation failure.

A3D_SUCCESS: Success.

Parameters

pTree: The model tree containing the node, or 0 to clean the memory.

pNode: The tree node, or 0 to clean the memory.

bApplyTreeStyle: specify the graphical information defined in the tree should be applied to compute the mesh.

pMeshData: The A3DMeshData to store the computed mesh or release memory if pTree or pNode are null.

psMeshOptionsData: Options used to compute Mesh. 0 for now, options structure for future use.

Returns

A3D_SUCCESS on success, or an error code on failure