From 75e6081e5e7754df3ef4d256b19447cf91af9304 Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 5 Oct 2009 14:39:07 +0000 Subject: [PATCH] Bug IPAL21372 - 0D algorithm. Mesh visualization failed,if all of 1-3D algorithms are removed,but 0D is remained. --- src/OBJECT/SMESH_Actor.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/OBJECT/SMESH_Actor.cxx b/src/OBJECT/SMESH_Actor.cxx index 4709f9357..24fddc6c1 100644 --- a/src/OBJECT/SMESH_Actor.cxx +++ b/src/OBJECT/SMESH_Actor.cxx @@ -1250,7 +1250,11 @@ void SMESH_ActorDef::SetEntityMode(unsigned int theMode) VTKViewer_ExtractUnstructuredGrid* aHightFilter = myHighlitableActor->GetExtractUnstructuredGrid(); 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 (MYDEBUG) MESSAGE("0D ELEMENTS"); -- 2.39.2