Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
small optimization
[modules/smesh.git]
/
src
/
SMDS
/
SMDS_MeshCell.cxx
diff --git
a/src/SMDS/SMDS_MeshCell.cxx
b/src/SMDS/SMDS_MeshCell.cxx
index 3628aafe31ec31303989b396e010b60793db9668..36c3d800a2b8a194ddd307f6c99bc2fc22e5a969 100644
(file)
--- a/
src/SMDS/SMDS_MeshCell.cxx
+++ b/
src/SMDS/SMDS_MeshCell.cxx
@@
-521,9
+521,7
@@
int SMDS_MeshCell::NbNodes() const
{
if ( GetVtkType() == VTK_POLYHEDRON )
return static_cast< const SMDS_MeshVolume* >( this )->SMDS_MeshVolume::NbNodes();
{
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;
}
return npts;
}