CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
Brep2IfcAdvancedBrepFiller Class Reference

#include <Brep2IfcAdvancedBrepFiller.h>

Public Member Functions

 Brep2IfcAdvancedBrepFiller (const OdBrBrep &brep, OdDAI::Model *pModel, OdDbBaseDatabase *pDb=nullptr)
 
 ~Brep2IfcAdvancedBrepFiller ()
 
void setBrepMaterialAndColor (OdDbStub *material, const OdCmEntityColor &color)
 
void setBrepMaterial (OdDbStub *material)
 
void setBrepColor (const OdCmEntityColor &color)
 
void setAsNurbs (bool asNurbs)
 
void setTransformation (const OdGeMatrix3d &transform, double dScale=1.)
 
void setBrBrepTransformation (bool isTransform)
 
void setTexturesCreationType (OdIfcHostAppServices::TexturesType texturesType)
 
OdResult convertBrep2Model (OdDAIObjectId &shapeId)
 
OdResult convertBrep2IfcAdvancedBrep (OdDAIObjectId &advancedBrepId)
 

Detailed Description

A class that provides an advanced interface for writing ODA Boundary Representation objects to IFC files.

Remarks
ODA IFC SDK should be initialized with odIfcInitialize parameter bool initIfcGeomResource = true to work with this class.

Definition at line 39 of file Brep2IfcAdvancedBrepFiller.h.

Constructor & Destructor Documentation

◆ Brep2IfcAdvancedBrepFiller()

Brep2IfcAdvancedBrepFiller::Brep2IfcAdvancedBrepFiller ( const OdBrBrep & brep,
OdDAI::Model * pModel,
OdDbBaseDatabase * pDb = nullptr )

Creates a new Brep2IFC filler object with specified parameters.

Parameters
brep[in] A <exref target="https://docs.opendesign.com/tkernel_api_cpp/OdBrBrep.html">B-Rep</exref> object that contains data to write.
pModel[in] A raw pointer to the instance of the <exref target="https://docs.opendesign.com/tifc_api_cpp/OdIfcModel.html>OdIfcModel</exref> class that represents the current model of the file.
pDb[in] A raw pointer to the instance of the B-Rep owner Protocol Extension database.

◆ ~Brep2IfcAdvancedBrepFiller()

Brep2IfcAdvancedBrepFiller::~Brep2IfcAdvancedBrepFiller ( )

Destroys the Brep2IFC filler object.

Member Function Documentation

◆ convertBrep2IfcAdvancedBrep()

OdResult Brep2IfcAdvancedBrepFiller::convertBrep2IfcAdvancedBrep ( OdDAIObjectId & advancedBrepId)

Creates an IfcAdvancedBrep object within the model and returns its object identifier.

Parameters
advancedBrepId[out] A placeholder for the identifier of the created IfcAdvancedBrep object.
Returns
eOk if the IfcAdvancedBrep object was successfully created; otherwise, the method returns an appropriate error code.

◆ convertBrep2Model()

OdResult Brep2IfcAdvancedBrepFiller::convertBrep2Model ( OdDAIObjectId & shapeId)

Adds the B-Rep object to the model as a new shape representation. If the shape representation already exists, the method adds an IfcAdvancedBrep instance to it; otherwise, it creates a new shape representation.

Parameters
shapeId[in/out] A placeholder for the identifier of the created shape representation object. If the identifier is zero, the method creates a new IfcProductDefinitionShape and sets its identifier.
Returns
eOk if the shape representation object was successfully created; otherwise, the method returns an appropriate error code.
Remarks
The B-Rep object conversion to the IFC format is in the beta state.

◆ setAsNurbs()

void Brep2IfcAdvancedBrepFiller::setAsNurbs ( bool asNurbs)

Sets the value of the NURBS surfaces creation flag. If the NURBS surfaces creation flag equals true, all surfaces are created as NURBS; otherwise, all surfaces are created according to their types in the B-Rep object if it is possible.

Parameters
asNurbs[in] A new vale of the NURBS surfaces creation flag.

◆ setBrBrepTransformation()

void Brep2IfcAdvancedBrepFiller::setBrBrepTransformation ( bool isTransform)

Sets transformation to the output instance from the incoming OdBrBrep object transformation matrix.

Parameters
isTramsform[in] If parameter is true sets transformation from the incoming OdBrBrep; otherwise dont set.

◆ setBrepColor()

void Brep2IfcAdvancedBrepFiller::setBrepColor ( const OdCmEntityColor & color)

Sets the B-Rep color.

Parameters
color[in] A global B-Rep <exref target="https://docs.opendesign.com/tkernel_api_cpp/OdCmEntityColor.html">color</exref>.

◆ setBrepMaterial()

void Brep2IfcAdvancedBrepFiller::setBrepMaterial ( OdDbStub * material)

Sets the B-Rep material.

Parameters
material[in] A global B-Rep material.

◆ setBrepMaterialAndColor()

void Brep2IfcAdvancedBrepFiller::setBrepMaterialAndColor ( OdDbStub * material,
const OdCmEntityColor & color )

Sets the B-Rep color and material.

Parameters
material[in] A global B-Rep material.
color[in] A global B-Rep <exref target="https://docs.opendesign.com/tkernel_api_cpp/OdCmEntityColor.html">color</exref>.

◆ setTexturesCreationType()

void Brep2IfcAdvancedBrepFiller::setTexturesCreationType ( OdIfcHostAppServices::TexturesType texturesType)

Sets the generated textures type or switches the generation of textures off.

Parameters
texturesType[in] The textures generation type represented with a value of the <<exref target="https://docs.opendesign.com/tifc_api_cpp/OdIfcHostAppServices__TexturesType.html>TexturesType</exref> TexturesType> enumeration. If this parameter equals to the kNoTextures value, the generation of textures will be switched off.
Remarks
The textures conversion option is in early beta state.

◆ setTransformation()

void Brep2IfcAdvancedBrepFiller::setTransformation ( const OdGeMatrix3d & transform,
double dScale = 1. )

Sets transformation options.

Parameters
transform[in] A transformation matrix for brep object.
dScale[in] Scale Factor. The scale factor must be greater than zero.

The documentation for this class was generated from the following file: