Version: 6.3.1
Public Member Functions | Data Fields

TNode Struct Reference

Structure containing node relative data. More...

#include <StdMeshers_Prism_3D.hxx>

Public Member Functions

gp_XYZ GetCoords () const
gp_XYZ GetParams () const
gp_XYZ & ChangeParams () const
bool HasParams () const
SMDS_TypeOfPosition GetPositionType () const
bool IsNeighbor (const TNode &other) const
 Return true if this node and other one belong to one face.
 TNode (const SMDS_MeshNode *node=0)
bool operator< (const TNode &other) const

Data Fields

const SMDS_MeshNodemyNode
gp_XYZ myParams

Detailed Description

Structure containing node relative data.

Definition at line 75 of file StdMeshers_Prism_3D.hxx.


Constructor & Destructor Documentation

TNode.TNode ( const SMDS_MeshNode node = 0)

Definition at line 88 of file StdMeshers_Prism_3D.hxx.

: myNode(node), myParams(-1,-1,-1) {}

Member Function Documentation

gp_XYZ& TNode.ChangeParams ( ) const

Definition at line 82 of file StdMeshers_Prism_3D.hxx.

References myParams.

Referenced by StdMeshers_Prism_3D.projectBottomToTop().

{ return myParams; }
gp_XYZ TNode.GetCoords ( ) const

Definition at line 80 of file StdMeshers_Prism_3D.hxx.

References myNode, SMDS_MeshNode.X(), SMDS_MeshNode.Y(), and SMDS_MeshNode.Z().

Referenced by StdMeshers_Prism_3D.projectBottomToTop().

{ return gp_XYZ( myNode->X(), myNode->Y(), myNode->Z() ); }
gp_XYZ TNode.GetParams ( ) const

Definition at line 81 of file StdMeshers_Prism_3D.hxx.

References myParams.

Referenced by StdMeshers_Prism_3D.projectBottomToTop().

{ return myParams; }
SMDS_TypeOfPosition TNode.GetPositionType ( ) const
bool TNode.HasParams ( ) const

Definition at line 83 of file StdMeshers_Prism_3D.hxx.

References myParams.

{ return myParams.X() >= 0.0; }
bool TNode::IsNeighbor ( const TNode other) const

Return true if this node and other one belong to one face.

Definition at line 1028 of file StdMeshers_Prism_3D.cxx.

References SMDS_MeshNode.GetInverseElementIterator(), myNode, and SMDSAbs_Face.

Referenced by StdMeshers_Prism_3D.projectBottomToTop().

{
  if ( !other.myNode || !myNode ) return false;

  SMDS_ElemIteratorPtr fIt = other.myNode->GetInverseElementIterator(SMDSAbs_Face);
  while ( fIt->more() )
    if ( fIt->next()->GetNodeIndex( myNode ) >= 0 )
      return true;
  return false;
}
bool TNode.operator< ( const TNode other) const

Definition at line 89 of file StdMeshers_Prism_3D.hxx.

References SMDS_MeshElement.GetID(), and myNode.

{ return myNode->GetID() < other.myNode->GetID(); }

Field Documentation

Definition at line 77 of file StdMeshers_Prism_3D.hxx.

Referenced by GetCoords(), GetPositionType(), IsNeighbor(), and operator<().

gp_XYZ TNode.myParams [mutable]

Definition at line 78 of file StdMeshers_Prism_3D.hxx.

Referenced by ChangeParams(), GetParams(), and HasParams().

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS