![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Auxiliary class to iterate through triangulated faces. Class is designed to provide an interface for iterating over the faces of a shape, specifically focusing on triangulated faces. It inherits from the RWMesh_ShapeIterator base class and extends its functionality to handle faces with triangulation data.
More...
#include <RWMesh_FaceIterator.hxx>

Public Member Functions | |
| RWMesh_FaceIterator (const TDF_Label &theLabel, const TopLoc_Location &theLocation, const bool theToMapColors=false, const XCAFPrs_Style &theStyle=XCAFPrs_Style()) | |
| Main constructor. | |
| RWMesh_FaceIterator (const TopoDS_Shape &theShape, const XCAFPrs_Style &theStyle=XCAFPrs_Style()) | |
| Auxiliary constructor. | |
| bool | More () const override |
| Return true if iterator points to the valid triangulation. | |
| void | Next () override |
| Find next value. | |
| const TopoDS_Face & | Face () const |
| Return current face. | |
| const TopoDS_Shape & | Shape () const override |
| Return current face. | |
| const occ::handle< Poly_Triangulation > & | Triangulation () const |
| Return current face triangulation. | |
| bool | IsEmptyMesh () const |
| Return true if mesh data is defined. | |
| bool | IsEmpty () const override |
| Return true if mesh data is defined. | |
| const XCAFPrs_Style & | FaceStyle () const |
| Return face material. | |
| bool | HasFaceColor () const |
| Return TRUE if face color is set. | |
| const Quantity_ColorRGBA & | FaceColor () const |
| Return face color. | |
| int | NbTriangles () const |
| Return number of elements of specific type for the current face. | |
| int | ElemLower () const override |
| Lower element index in current triangulation. | |
| int | ElemUpper () const override |
| Upper element index in current triangulation. | |
| Poly_Triangle | TriangleOriented (int theElemIndex) const |
| Return triangle with specified index with applied Face orientation. | |
| bool | HasNormals () const |
| Return true if triangulation has defined normals. | |
| bool | HasTexCoords () const |
| Return true if triangulation has defined normals. | |
| gp_Dir | NormalTransformed (int theNode) const |
| Return normal at specified node index with face transformation applied and face orientation applied. | |
| int | NbNodes () const override |
| Return number of nodes for the current face. | |
| int | NodeLower () const override |
| Lower node index in current triangulation. | |
| int | NodeUpper () const override |
| Upper node index in current triangulation. | |
| gp_Pnt2d | NodeTexCoord (const int theNode) const |
| Return texture coordinates for the node. | |
| gp_Pnt | node (const int theNode) const override |
| Return the node with specified index with applied transformation. | |
| gp_Dir | normal (int theNode) const |
| Return normal at specified node index without face transformation applied. | |
| Poly_Triangle | triangle (int theElemIndex) const |
| Return triangle with specified index. | |
Public Member Functions inherited from RWMesh_ShapeIterator | |
| const TopoDS_Shape & | ExploredShape () const |
| Return explored shape. | |
| const XCAFPrs_Style & | Style () const |
| Return shape material. | |
| bool | HasColor () const |
| Return TRUE if shape color is set. | |
| const Quantity_ColorRGBA & | Color () const |
| Return shape color. | |
| gp_Pnt | NodeTransformed (const int theNode) const |
| Return the node with specified index with applied transformation. | |
Auxiliary class to iterate through triangulated faces. Class is designed to provide an interface for iterating over the faces of a shape, specifically focusing on triangulated faces. It inherits from the RWMesh_ShapeIterator base class and extends its functionality to handle faces with triangulation data.
| RWMesh_FaceIterator::RWMesh_FaceIterator | ( | const TDF_Label & | theLabel, |
| const TopLoc_Location & | theLocation, | ||
| const bool | theToMapColors = false, | ||
| const XCAFPrs_Style & | theStyle = XCAFPrs_Style() ) |
Main constructor.
| [in] | theLabel | Label containing the face data |
| [in] | theLocation | Location of the face |
| [in] | theToMapColors | Flag to indicate if colors should be mapped |
| [in] | theStyle | Style information for the face |
| RWMesh_FaceIterator::RWMesh_FaceIterator | ( | const TopoDS_Shape & | theShape, |
| const XCAFPrs_Style & | theStyle = XCAFPrs_Style() ) |
Auxiliary constructor.
| [in] | theShape | Shape containing the face data |
| [in] | theStyle | Style information for the face |
|
inlineoverridevirtual |
Lower element index in current triangulation.
Implements RWMesh_ShapeIterator.
|
inlineoverridevirtual |
Upper element index in current triangulation.
Implements RWMesh_ShapeIterator.
|
inline |
Return current face.
|
inline |
Return face color.
|
inline |
Return face material.
|
inline |
Return TRUE if face color is set.
|
inline |
Return true if triangulation has defined normals.
|
inline |
Return true if triangulation has defined normals.
|
inlineoverridevirtual |
Return true if mesh data is defined.
Implements RWMesh_ShapeIterator.
|
inline |
Return true if mesh data is defined.
|
inlineoverridevirtual |
Return true if iterator points to the valid triangulation.
Implements RWMesh_ShapeIterator.
|
inlineoverridevirtual |
Return number of nodes for the current face.
Implements RWMesh_ShapeIterator.
|
inline |
Return number of elements of specific type for the current face.
|
overridevirtual |
Find next value.
Implements RWMesh_ShapeIterator.
Return the node with specified index with applied transformation.
Implements RWMesh_ShapeIterator.
|
inlineoverridevirtual |
Lower node index in current triangulation.
Implements RWMesh_ShapeIterator.
Return texture coordinates for the node.
|
inlineoverridevirtual |
Upper node index in current triangulation.
Implements RWMesh_ShapeIterator.
Return normal at specified node index without face transformation applied.
Return normal at specified node index with face transformation applied and face orientation applied.
|
inlineoverridevirtual |
Return current face.
Implements RWMesh_ShapeIterator.
|
inline |
Return triangle with specified index.
|
inline |
Return triangle with specified index with applied Face orientation.
|
inline |
Return current face triangulation.