Open CASCADE Technology
7.6.0
|
Auxiliary class to iterate through triangulated faces. 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. More... | |
RWMesh_FaceIterator (const TopoDS_Shape &theShape, const XCAFPrs_Style &theStyle=XCAFPrs_Style()) | |
Auxiliary constructor. More... | |
const TopoDS_Shape & | ExploredShape () const |
Return explored shape. More... | |
bool | More () const |
Return true if iterator points to the valid triangulation. More... | |
void | Next () |
Find next value. More... | |
const TopoDS_Face & | Face () const |
Return current face. More... | |
const Handle< Poly_Triangulation > & | Triangulation () const |
Return current face triangulation. More... | |
bool | IsEmptyMesh () const |
Return true if mesh data is defined. More... | |
const XCAFPrs_Style & | FaceStyle () const |
Return face material. More... | |
bool | HasFaceColor () const |
Return TRUE if face color is set. More... | |
const Quantity_ColorRGBA & | FaceColor () const |
Return face color. More... | |
Standard_Integer | NbTriangles () const |
Return number of elements of specific type for the current face. More... | |
Standard_Integer | ElemLower () const |
Lower element index in current triangulation. More... | |
Standard_Integer | ElemUpper () const |
Upper element index in current triangulation. More... | |
Poly_Triangle | TriangleOriented (Standard_Integer theElemIndex) const |
Return triangle with specified index with applied Face orientation. More... | |
bool | HasNormals () const |
Return true if triangulation has defined normals. More... | |
bool | HasTexCoords () const |
Return true if triangulation has defined normals. More... | |
gp_Dir | NormalTransformed (Standard_Integer theNode) const |
Return normal at specified node index with face transformation applied and face orientation applied. More... | |
Standard_Integer | NbNodes () const |
Return number of nodes for the current face. More... | |
Standard_Integer | NodeLower () const |
Lower node index in current triangulation. More... | |
Standard_Integer | NodeUpper () const |
Upper node index in current triangulation. More... | |
gp_Pnt | NodeTransformed (const Standard_Integer theNode) const |
Return the node with specified index with applied transformation. More... | |
gp_Pnt2d | NodeTexCoord (const Standard_Integer theNode) const |
Return texture coordinates for the node. More... | |
gp_Pnt | node (const Standard_Integer theNode) const |
Return the node with specified index with applied transformation. More... | |
gp_Dir | normal (Standard_Integer theNode) const |
Return normal at specified node index without face transformation applied. More... | |
Poly_Triangle | triangle (Standard_Integer theElemIndex) const |
Return triangle with specified index. More... | |
Auxiliary class to iterate through triangulated faces.
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.
RWMesh_FaceIterator::RWMesh_FaceIterator | ( | const TopoDS_Shape & | theShape, |
const XCAFPrs_Style & | theStyle = XCAFPrs_Style() |
||
) |
Auxiliary constructor.
|
inline |
Lower element index in current triangulation.
|
inline |
Upper element index in current triangulation.
|
inline |
Return explored shape.
|
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.
|
inline |
Return true if mesh data is defined.
|
inline |
Return true if iterator points to the valid triangulation.
|
inline |
Return number of nodes for the current face.
|
inline |
Return number of elements of specific type for the current face.
void RWMesh_FaceIterator::Next | ( | ) |
Find next value.
|
inline |
Return the node with specified index with applied transformation.
|
inline |
Lower node index in current triangulation.
|
inline |
Return texture coordinates for the node.
|
inline |
Return the node with specified index with applied transformation.
|
inline |
Upper node index in current triangulation.
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.
|
inline |
Return triangle with specified index.
|
inline |
Return triangle with specified index with applied Face orientation.
|
inline |
Return current face triangulation.