#include <inspector/View_DisplayPreview.hxx>
#include <inspector/View_Viewer.hxx>
-#include <inspector/View_Widget.hxx>
// =======================================================================
// function : Constructor
aDisplayed.Append (aPresentation);
}
- if (!myIsKeepPresentations || myFitAllActive)
+ if (myFitAllActive)
fitAllView();
myDisplayed.Bind (theType, aDisplayed);
const NCollection_List<Handle(Standard_Transient)>& thePresentations)
{
myDisplayPreview->UpdatePreview (theType, thePresentations);
- if (!myIsKeepPresentations || myFitAllActive)
+ if (myFitAllActive)
fitAllView();
}
// =======================================================================
Handle(Standard_Transient) View_Displayer::CreatePresentation (const TopoDS_Shape& theShape)
{
- return new AIS_Shape (theShape);
+ Handle(AIS_Shape) aPresentation = new AIS_Shape (theShape);
+ aPresentation->Attributes()->SetAutoTriangulation (Standard_False);
+
+ return aPresentation;
}
// =======================================================================