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]; 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 //* resize the vtkPoints structure every SMDS_Mesh::chunkSize points
void SMDS_MeshNode::setXYZ(double x, double y, double z) void SMDS_MeshNode::setXYZ(double x, double y, double z)
{ {

View File

@ -42,9 +42,10 @@ public:
friend class SMDS_VtkFace; friend class SMDS_VtkFace;
void Print(std::ostream & OS) const; void Print(std::ostream & OS) const;
double X() const; double X() const; // ! NOT thread safe methods !
double Y() const; double Y() const;
double Z() const; double Z() const;
void GetXYZ(double xyx[3]) const; // thread safe getting coords
SMDS_ElemIteratorPtr GetInverseElementIterator(SMDSAbs_ElementType type=SMDSAbs_All) const; SMDS_ElemIteratorPtr GetInverseElementIterator(SMDSAbs_ElementType type=SMDSAbs_All) const;
int NbInverseElements(SMDSAbs_ElementType type=SMDSAbs_All) const; int NbInverseElements(SMDSAbs_ElementType type=SMDSAbs_All) const;
const SMDS_PositionPtr& GetPosition() const; const SMDS_PositionPtr& GetPosition() const;