Open CASCADE Technology  7.6.0.dev
Public Member Functions
RWMesh_FaceIterator Class Reference

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...
 
bool More () const
 Return true if iterator points to the valid triangulation. More...
 
void Next ()
 Find next value. More...
 
const TopoDS_FaceFace () 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_StyleFaceStyle () const
 Return face material. More...
 
bool HasFaceColor () const
 Return TRUE if face color is set. More...
 
const Quantity_ColorRGBAFaceColor () 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)
 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)
 Return normal at specified node index without face transformation applied. More...
 
Poly_Triangle triangle (Standard_Integer theElemIndex) const
 Return triangle with specified index. More...
 

Detailed Description

Auxiliary class to iterate through triangulated faces.

Constructor & Destructor Documentation

◆ RWMesh_FaceIterator()

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.

Member Function Documentation

◆ ElemLower()

Standard_Integer RWMesh_FaceIterator::ElemLower ( ) const
inline

Lower element index in current triangulation.

◆ ElemUpper()

Standard_Integer RWMesh_FaceIterator::ElemUpper ( ) const
inline

Upper element index in current triangulation.

◆ Face()

const TopoDS_Face& RWMesh_FaceIterator::Face ( ) const
inline

Return current face.

◆ FaceColor()

const Quantity_ColorRGBA& RWMesh_FaceIterator::FaceColor ( ) const
inline

Return face color.

◆ FaceStyle()

const XCAFPrs_Style& RWMesh_FaceIterator::FaceStyle ( ) const
inline

Return face material.

◆ HasFaceColor()

bool RWMesh_FaceIterator::HasFaceColor ( ) const
inline

Return TRUE if face color is set.

◆ HasNormals()

bool RWMesh_FaceIterator::HasNormals ( ) const
inline

Return true if triangulation has defined normals.

◆ HasTexCoords()

bool RWMesh_FaceIterator::HasTexCoords ( ) const
inline

Return true if triangulation has defined normals.

◆ IsEmptyMesh()

bool RWMesh_FaceIterator::IsEmptyMesh ( ) const
inline

Return true if mesh data is defined.

◆ More()

bool RWMesh_FaceIterator::More ( ) const
inline

Return true if iterator points to the valid triangulation.

◆ NbNodes()

Standard_Integer RWMesh_FaceIterator::NbNodes ( ) const
inline

Return number of nodes for the current face.

◆ NbTriangles()

Standard_Integer RWMesh_FaceIterator::NbTriangles ( ) const
inline

Return number of elements of specific type for the current face.

◆ Next()

void RWMesh_FaceIterator::Next ( )

Find next value.

◆ node()

gp_Pnt RWMesh_FaceIterator::node ( const Standard_Integer  theNode) const
inline

Return the node with specified index with applied transformation.

◆ NodeLower()

Standard_Integer RWMesh_FaceIterator::NodeLower ( ) const
inline

Lower node index in current triangulation.

◆ NodeTexCoord()

gp_Pnt2d RWMesh_FaceIterator::NodeTexCoord ( const Standard_Integer  theNode) const
inline

Return texture coordinates for the node.

◆ NodeTransformed()

gp_Pnt RWMesh_FaceIterator::NodeTransformed ( const Standard_Integer  theNode) const
inline

Return the node with specified index with applied transformation.

◆ NodeUpper()

Standard_Integer RWMesh_FaceIterator::NodeUpper ( ) const
inline

Upper node index in current triangulation.

◆ normal()

gp_Dir RWMesh_FaceIterator::normal ( Standard_Integer  theNode)

Return normal at specified node index without face transformation applied.

◆ NormalTransformed()

gp_Dir RWMesh_FaceIterator::NormalTransformed ( Standard_Integer  theNode)
inline

Return normal at specified node index with face transformation applied and face orientation applied.

◆ triangle()

Poly_Triangle RWMesh_FaceIterator::triangle ( Standard_Integer  theElemIndex) const
inline

Return triangle with specified index.

◆ TriangleOriented()

Poly_Triangle RWMesh_FaceIterator::TriangleOriented ( Standard_Integer  theElemIndex) const
inline

Return triangle with specified index with applied Face orientation.

◆ Triangulation()

const Handle< Poly_Triangulation >& RWMesh_FaceIterator::Triangulation ( ) const
inline

Return current face triangulation.


The documentation for this class was generated from the following file: