From: nds Date: Wed, 19 Aug 2015 14:12:00 +0000 (+0300) Subject: Correct deviation coefficient, it should not be restored because selection is also... X-Git-Tag: V_1.4.0_beta4~334 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4f642b64c0dcd5da973bb8010b41a76bf5d2f339;p=modules%2Fshaper.git 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. --- 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); } }