From: eap Date: Wed, 14 Jan 2009 10:25:21 +0000 (+0000) Subject: MEDMEM Industrialization 2008 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f1afd3c198f6c99dc08293db720313452c10e108;p=tools%2Fmedcoupling.git MEDMEM Industrialization 2008 Form interpolation matrix in intersectors + unsigned long getNumberOfNodes() const; --- diff --git a/src/INTERP_KERNEL/MEDNormalizedUnstructuredMesh.hxx b/src/INTERP_KERNEL/MEDNormalizedUnstructuredMesh.hxx index 247c201ed..d4bf59f8d 100644 --- a/src/INTERP_KERNEL/MEDNormalizedUnstructuredMesh.hxx +++ b/src/INTERP_KERNEL/MEDNormalizedUnstructuredMesh.hxx @@ -42,6 +42,7 @@ public: INTERP_KERNEL::NormalizedCellType getTypeOfElement(int eltId) const; unsigned char getNumberOfNodesOfElement(int eltId) const; unsigned long getNumberOfElements() const; + unsigned long getNumberOfNodes() const; const int *getConnectivityPtr() const; const double *getCoordinatesPtr() const; const int *getConnectivityIndexPtr() const; diff --git a/src/INTERP_KERNEL/MEDNormalizedUnstructuredMesh.txx b/src/INTERP_KERNEL/MEDNormalizedUnstructuredMesh.txx index 9bdba4771..4967610de 100644 --- a/src/INTERP_KERNEL/MEDNormalizedUnstructuredMesh.txx +++ b/src/INTERP_KERNEL/MEDNormalizedUnstructuredMesh.txx @@ -70,6 +70,11 @@ unsigned long MEDNormalizedUnstructuredMesh::getNumberOfElemen { return _meshInMedMode->getNumberOfElementsWithPoly(MED_EN::MED_CELL, MED_EN::MED_ALL_ELEMENTS); } +template +unsigned long MEDNormalizedUnstructuredMesh::getNumberOfNodes() const +{ + return _meshInMedMode->getNumberOfNodes(); +} template const int *MEDNormalizedUnstructuredMesh::getConnectivityPtr() const diff --git a/src/INTERP_KERNEL/VTKNormalizedUnstructuredMesh.hxx b/src/INTERP_KERNEL/VTKNormalizedUnstructuredMesh.hxx index 9c6a71725..6bed21be3 100644 --- a/src/INTERP_KERNEL/VTKNormalizedUnstructuredMesh.hxx +++ b/src/INTERP_KERNEL/VTKNormalizedUnstructuredMesh.hxx @@ -21,6 +21,7 @@ public: void getBoundingBox(double *boundingBox) const; NormalizedCellType getTypeOfElement(vtkIdType eltId) const; unsigned long getNumberOfElements() const; + unsigned long getNumberOfNodes() const; const vtkIdType *getConnectivityPtr() const; const double *getCoordinatesPtr() const; const vtkIdType *getConnectivityIndexPtr() const; diff --git a/src/INTERP_KERNEL/VTKNormalizedUnstructuredMesh.txx b/src/INTERP_KERNEL/VTKNormalizedUnstructuredMesh.txx index 801da2f16..47fdf93c5 100644 --- a/src/INTERP_KERNEL/VTKNormalizedUnstructuredMesh.txx +++ b/src/INTERP_KERNEL/VTKNormalizedUnstructuredMesh.txx @@ -46,6 +46,12 @@ unsigned long VTKNormalizedUnstructuredMesh::getNumberOfElements() cons return _meshInVtkMode->GetNumberOfCells(); } +template +unsigned long VTKNormalizedUnstructuredMesh::getNumberOfNodes() const +{ + return _meshInVtkMode->GetNumberOfPoints (); +} + template const vtkIdType *VTKNormalizedUnstructuredMesh::getConnectivityPtr() const {