Salome HOME
small optimization
[modules/smesh.git] / src / SMDS / SMDS_MeshCell.cxx
index 3628aafe31ec31303989b396e010b60793db9668..36c3d800a2b8a194ddd307f6c99bc2fc22e5a969 100644 (file)
@@ -521,9 +521,7 @@ int SMDS_MeshCell::NbNodes() const
 {
   if ( GetVtkType() == VTK_POLYHEDRON )
     return static_cast< const SMDS_MeshVolume* >( this )->SMDS_MeshVolume::NbNodes();
-  vtkIdType npts;
-  vtkIdType const *pts;
-  getGrid()->GetCellPoints( GetVtkID(), npts, pts );
+  vtkIdType npts = getGrid()->GetCells()->GetCellSize( GetVtkID() );
   return npts;
 }