]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for ussue 19999 (EDF 829 VISU : Only the 1st Deformed Shape is good).
authorrnv <rnv@opencascade.com>
Tue, 14 Oct 2008 06:24:17 +0000 (06:24 +0000)
committerrnv <rnv@opencascade.com>
Tue, 14 Oct 2008 06:24:17 +0000 (06:24 +0000)
src/CONVERTOR/VISU_Convertor_impl.cxx

index c908ab0bbf2f6040f258b581fa4cc76046abb594..0bc77e74f6944f1f61f084328aaec9dbc8fe4e14 100644 (file)
@@ -356,11 +356,18 @@ namespace
                   const VISU::PMeshOnEntityImpl& theMeshOnEntity,
                   const VISU::PProfileImpl& theProfile)
   {
+    // rnv fix for issue 19999:
+    // Throw exception in case if mesh on entity from profile is not equal
+    // input mesh on entity. This exception catch in tne VISU_Convertor_impl::GetTimeStampOnMesh
+    // function.
+    if(theProfile->myMeshOnEntity && theProfile->myMeshOnEntity != theMeshOnEntity.get())
+      EXCEPTION(std::runtime_error,"GetMeshOnProfile >> theProfile->myMeshOnEntity != theMeshOnEntity.get()");
+    
     if(theProfile->myIsVTKDone)
       return true;
-   
-    if(theProfile->myMeshOnEntity && theProfile->myMeshOnEntity != theMeshOnEntity.get())
-      return false;
+    
+    //    if(theProfile->myMeshOnEntity && theProfile->myMeshOnEntity != theMeshOnEntity.get())
+    //      return false;
       
     VISU::TTimerLog aTimerLog(MYDEBUG,"GetMeshOnProfile");
     INITMSG(MYDEBUG,"GetMeshOnProfile - anEntity = "<<theMeshOnEntity->myEntity<<std::endl);