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 Standard_Boolean 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 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. | |
| Standard_Integer | NbTriangles () const |
| Return number of elements of specific type for the current face. | |
| Standard_Integer | ElemLower () const override |
| Lower element index in current triangulation. | |
| Standard_Integer | ElemUpper () const override |
| Upper element index in current triangulation. | |
| Poly_Triangle | TriangleOriented (Standard_Integer 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 (Standard_Integer theNode) const |
| Return normal at specified node index with face transformation applied and face orientation applied. | |
| Standard_Integer | NbNodes () const override |
| Return number of nodes for the current face. | |
| Standard_Integer | NodeLower () const override |
| Lower node index in current triangulation. | |
| Standard_Integer | NodeUpper () const override |
| Upper node index in current triangulation. | |
| gp_Pnt2d | NodeTexCoord (const Standard_Integer theNode) const |
| Return texture coordinates for the node. | |
| gp_Pnt | node (const Standard_Integer theNode) const override |
| Return the node with specified index with applied transformation. | |
| gp_Dir | normal (Standard_Integer theNode) const |
| Return normal at specified node index without face transformation applied. | |
| Poly_Triangle | triangle (Standard_Integer 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 Standard_Integer theNode) const |
| Return the node with specified index with applied transformation. | |
Additional Inherited Members | |
Protected Member Functions inherited from RWMesh_ShapeIterator | |
| RWMesh_ShapeIterator (const TDF_Label &theLabel, const TopLoc_Location &theLocation, const TopAbs_ShapeEnum theShapeTypeFind, const TopAbs_ShapeEnum theShapeTypeAvoid, const Standard_Boolean theToMapColors=false, const XCAFPrs_Style &theStyle=XCAFPrs_Style()) | |
| Main constructor. | |
| RWMesh_ShapeIterator (const TopoDS_Shape &theShape, const TopAbs_ShapeEnum theShapeTypeFind, const TopAbs_ShapeEnum theShapeTypeAvoid, const XCAFPrs_Style &theStyle=XCAFPrs_Style()) | |
| Auxiliary constructor. | |
| void | dispatchStyles (const TDF_Label &theLabel, const TopLoc_Location &theLocation, const XCAFPrs_Style &theStyle) |
| Dispatch shape styles. | |
| void | resetShape () |
| Reset information for current shape. | |
| void | initShape () |
| Initialize shape properties. | |
Protected Attributes inherited from RWMesh_ShapeIterator | |
| NCollection_DataMap< TopoDS_Shape, XCAFPrs_Style, TopTools_ShapeMapHasher > | myStyles |
| Shape -> Style map. | |
| XCAFPrs_Style | myDefStyle |
| default style for shapes without dedicated style | |
| Standard_Boolean | myToMapColors |
| flag to dispatch styles | |
| TopExp_Explorer | myIter |
| shape explorer | |
| TopLoc_Location | myLocation |
| current shape location | |
| gp_Trsf | myTrsf |
| current shape transformation | |
| XCAFPrs_Style | myStyle |
| current shape style | |
| Quantity_ColorRGBA | myColor |
| current shape color | |
| TopAbs_ShapeEnum | myShapeType |
| type of shape | |
| Standard_Boolean | myHasColor |
| flag indicating that current shape has assigned color | |
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 Standard_Boolean | 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.
|
inlineoverridevirtual |
Return the node with specified index with applied transformation.
Implements RWMesh_ShapeIterator.
|
inlineoverridevirtual |
Lower node index in current triangulation.
Implements RWMesh_ShapeIterator.
|
inline |
Return texture coordinates for the node.
|
inlineoverridevirtual |
Upper node index in current triangulation.
Implements RWMesh_ShapeIterator.
| gp_Dir RWMesh_FaceIterator::normal | ( | Standard_Integer | theNode | ) | const |
Return normal at specified node index without face transformation applied.
|
inline |
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.