From: eap Date: Wed, 21 Mar 2012 09:02:04 +0000 (+0000) Subject: 0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured X-Git-Tag: V6_5_0a1~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=256069a7e667a25b4941fdf5690d397f4e6ab9fc;p=modules%2Fsmesh.git 0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured in SMESH_TNodeXYZ use thread safe getting node coords --- diff --git a/src/SMESHUtils/SMESH_TypeDefs.hxx b/src/SMESHUtils/SMESH_TypeDefs.hxx index 63ecd6bff..0b6708289 100644 --- a/src/SMESHUtils/SMESH_TypeDefs.hxx +++ b/src/SMESHUtils/SMESH_TypeDefs.hxx @@ -103,7 +103,9 @@ struct SMESH_TNodeXYZ : public gp_XYZ if (e) { assert( e->GetType() == SMDSAbs_Node ); _node = static_cast(e); - SetCoord( _node->X(), _node->Y(), _node->Z() ); + double xyz[3]; + _node->GetXYZ(xyz); // - thread safe gatting coords + SetCoord( xyz[0], xyz[1], xyz[2] ); } } double Distance(const SMDS_MeshNode* n) const { return (SMESH_TNodeXYZ( n )-*this).Modulus(); }