Version: 6.3.1
Public Member Functions | Data Fields

SMESH_TNodeXYZ Struct Reference

SMDS_MeshNode -> gp_XYZ convertor. More...

#include <SMESH_TypeDefs.hxx>

Inheritance diagram for SMESH_TNodeXYZ:
Inheritance graph
[legend]

Public Member Functions

 SMESH_TNodeXYZ (const SMDS_MeshElement *e)
double Distance (const SMDS_MeshNode *n) const
double SquareDistance (const SMDS_MeshNode *n) const
bool operator== (const SMESH_TNodeXYZ &other) const

Data Fields

const SMDS_MeshNode_node

Detailed Description

SMDS_MeshNode -> gp_XYZ convertor.

Definition at line 85 of file SMESH_TypeDefs.hxx.


Constructor & Destructor Documentation

SMESH_TNodeXYZ.SMESH_TNodeXYZ ( const SMDS_MeshElement e)

Definition at line 88 of file SMESH_TypeDefs.hxx.

References _node, SMDS_MeshElement.GetType(), and SMDSAbs_Node.

Referenced by Distance(), and SquareDistance().

                                            :gp_XYZ(0,0,0),_node(0) {
    if (e) {
      assert( e->GetType() == SMDSAbs_Node );
      _node = static_cast<const SMDS_MeshNode*>(e);
      SetCoord( _node->X(), _node->Y(), _node->Z() );
    }
  }

Member Function Documentation

double SMESH_TNodeXYZ.Distance ( const SMDS_MeshNode n) const
bool SMESH_TNodeXYZ.operator== ( const SMESH_TNodeXYZ other) const

Definition at line 97 of file SMESH_TypeDefs.hxx.

References _node.

{ return _node == other._node; }
double SMESH_TNodeXYZ.SquareDistance ( const SMDS_MeshNode n) const

Definition at line 96 of file SMESH_TypeDefs.hxx.

References SMESH_TNodeXYZ().

{ return (SMESH_TNodeXYZ( n )-*this).SquareModulus(); }

Field Documentation

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