0021336: EDF 1717 SMESH: New algorithm "body fitting" cartesian unstructured

+  void   GetXYZ(double xyx[3]) const; // thread safe getting coords
This commit is contained in:
eap 2012-03-21 09:00:38 +00:00
parent 7fbdd4a756
commit 5c5ce5f038
2 changed files with 17 additions and 7 deletions

View File

@ -289,6 +289,15 @@ double SMDS_MeshNode::Z() const
return coord[2];
}
//================================================================================
/*!
* \brief thread safe getting coords
*/
void SMDS_MeshNode::GetXYZ(double xyz[3]) const
{
return SMDS_Mesh::_meshList[myMeshId]->getGrid()->GetPoint(myVtkID,xyz);
}
//* resize the vtkPoints structure every SMDS_Mesh::chunkSize points
void SMDS_MeshNode::setXYZ(double x, double y, double z)
{

View File

@ -42,16 +42,17 @@ public:
friend class SMDS_VtkFace;
void Print(std::ostream & OS) const;
double X() const;
double X() const; // ! NOT thread safe methods !
double Y() const;
double Z() const;
SMDS_ElemIteratorPtr GetInverseElementIterator(SMDSAbs_ElementType type=SMDSAbs_All) const;
int NbInverseElements(SMDSAbs_ElementType type=SMDSAbs_All) const;
void GetXYZ(double xyx[3]) const; // thread safe getting coords
SMDS_ElemIteratorPtr GetInverseElementIterator(SMDSAbs_ElementType type=SMDSAbs_All) const;
int NbInverseElements(SMDSAbs_ElementType type=SMDSAbs_All) const;
const SMDS_PositionPtr& GetPosition() const;
SMDSAbs_ElementType GetType() const;
virtual vtkIdType GetVtkType() const;
SMDSAbs_EntityType GetEntityType() const {return SMDSEntity_Node;}
int NbNodes() const;
SMDSAbs_ElementType GetType() const;
virtual vtkIdType GetVtkType() const;
SMDSAbs_EntityType GetEntityType() const {return SMDSEntity_Node;}
int NbNodes() const;
friend bool operator<(const SMDS_MeshNode& e1, const SMDS_MeshNode& e2);