mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured
in SMESH_TNodeXYZ use thread safe getting node coords
This commit is contained in:
parent
a63a653731
commit
256069a7e6
@ -103,7 +103,9 @@ struct SMESH_TNodeXYZ : public gp_XYZ
|
|||||||
if (e) {
|
if (e) {
|
||||||
assert( e->GetType() == SMDSAbs_Node );
|
assert( e->GetType() == SMDSAbs_Node );
|
||||||
_node = static_cast<const SMDS_MeshNode*>(e);
|
_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(); }
|
double Distance(const SMDS_MeshNode* n) const { return (SMESH_TNodeXYZ( n )-*this).Modulus(); }
|
||||||
|
Loading…
Reference in New Issue
Block a user