]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtk3DBaseView.cxx
#3473 Stuck Render macOS
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtk3DBaseView.cxx
index b27f41d1727125b0dc2de7b9cddc49d1a66709d2..e1e80e325a605d73311856c259d7a3e2a6fcd92a 100644 (file)
@@ -71,11 +71,9 @@ vtkRenderWindow* wxVtk3DBaseView::GetRenWin()  // virtual
 //-------------------------------------------------------------------
 void wxVtk3DBaseView::Refresh()
 {
-printf("EED wxVtk3DBaseView::Refresh Start\n");
 //     _renWin->Render();
        vtkRenderWindowInteractor *vri = GetWxVTKRenderWindowInteractor();
        vri->vtkRenderWindowInteractor::Render();
-printf("EED wxVtk3DBaseView::Refresh End\n");
 }
 
 //-------------------------------------------------------------------
@@ -217,6 +215,18 @@ void wxVtk3DBaseView::Configure()
                _aRenderer->SetMaximumNumberOfPeels(100);
                _renWin->SetMultiSamples(0);
                _renWin->SetAlphaBitPlanes(1);
+        
+//EED 2021-11-3
+// The Depth Peeling method have a bug in MacOs
+// In vtkDualDepthPeelingPass::Peel()   TranslucentWrittenPixels are incoherent  TOO BIG  some times. Why ??
+// So the comparition in vtkDualDepthPeelingPass::PeelingDone()  is not coherent.
+//   while (!this->PeelingDone())
+//        {
+//          this->Peel();
+//        }
+// Or CurrentPeel >= MaximumNumberOfPeels || TranslucentWrittenPixels <= OcclusionThreshold not coherent. Why ??
+        _aRenderer->UseDepthPeelingOff();
+        
        } // if _configure
 }