CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Functions
IfcCoreTools.h File Reference
#include "RxModule.h"
#include "IfcBuildOptions.h"
#include "OdaCommon.h"
#include "DynamicLinker.h"
#include "daiModel.h"

Go to the source code of this file.

Classes

class  OdIfcCoreToolsModule
 

Functions

IFCCORETOOLS_EXPORT OdResult addBrep2Model (const OdBrBrep &brep, OdDAI::Model *pModel, OdDAIObjectId &shapeId, bool surfacesAsNurbs=false)
 

Function Documentation

◆ addBrep2Model()

IFCCORETOOLS_EXPORT OdResult addBrep2Model ( const OdBrBrep brep,
OdDAI::Model *  pModel,
OdDAIObjectId &  shapeId,
bool  surfacesAsNurbs = false 
)

Adds brep object to the model as new shape representation. If shape representation is already create, adds IfcAdvancedBrep to it; otherwice creats new shape representation.

Parameters
brep[in] A brep object.
pModel[in] A raw pointer to the instance of the <link , OdIfcModel> class that represents the current model of the file.
shapeId[in/out] A placeholder for the identifier of the created shape representation object. If shapeId is zero creates new IfcProductDefinitionShape and sets it identifier.
surfacesAsNurbs[in] If parameter is true all surfaces crearted as a nurbs; otherwise surfaces crearted of the same type as in the brep if it posible.
Returns
eOk if the shape representation object was successfully created; otherwise, the function returns an appropriate error code.
Remarks
Beta version of brep objects to ifc conversion.