SVTK_ViewWindow* aView;
vtkRenderer* aRend = myPreviewActor->GetRenderer();
vtkRenderer* aRendGlyphs = myPreviewActorGlyphs->GetRenderer();
- if(aRend)
+
+ vtkRenderWindow* aWnd1 = aRend->GetRenderWindow();
+ vtkRenderWindow* aWnd2 = aRendGlyphs->GetRenderWindow();
+ if(aRend && aWnd1)
myPreviewActor->RemoveFromRender(aRend);
- if(aRendGlyphs)
+ if(aRendGlyphs && aWnd2)
myPreviewActorGlyphs->RemoveFromRender(aRendGlyphs);
// Bug IPAL11962: preview is still in the viewer, if viewer not active.
for(int i=0; i<3; i++) aBoundCenter[i] = (bounds[i*2] + bounds[i*2+1])/2.0;
for(int i=0; i<3; i++){
if (!myAllCurvesInvertedCheck->isChecked())
- aSecondPnt[i] = aBasePnt[i] + aDirLn[i];
+ aSecondPnt[i] = aDirLn[i];
else
- aSecondPnt[i] = -aBasePnt[i] - aDirLn[i];
+ aSecondPnt[i] = - aDirLn[i];
}
vtkFloatingPointType max_bound = 0;