mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-30 23:00:35 +05:00
0022082: EDF 1891 SMESH: Performance issues in SMESH filters
In MapCells(SALOME_Actor*,const TColStd_IndexedMapOfInteger& theMap), move the following code out of the loop on theMap UnShrink(); if(theMapActor->IsShrunk()){ SetShrinkFactor(theMapActor->GetShrinkFactor()); } myMapIndex = theMap;
This commit is contained in:
parent
aed57dc296
commit
83b9e1e926
@ -128,6 +128,7 @@ SMESH_SVTKActor
|
||||
#if VTK_XVERSION > 50700
|
||||
if (aCell->GetCellType() != VTK_POLYHEDRON)
|
||||
#endif
|
||||
{
|
||||
if(aCell->GetCellType() == VTK_VERTEX ) {
|
||||
my0DGrid->InsertNextCell(aCell->GetCellType(),aCell->GetPointIds());
|
||||
} else if(aCell->GetCellType() == VTK_POLY_VERTEX ) {
|
||||
@ -135,6 +136,7 @@ SMESH_SVTKActor
|
||||
} else {
|
||||
myUnstructuredGrid->InsertNextCell(aCell->GetCellType(),aCell->GetPointIds());
|
||||
}
|
||||
}
|
||||
#if VTK_XVERSION > 50700
|
||||
else
|
||||
{
|
||||
@ -146,6 +148,7 @@ SMESH_SVTKActor
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
UnShrink();
|
||||
if(theMapActor->IsShrunk()){
|
||||
@ -154,7 +157,6 @@ SMESH_SVTKActor
|
||||
}
|
||||
|
||||
myMapIndex = theMapIndex;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user