Bug IPAL21372 - 0D algorithm. Mesh visualization failed,if all of 1-3D algorithms are removed,but 0D is remained.

This commit is contained in:
ouv 2009-10-05 14:39:07 +00:00
parent 6510081be2
commit 75e6081e5e

View File

@ -1250,7 +1250,11 @@ void SMESH_ActorDef::SetEntityMode(unsigned int theMode)
VTKViewer_ExtractUnstructuredGrid* aHightFilter = myHighlitableActor->GetExtractUnstructuredGrid(); VTKViewer_ExtractUnstructuredGrid* aHightFilter = myHighlitableActor->GetExtractUnstructuredGrid();
aHightFilter->ClearRegisteredCellsWithType(); aHightFilter->ClearRegisteredCellsWithType();
aHightFilter->SetModeOfChanging(VTKViewer_ExtractUnstructuredGrid::eAdding);
// The following row has been commented (initially added in 1.28.2.3.1 revision)
// Reason: seems to be unnecessary, this filter should always have default (ePassAll) mode of changing
// In addition, it leads to exception (see bug IPAL21372)
//aHightFilter->SetModeOfChanging(VTKViewer_ExtractUnstructuredGrid::eAdding);
if (myEntityMode & e0DElements) { if (myEntityMode & e0DElements) {
if (MYDEBUG) MESSAGE("0D ELEMENTS"); if (MYDEBUG) MESSAGE("0D ELEMENTS");