Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a63a653
)
0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured
author
eap
<eap@opencascade.com>
Wed, 21 Mar 2012 09:02:04 +0000
(09:02 +0000)
committer
eap
<eap@opencascade.com>
Wed, 21 Mar 2012 09:02:04 +0000
(09:02 +0000)
in SMESH_TNodeXYZ use thread safe getting node coords
src/SMESHUtils/SMESH_TypeDefs.hxx
patch
|
blob
|
history
diff --git
a/src/SMESHUtils/SMESH_TypeDefs.hxx
b/src/SMESHUtils/SMESH_TypeDefs.hxx
index 63ecd6bffc6633139eb640f5a42af2fdc1d95bb5..0b670828951a67504abbdb07b33a2c16b0e4321d 100644
(file)
--- 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<const SMDS_MeshNode*>(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(); }