From 4f642b64c0dcd5da973bb8010b41a76bf5d2f339 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 19 Aug 2015 17:12:00 +0300 Subject: [PATCH] Correct deviation coefficient, it should not be restored because selection is also build using it. Bad performance, when creating an extrusion on 5 circles, or cut it from a extrusion based on a contour. --- src/ModuleBase/ModuleBase_ResultPrs.cpp | 2 +- src/PartSet/PartSet_OperationPrs.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ModuleBase/ModuleBase_ResultPrs.cpp b/src/ModuleBase/ModuleBase_ResultPrs.cpp index b10bc92ee..8ac112972 100644 --- a/src/ModuleBase/ModuleBase_ResultPrs.cpp +++ b/src/ModuleBase/ModuleBase_ResultPrs.cpp @@ -67,7 +67,7 @@ void ModuleBase_ResultPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t // change deviation coefficient to provide more precise circle Handle(Prs3d_Drawer) aDrawer = Attributes(); - aDrawer->SetDeviationCoefficient(ModuleBase_Tools::defaultDeviationCoefficient()); + //aDrawer->SetDeviationCoefficient(ModuleBase_Tools::defaultDeviationCoefficient()); AIS_Shape::Compute(thePresentationManager, thePresentation, theMode); } } diff --git a/src/PartSet/PartSet_OperationPrs.cpp b/src/PartSet/PartSet_OperationPrs.cpp index c593f46eb..e775102d3 100755 --- a/src/PartSet/PartSet_OperationPrs.cpp +++ b/src/PartSet/PartSet_OperationPrs.cpp @@ -88,7 +88,7 @@ void PartSet_OperationPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t continue; TopoDS_Shape aShape = aGeomShape->impl(); // change deviation coefficient to provide more precise circle - aDrawer->SetDeviationCoefficient(ModuleBase_Tools::defaultDeviationCoefficient()); + //aDrawer->SetDeviationCoefficient(ModuleBase_Tools::defaultDeviationCoefficient()); StdPrs_WFDeflectionShape::Add(thePresentation, aShape, aDrawer); } } -- 2.39.2