Close

Relief for ODA Team in Ukraine

Learn more
ODA IFC SDK
getDrawableShapeRepresentation Function
Syntax
C++
IFCCORE_EXPORT OdResult getDrawableShapeRepresentation(const OdArray<OdGiDrawablePtr>& entities, const OdDAIObjectId& subContextId, OdDAI::Model* pModel, OdDAIObjectId& shapeId, int shapeType);

Creates shape representations for each provided GiDrawable entity and returns the array of identifiers for every newly created shape representation to the calling subroutine. Every newly created shape representation is assigned to a specified representation context.

Parameters
Description
entities
[in] An array of entities that should be converted into an OdIfcShapeRepresentation object.
subContextId
[in] An identifier of the sub-context object to which the shape representation will be added.
pModel
[in] A raw pointer to the instance of the OdIfcModel class that represents the current model of the file.
shapeId
[out] A placeholder for the identifier of the created shape representation object.

eOk if the shape representation object was successfully created; otherwise, the function returns an appropriate error code.

The method sets identifier values of created shape representations, adds them into the provided identifiers array, and returns it to a calling subroutine.

File: IfcCore.h

Copyright © 2002-2022. Open Design Alliance All rights reserved.