CFx SDK Documentation
2020SP3
|
#include <BrFace.h>
Public Types | |
enum | Projection { kInheritProjection = 0, kPlanar = 1, kBox = 2, kCylinder = 3, kSphere = 4 } |
enum | Tiling { kInheritTiling = 0, kTile = 1, kCrop = 2, kClamp = 3, kMirror = 4 } |
enum | AutoTransform { kInheritAutoTransform = 0x0, kNone = 0x1, kObject = 0x2, kModel = 0x4 } |
Public Member Functions | |
OdBrErrorStatus | getSurfaceAsNurb (OdGeNurbSurface &nurb) const |
OdGeSurface * | getSurface () const |
OdBrErrorStatus | getSurfaceType (OdGe::EntityId &surfaceType) const |
bool | getOrientToSurface () const |
bool | getColor (OdCmEntityColor &color) const |
bool | getMaterialID (OdUInt64 &id) const |
bool | getMaterialString (OdString &strMatName) const |
bool | getMaterialMapper (OdGeMatrix3d &mx, Projection &projection, Tiling &tiling, AutoTransform &autoTransform) const |
OdBrErrorStatus | getSurfaceAsTrimmedNurbs (OdUInt32 &numNurbs, OdGeExternalBoundedSurface **&ppNurbs) const |
bool | getFillPatternId (OdUInt64 &id) const |
bool | getFillingAttributes (OdGePoint2d &origin, OdGeVector2d &dir) const |
OdBrFace () | |
~OdBrFace () | |
Public Member Functions inherited from OdBrEntity | |
bool | isNull () const |
bool | isEqualTo (const OdBrEntity *pOtherEntity) const |
bool | getBrep (OdBrBrep &brep) const |
bool | checkEntity () const |
OdBrErrorStatus | getSubentPath (OdDbBaseFullSubentPath &subPath) const |
virtual | ~OdBrEntity () |
OdBrErrorStatus | setSubentPath (OdBrBrep &brep, OdDbBaseFullSubentPath &subpath) |
OdBrErrorStatus | getPointContainment (const OdGePoint3d &point, OdGe::PointContainment &containment, OdBrEntity *&brEntContainer) const |
OdBrErrorStatus | getLineContainment (const OdGeLinearEnt3d &line, const OdUInt32 &iNumHitsWanted, OdUInt32 &iNumHitsFound, OdBrHit *&brHit) const |
OdBrErrorStatus | setValidationLevel (const BrValidationLevel &level= *(BrValidationLevel *) NULL) |
OdBrErrorStatus | getValidationLevel (BrValidationLevel &level) const |
OdUInt32 | getFlags () const |
OdInt32 | getGsMarker () const |
OdBrErrorStatus | getMassProps (OdBrMassProps &massProps, const double &dDensity= *(double *) NULL, const double &dTolRequired= *(double *) NULL, double &dTolAchieved= *(double *) NULL) const |
OdBrErrorStatus | getVolume (double &dVolume, const double &dTolRequired= *(double *) NULL, double &dTolAchieved= *(double *) NULL) const |
OdBrErrorStatus | getSurfaceArea (double &dArea, const double &dTolRequired= *(double *) NULL, double &dTolAchieved= *(double *) NULL) const |
OdBrErrorStatus | getPerimeterLength (double &dLength, const double &dTolRequired= *(double *) NULL, double &dTolAchieved= *(double *) NULL) const |
Additional Inherited Members | |
Protected Member Functions inherited from OdBrEntity | |
OdBrEntity () | |
Protected Attributes inherited from OdBrEntity | |
void * | m_pImp |
OdSharedPtr< OdDbStubPtrArray > | m_pFSubentPath |
bool | m_bIsValidate |
This class is the interface class for BREP faces.
<group OdBr_Classes>
enum OdBrFace::Projection |
Returns the material mapper of this Face entity.
mx | [out] Receives the transformation matrix. |
projection | [out] Receives the projection flag. |
tiling | [out] Receives the tiling flag. |
autoTransform | [out] Receives the auto transform flag. |
Enumerator | |
---|---|
kInheritProjection | |
kPlanar | |
kBox | |
kCylinder | |
kSphere |
enum OdBrFace::Tiling |
OdBrFace::OdBrFace | ( | ) |
OdBrFace::~OdBrFace | ( | ) |
bool OdBrFace::getColor | ( | OdCmEntityColor & | color | ) | const |
Returns the color of this Face entity.
color | [out] Receives the color. |
bool OdBrFace::getFillingAttributes | ( | OdGePoint2d & | origin, |
OdGeVector2d & | dir | ||
) | const |
bool OdBrFace::getFillPatternId | ( | OdUInt64 & | id | ) | const |
bool OdBrFace::getMaterialID | ( | OdUInt64 & | id | ) | const |
Returns the material handle of this Face entity.
id | [out] Receives the id. |
bool OdBrFace::getMaterialMapper | ( | OdGeMatrix3d & | mx, |
Projection & | projection, | ||
Tiling & | tiling, | ||
AutoTransform & | autoTransform | ||
) | const |
bool OdBrFace::getMaterialString | ( | OdString & | strMatName | ) | const |
Returns the material name of this Face entity.
strMatName | [out] Receives the material name. |
bool OdBrFace::getOrientToSurface | ( | ) | const |
Returns true if and only if the outside of the face is in the direction of the surface normal.
OdGeSurface* OdBrFace::getSurface | ( | ) | const |
Returns the underlying surface of this Face entity as an OdGeSurface.
OdBrErrorStatus OdBrFace::getSurfaceAsNurb | ( | OdGeNurbSurface & | nurb | ) | const |
Returns the underlying surface of this Face entity as an external OdGeNurbSurface.
nurb | [out] Receives the NURBS surface. |
OdBrErrorStatus OdBrFace::getSurfaceAsTrimmedNurbs | ( | OdUInt32 & | numNurbs, |
OdGeExternalBoundedSurface **& | ppNurbs | ||
) | const |
OdBrErrorStatus OdBrFace::getSurfaceType | ( | OdGe::EntityId & | surfaceType | ) | const |
Returns the best match of the underlying surface of this Face entity to surfaces supported by OdGe.
surfaceType | [out] Receives the surface type. |