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_MeshNode * | myNode |
| gp_XYZ | myParams |
Structure containing node relative data.
Definition at line 75 of file StdMeshers_Prism_3D.hxx.
| TNode.TNode | ( | const SMDS_MeshNode * | node = 0 | ) |
Definition at line 88 of file StdMeshers_Prism_3D.hxx.
| 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().
| 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 |
Definition at line 84 of file StdMeshers_Prism_3D.hxx.
References SMDS_MeshNode.GetPosition(), SMDS_Position.GetTypeOfPosition(), myNode, and SMDS_TOP_UNSPEC.
{ return myNode ? myNode->GetPosition()->GetTypeOfPosition() : SMDS_TOP_UNSPEC; }
| bool TNode.HasParams | ( | ) | const |
Definition at line 83 of file StdMeshers_Prism_3D.hxx.
References myParams.
{ return myParams.X() >= 0.0; }
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;
}
Definition at line 89 of file StdMeshers_Prism_3D.hxx.
References SMDS_MeshElement.GetID(), and myNode.
| const SMDS_MeshNode* TNode.myNode |
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().