mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0021381: EDF 1984 BLSURFPLUGIN: Sub-mesh with BLSURF
struct SMESH_TNodeXYZ : public gp_XYZ { + double _xyz[3];
This commit is contained in:
parent
2ee680b116
commit
30241e819e
@ -105,13 +105,13 @@ struct SMESH_OrientedLink: public SMESH_TLink
|
|||||||
struct SMESH_TNodeXYZ : public gp_XYZ
|
struct SMESH_TNodeXYZ : public gp_XYZ
|
||||||
{
|
{
|
||||||
const SMDS_MeshNode* _node;
|
const SMDS_MeshNode* _node;
|
||||||
|
double _xyz[3];
|
||||||
SMESH_TNodeXYZ( const SMDS_MeshElement* e):gp_XYZ(0,0,0),_node(0) {
|
SMESH_TNodeXYZ( const SMDS_MeshElement* e):gp_XYZ(0,0,0),_node(0) {
|
||||||
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);
|
||||||
double xyz[3];
|
_node->GetXYZ(_xyz); // - thread safe getting coords
|
||||||
_node->GetXYZ(xyz); // - thread safe gatting coords
|
SetCoord( _xyz[0], _xyz[1], _xyz[2] );
|
||||||
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