|
CFx SDK Documentation 2026 SP0
|
#include <BrepBuilder.h>
Public Types | |
| enum | EntityDirection { kForward , kReversed } |
Static Public Attributes | |
| static BREPBUILDEREXPORT_STATIC const BRepBuilderGeometryId | kDefaultShellId |
| static BREPBUILDEREXPORT_STATIC const BRepBuilderGeometryId | kDefaultVertexId |
Protected Attributes | |
| void * | m_pImpl |
This is the class that allows direct construction of geometry objects (solids, surfaces or open shells).
<group OdBrepBuilder_Classes>
Definition at line 152 of file BrepBuilder.h.
Defines the entity direction in relation to the parent entity.
| Enumerator | |
|---|---|
| kForward | The direction of the entity is the same as the direction of the parent entity. |
| kReversed | The direction of the entity is opposite to the direction of the parent entity. |
Definition at line 173 of file BrepBuilder.h.
| OdBrepBuilder::OdBrepBuilder | ( | ) |
Creates a new instance of the OdBrepBuilder object with default parameters.
| OdBrepBuilder::~OdBrepBuilder | ( | ) |
Destructor. Destroys the OdBrepBuilder object.
| BRepBuilderGeometryId OdBrepBuilder::addCoedge | ( | const BRepBuilderGeometryId & | loopId, |
| const BRepBuilderGeometryId & | edgeId, | ||
| EntityDirection | codgeDirection = kForward, | ||
| const OdGeCurve2d * | pParCur = NULL ) |
Adds a coedge associated to a previously added edge. A coedge represents the use of an edge on one of the edge's faces.
| loopId | [in] ID of the loop which the added code belongs to. |
| edgeId | [in] ID of the edge. |
| codgeDirection | [in] Coedge direction in relation to the edge. |
| pParCur | [in] Pointer to a paramectic curve. Optional parameter. |
| BRepBuilderGeometryId OdBrepBuilder::addComplex | ( | ) |
Creates an empty complex — the upper topology element.
| BRepBuilderGeometryId OdBrepBuilder::addEdge | ( | const OdGeCurve3d * | pCurveForEdge | ) |
Adds a new edge to the geometry being built.
| pCurveForEdge | [in] Pointer to the edge geometry (object-space curve). |
| BRepBuilderGeometryId OdBrepBuilder::addEdge | ( | const OdGeCurve3d * | pCurveForEdge, |
| const BRepBuilderGeometryId & | vertex1Id, | ||
| const BRepBuilderGeometryId & | vertex2Id ) |
Adds a new edge to the geometry being built.
| pCurveForEdge | [in] Pointer to the edge geometry (object-space curve). |
| vertex1Id | [in] ID of the first vertex. |
| vertex2Id | [in] ID of the second vertex. |
| BRepBuilderGeometryId OdBrepBuilder::addFace | ( | const OdGeSurface * | pSurf, |
| EntityDirection | faceDirection, | ||
| const BRepBuilderGeometryId & | shellId = kDefaultShellId ) |
Creates an empty face in the geometry being built.
| pSurf | [in] Pointer to the underlying surface. |
| faceDirection | [in] Face's orientation in relation to the underlying surface. |
| shellId | [in] Shell ID. |
| BRepBuilderGeometryId OdBrepBuilder::addLoop | ( | const BRepBuilderGeometryId & | faceId | ) |
Creates an empty loop in a given face of the geometry being built.
| faceId | [in] Face ID. |
| BRepBuilderGeometryId OdBrepBuilder::addShell | ( | const BRepBuilderGeometryId & | complexId | ) |
Creates an empty shell.
| complexId | [in] Complex ID. |
| BRepBuilderGeometryId OdBrepBuilder::addVertex | ( | const OdGePoint3d & | point | ) |
Adds a new vertex to the geometry being built.
| point | [in] 3D point. |
| void OdBrepBuilder::allowRemovalOfProblematicFaces | ( | ) |
Allows BRepBuilder to remove problematic faces (e.g. due to inaccurate edge geometry). If this option is enabled and BRepBuilder removes some faces, the output geometry's type will be OpenShell regardless of the expected type, specified when the BRepBuilder was created.
| bool OdBrepBuilder::canAddGeometry | ( | ) |
A validator function that checks the state of this BRepBuilder object.
Enables or disables validation in BRepBuilder.
| bEnable | [in] True to enable validation; false to disable validation. |
| OdRxObjectPtr OdBrepBuilder::finish | ( | ) |
Completes construction of the geometry. The geometry is validated and if valid, stored in this Builder.
| void OdBrepBuilder::finishComplex | ( | const BRepBuilderGeometryId & | complexId | ) |
Indicates that the caller has finished defining the given complex.
| complexId | [in] Complex ID. |
| void OdBrepBuilder::finishFace | ( | const BRepBuilderGeometryId & | faceId | ) |
Indicates that the caller has finished defining the given face.
| faceId | [in] Face ID. |
| void OdBrepBuilder::finishLoop | ( | const BRepBuilderGeometryId & | loopId | ) |
Indicates that the caller has finished defining the given loop.
| loopId | [in] Loop ID. |
| void OdBrepBuilder::finishShell | ( | const BRepBuilderGeometryId & | shellId | ) |
Indicates that the caller has finished defining the given shell.
| shellId | [in] Shell ID. |
| OdUInt32 OdBrepBuilder::getBBSettings | ( | ) | const |
Returns flags (settings) of the BrepBuilder.
| OdRxObjectPtr OdBrepBuilder::getResult | ( | ) |
Gets the geometry object built by this BRepBuilder. This method clears the built geometry stored in the BRepBuilder. This function will throw an error if this BRepBuilderGeometryId hasn't completed building the B-Rep. Use IsResultAvailable() to verify whether this BRepBuilder contains a valid result. Built entity is specific for each product-dependent implementation.
| BrepType OdBrepBuilder::getType | ( | ) |
Returns the type of the output geometry.
| const ValidationErrors * OdBrepBuilder::getValidationErrors | ( | ) | const |
Returns errors found during validation.
| bool OdBrepBuilder::isPermittedSurfaceType | ( | const OdGeSurface * | pSurf | ) |
A validator function that checks whether the surface object is of the type that is supported as a face surface by BRepBuilder.
| pSurf | [in] Pointer to the surface object. |
| bool OdBrepBuilder::isResultAvailable | ( | ) |
A validator function that checks the state of this BRepBuilder object.
| bool OdBrepBuilder::isValid | ( | ) | const |
Checks the state of the product-dependent implementation.
| bool OdBrepBuilder::isValidComplexId | ( | const BRepBuilderGeometryId & | complexId | ) |
A validator function that checks whether the complex ID corresponds to the complex previously added to this BRepBuilder object.
| complexId | [in] Complex ID. |
| bool OdBrepBuilder::isValidEdgeId | ( | const BRepBuilderGeometryId & | edgeId | ) |
A validator function that checks whether the edge ID corresponds to the edge previously added to this BRepBuilder object.
| edgeId | [in] Edge ID. |
| bool OdBrepBuilder::isValidFaceId | ( | const BRepBuilderGeometryId & | faceId | ) |
A validator function that checks whether the face ID corresponds to the face previously added to this BRepBuilder object.
| faceId | [in] Face ID. |
| bool OdBrepBuilder::isValidLoopId | ( | const BRepBuilderGeometryId & | loopId | ) |
A validator function that checks whether the loop ID corresponds to the loop previously added to this BRepBuilder object.
| loopId | [in] Loop ID. |
| bool OdBrepBuilder::isValidShellId | ( | const BRepBuilderGeometryId & | shellId | ) |
A validator function that checks whether the shell ID corresponds to the shell previously added to this BRepBuilder object.
| shellId | [in] Shell ID. |
| bool OdBrepBuilder::removedSomeFaces | ( | ) |
This function removes some problematic faces from the output geometry.
Sets the product-dependent implementation.
| pFile | [in] Pointer to the product-dependent implementation. |
| void OdBrepBuilder::setAllowShortEdges | ( | ) |
Makes BRepBuilder allow edges that it would normally disallow as being too short for geometry.
Sets settings for BrepBuilder.
| flag | [in] Bit flag from the BrepBuilderSettings enumeration. |
| enable | [in] True to enable/set the flag, false to disable/remove the flag. |
| OdResult OdBrepBuilder::setEdgeColor | ( | const BRepBuilderGeometryId & | edgeId, |
| const OdCmEntityColor & | edgeColor ) |
Sets the edge color.
| edgeId | [in] Edge ID. |
| edgeColor | [in] Edge color. |
| OdResult OdBrepBuilder::setFaceColor | ( | const BRepBuilderGeometryId & | faceId, |
| const OdCmEntityColor & | faceColor ) |
Sets the face color.
| faceId | [in] Face ID. |
| faceColor | [in] Face color. |
| OdResult OdBrepBuilder::setFaceMaterialMapping | ( | const BRepBuilderGeometryId & | faceId, |
| const OdGiMapper & | materialMapper ) |
Sets the material mapper for the face.
| faceId | [in] Face ID. |
| materialMapper | [in] Material mapper. |
| OdResult OdBrepBuilder::setFacesMaterial | ( | const BRepBuilderGeometryId & | faceId, |
| OdDbStub & | materialId ) |
Sets the material ID to the specified face.
| faceId | [in] Face ID. |
| materialId | [in] Material ID. |
| void OdBrepBuilder::setFlag | ( | const BRepBuilderGeometryId & | id, |
| OdUInt32 | flag, | ||
| bool | enable ) |
Sets a specified bit flag on an object.
| id | [in] Entity ID. |
| flag | [in] Bit flag from the BrEntityFlags enumeration. |
| enable | [in] True to enable/set the flag, false to disable/remove the flag. |
| void OdBrepBuilder::setTag | ( | const BRepBuilderGeometryId & | id, |
| OdUInt32 | tag ) |
Sets the tag value that is used for faces and edges. Use setTag() just after addFace(), addEdge() or addVertex() calls.
| id | [in] B-Rep builder entity ID. |
| tag | [in] Tag value. |
| OdResult OdBrepBuilder::setTransformation | ( | const OdGeMatrix3d & | transformation | ) |
Sets transformation matrix for BrepBuilder.
| transformation | [in] The transformation matrix. |
|
static |
Default Shell ID.
Definition at line 156 of file BrepBuilder.h.
|
static |
Default Vertex ID.
Definition at line 158 of file BrepBuilder.h.
|
protected |
Definition at line 555 of file BrepBuilder.h.