X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESHUtils%2FSMESH_TypeDefs.hxx;h=edb0f247f8e0a1a81f0d75e6938913cfab4719a4;hb=a3a6c690baad8a568546cceff02dad9af440e9ca;hp=6b0cdcba8785968fe80500c9cfb6df7b5223d366;hpb=b998225160f806c6515d51a3aacb9920fb77ad9a;p=modules%2Fsmesh.git diff --git a/src/SMESHUtils/SMESH_TypeDefs.hxx b/src/SMESHUtils/SMESH_TypeDefs.hxx index 6b0cdcba8..edb0f247f 100644 --- a/src/SMESHUtils/SMESH_TypeDefs.hxx +++ b/src/SMESHUtils/SMESH_TypeDefs.hxx @@ -105,13 +105,13 @@ struct SMESH_OrientedLink: public SMESH_TLink struct SMESH_TNodeXYZ : public gp_XYZ { const SMDS_MeshNode* _node; + double _xyz[3]; SMESH_TNodeXYZ( const SMDS_MeshElement* e):gp_XYZ(0,0,0),_node(0) { if (e) { assert( e->GetType() == SMDSAbs_Node ); _node = static_cast(e); - double xyz[3]; - _node->GetXYZ(xyz); // - thread safe gatting coords - SetCoord( xyz[0], xyz[1], xyz[2] ); + _node->GetXYZ(_xyz); // - thread safe getting coords + SetCoord( _xyz[0], _xyz[1], _xyz[2] ); } } double Distance(const SMDS_MeshNode* n) const { return (SMESH_TNodeXYZ( n )-*this).Modulus(); }