|
CFx SDK Documentation 2026 SP0
|
#include <FMMdlFace.h>
Classes | |
| struct | EdgeLoop |
Public Member Functions | |
| Face () | |
| Face * | next () const |
| void | setNext (Face *pNext) |
| Face * | prev () const |
| void | setPrev (Face *pPrev) |
| void | addNext (Face *pNext) |
| void | set (Face *pPrev, Face *pNext) |
| const OdGePlane & | plane () const |
| OdGeVector3d | normal () const |
| bool | isConvex () const |
| bool | hasHoles () const |
| OdUInt32 | loopCount () const |
| void | setLoopCount (OdUInt32 n) |
| OdUInt32 | loopEdgeCount (OdUInt32 iLoopIndex=0) const |
| Edge * | edge (OdUInt32 nLoop=0) const |
| Edge * | addEdge (OdUInt32 nLoop, FacetModeler::Vertex *pVertex, bool bInverseOrder=false) |
| OdUInt32 | findLoop (const Edge *pEdge) const |
| double | area () const |
| void | deletePlane () const |
| void | clearVertexTags () |
| void | clearEdgeTags () |
| void | negate () |
| void | profile (Profile3D &rResult, const OdGePlane *pPlane=NULL, bool bIncludeHoles=true) const |
| void | projection (const OdGePlane &plane, Profile2D &result, bool bIncludeHoles=true, OdArray< const Edge * > *pSourceEdges=NULL) const |
| FaceOrientation | orientation () const |
| void | setOrientation (FaceOrientation eOrientation) |
| bool | intersectLine (const OdGeLinearEnt3d &gLine, OdGePoint3d *pptResult=NULL, bool *pbCoplanar=NULL) const |
| Surface * | surface () const |
| void | setSurface (Surface *surface) |
| OdUInt32 | color () const |
| void | setColor (const OdUInt32 color) |
| void | setEdgeLoop (EdgeLoop eloop) |
| EdgeLoop * | loop (OdUInt32 nLoop) const |
| ~Face () | |
Public Member Functions inherited from FacetModeler::Entity | |
| Entity () | |
| Entity (const Entity &ent) | |
| Entity & | operator= (const Entity &entity) |
| OdUInt32 | flags () const |
| void | setFlags (OdUInt32 iFlags) |
| bool | isFlagOn (OdUInt32 iFlag) const |
| void | setIsFlagOn (OdUInt32 iFlag, bool bOn) |
| TagType | tag () const |
| void | setTag (TagType nTag) |
| virtual | ~Entity () |
Protected Member Functions | |
| Face (const Face &face) | |
| Face & | operator= (const Face &face) |
Friends | |
| class | Edge |
| class | Body |
| class | BodyImpl |
| class | BodyCustom |
| class | BodyInternalConsistencyRestorer |
| class | CFxFacetModelerHelper |
Represents facet body face objects.
Definition at line 42 of file FMMdlFace.h.
| FacetModeler::Face::Face | ( | ) |
Default constructor.
| FacetModeler::Face::~Face | ( | ) |
Destructor.
|
protected |
Copy constructor.
| face | [in] Face to copy from. |
| Edge * FacetModeler::Face::addEdge | ( | OdUInt32 | nLoop, |
| FacetModeler::Vertex * | pVertex, | ||
| bool | bInverseOrder = false ) |
Appends an edge to the loop specified by the index.
| nLoop | [in] Index of the loop on this face. |
| pVertex | [in] Pointer to the vertex for appending. |
| bInverseOrder | [in] true for counting from the end. |
Adds a face to the bidirectional list.
| pNext | [in] Pointer to the face to add. |
| double FacetModeler::Face::area | ( | ) | const |
Calculates the face area.
| void FacetModeler::Face::clearEdgeTags | ( | ) |
Clears edge tags.
| void FacetModeler::Face::clearVertexTags | ( | ) |
Clears vertex tags.
|
inline |
Gets the color of the current face.
Definition at line 267 of file FMMdlFace.h.
| void FacetModeler::Face::deletePlane | ( | ) | const |
Removes plane information.
Returns the first edge from a loop with the specified index.
| nLoop | [in] Index of the loop. |
Looks for an index of the loop that contains the specified edge on this face.
| pEdge | [in] Pointer to the search edge. |
| bool FacetModeler::Face::hasHoles | ( | ) | const |
Checks whether the face has holes.
| bool FacetModeler::Face::intersectLine | ( | const OdGeLinearEnt3d & | gLine, |
| OdGePoint3d * | pptResult = NULL, | ||
| bool * | pbCoplanar = NULL ) const |
Checks if the input line intersects this face and calculates the intersection point.
| gLine | [in] Input line to check for the intersection. |
| pptResult | [out] (Optional) Resulting intersection point. |
| pbCoplanar | [out] (Optional) Result of the coplanar check. |
| bool FacetModeler::Face::isConvex | ( | ) | const |
Checks whether the face is convex.
Gets the edge loop of this face by the specified index.
| nLoop | [in] Index of the edge loop on this face. |
| OdUInt32 FacetModeler::Face::loopCount | ( | ) | const |
Gets the loop count.
Returns the loop edge count with the specified index of a loop.
| iLoopIndex | [in] Index of the loop on this face. |
| void FacetModeler::Face::negate | ( | ) |
Inverts the face normal.
| Face * FacetModeler::Face::next | ( | ) | const |
Gets a pointer to the next face.
| OdGeVector3d FacetModeler::Face::normal | ( | ) | const |
Gets the normal of this face.
Copies data from specified face.
| face | [in] Face to copy from. |
| FaceOrientation FacetModeler::Face::orientation | ( | ) | const |
Gets the face orientation state of this face.
| const OdGePlane & FacetModeler::Face::plane | ( | ) | const |
Gets the plane of this face.
| Face * FacetModeler::Face::prev | ( | ) | const |
Gets the pointer to the previous face.
| void FacetModeler::Face::profile | ( | Profile3D & | rResult, |
| const OdGePlane * | pPlane = NULL, | ||
| bool | bIncludeHoles = true ) const |
Calculates a 3D profile with a transformation.
| rResult | [out] Resulting three-dimensional profile. |
| pPlane | [in] Pointer to the plane on which the result is projected. |
| bIncludeHoles | [in] true for including holes in the result. |
| void FacetModeler::Face::projection | ( | const OdGePlane & | plane, |
| Profile2D & | result, | ||
| bool | bIncludeHoles = true, | ||
| OdArray< const Edge * > * | pSourceEdges = NULL ) const |
Calculates an orthogonal projection of the face onto a given plane.
| plane | [in] Plane on which the face is to be projected. |
| result | [out] Resulting profile on the plane. |
| bIncludeHoles | [in] true to include holes in the result. |
| pSourceEdges | [in] The array of edges that are included in the resulting projection. |
Sets pointers to the previous and next faces.
| pPrev | [in] Pointer to the previous face to set. |
| pNext | [in] Pointer to the next face to set. |
Sets the color of this face.
| color | [in] New color to set. |
Definition at line 274 of file FMMdlFace.h.
Sets the edge loops list of this face.
| eloop | [in] EdgeLoop pointer to set. |
Definition at line 321 of file FMMdlFace.h.
Sets the loop count.
| n | [in] New loop count to set. |
Sets the pointer to the next face.
| pNext | [in] Pointer to the next face to set. |
| void FacetModeler::Face::setOrientation | ( | FaceOrientation | eOrientation | ) |
Sets the face orientation.
| eOrientation | [in] New face orientation. |
Sets the pointer to the previous face object.
| pPrev | [in] Pointer to the previous face to set. |
Sets the surface of this face.
| surface | [in] Surface pointer to set. |
|
inline |
Gets the pointer to the surface of this face.
Definition at line 253 of file FMMdlFace.h.
|
friend |
Definition at line 404 of file FMMdlFace.h.
|
friend |
Definition at line 406 of file FMMdlFace.h.
|
friend |
Definition at line 405 of file FMMdlFace.h.
|
friend |
Definition at line 407 of file FMMdlFace.h.
|
friend |
Definition at line 408 of file FMMdlFace.h.
|
friend |
Definition at line 403 of file FMMdlFace.h.