24#ifndef _BREPBUILDER_H_
25#define _BREPBUILDER_H_
71 , m_complexId(kInvalidId)
72 , m_shellId(kInvalidId)
73 , m_faceId(kInvalidId)
74 , m_loopId(kInvalidId)
75 , m_edgeId(kInvalidId)
76 , m_coedgeId(kInvalidId)
100 : m_errorCode(errCode)
101 , m_complexId(complexId)
106 , m_coedgeId(coedgeId)
107 , m_errorMessage(errMsg)
181 void set(
const void* pFile);
OdUInt32 BRepBuilderGeometryId
OdArray< BrepBuilderErrorsHolder > ValidationErrors
#define BREPBUILDEREXPORT_STATIC
#define BREPBUILDEREXPORT
void setTag(const BRepBuilderGeometryId &id, OdUInt32 tag)
const ValidationErrors * getValidationErrors() const
BRepBuilderGeometryId addVertex(const OdGePoint3d &point)
static BREPBUILDEREXPORT_STATIC const BRepBuilderGeometryId kDefaultVertexId
void setFlag(const BRepBuilderGeometryId &id, OdUInt32 flag, bool enable)
void setAllowShortEdges()
void enableValidator(bool bEnable=true)
BRepBuilderGeometryId addComplex()
BRepBuilderGeometryId addShell(const BRepBuilderGeometryId &complexId)
bool isValidEdgeId(const BRepBuilderGeometryId &edgeId)
OdResult setFaceColor(const BRepBuilderGeometryId &faceId, const OdCmEntityColor &faceColor)
OdResult setFaceMaterialMapping(const BRepBuilderGeometryId &faceId, const OdGiMapper &materialMapper)
void finishLoop(const BRepBuilderGeometryId &loopId)
BRepBuilderGeometryId addEdge(const OdGeCurve3d *pCurveForEdge)
void finishComplex(const BRepBuilderGeometryId &complexId)
bool isValidFaceId(const BRepBuilderGeometryId &faceId)
void set(const void *pFile)
void setFacesMaterial(const BRepBuilderGeometryId &faceId, OdDbStub &materialId)
bool isPermittedSurfaceType(const OdGeSurface *pSurf)
static BREPBUILDEREXPORT_STATIC const BRepBuilderGeometryId kDefaultShellId
BRepBuilderGeometryId addCoedge(const BRepBuilderGeometryId &loopId, const BRepBuilderGeometryId &edgeId, EntityDirection codgeDirection=kForward, const OdGeCurve2d *pParCur=NULL)
void allowRemovalOfProblematicFaces()
void finishShell(const BRepBuilderGeometryId &shellId)
OdRxObjectPtr getResult()
void finishFace(const BRepBuilderGeometryId &faceId)
bool isValidShellId(const BRepBuilderGeometryId &shellId)
BRepBuilderGeometryId addLoop(const BRepBuilderGeometryId &faceId)
OdResult setEdgeColor(const BRepBuilderGeometryId &edgeId, const OdCmEntityColor &edgeColor)
BRepBuilderGeometryId addEdge(const OdGeCurve3d *pCurveForEdge, const BRepBuilderGeometryId &vertex1Id, const BRepBuilderGeometryId &vertex2Id)
bool isValidLoopId(const BRepBuilderGeometryId &loopId)
BRepBuilderGeometryId addFace(const OdGeSurface *pSurf, EntityDirection faceDirection, const BRepBuilderGeometryId &shellId=kDefaultShellId)
bool isValidComplexId(const BRepBuilderGeometryId &complexId)
BRepBuilderGeometryId m_shellId
BRepBuilderGeometryId m_edgeId
BRepBuilderGeometryId m_loopId
BrepBuilderErrorsHolder()
BrepBuilderErrorsHolder(OdResult errCode, const OdString &errMsg="", BRepBuilderGeometryId complexId=kInvalidId, BRepBuilderGeometryId shellId=kInvalidId, BRepBuilderGeometryId faceId=kInvalidId, BRepBuilderGeometryId loopId=kInvalidId, BRepBuilderGeometryId edgeId=kInvalidId, BRepBuilderGeometryId coedgeId=kInvalidId)
BRepBuilderGeometryId m_complexId
BRepBuilderGeometryId m_coedgeId
BRepBuilderGeometryId m_faceId