#include <Brep2IfcAdvancedBrepFiller.h>
A class that provides an advanced interface for writing ODA Boundary Representation objects to IFC files.
Definition at line 39 of file Brep2IfcAdvancedBrepFiller.h.
◆ 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.
◆ 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.
◆ 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()
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()
Sets the generated textures type or switches the generation of textures off.
- Parameters
-
◆ 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: