Open CASCADE Technology 7.8.2.dev
|
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. | |
RWMesh_FaceIterator (const TopoDS_Shape &theShape, const XCAFPrs_Style &theStyle=XCAFPrs_Style()) | |
Auxiliary constructor. | |
const TopoDS_Shape & | ExploredShape () const |
Return explored shape. | |
bool | More () const |
Return true if iterator points to the valid triangulation. | |
void | Next () |
Find next value. | |
const TopoDS_Face & | Face () const |
Return current face. | |
const Handle< Poly_Triangulation > & | Triangulation () const |
Return current face triangulation. | |
bool | IsEmptyMesh () const |
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 |
Lower element index in current triangulation. | |
Standard_Integer | ElemUpper () const |
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 |
Return number of nodes for the current face. | |
Standard_Integer | NodeLower () const |
Lower node index in current triangulation. | |
Standard_Integer | NodeUpper () const |
Upper node index in current triangulation. | |
gp_Pnt | NodeTransformed (const Standard_Integer theNode) const |
Return the node with specified index with applied transformation. | |
gp_Pnt2d | NodeTexCoord (const Standard_Integer theNode) const |
Return texture coordinates for the node. | |
gp_Pnt | node (const Standard_Integer theNode) const |
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. | |
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.