From: nds Date: Wed, 19 Aug 2015 13:03:21 +0000 (+0300) Subject: Correct deviation coefficient, it should not be restored because selection is also... X-Git-Tag: V_1.4.0_beta4~337 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6474cf6777a707d1e7308552ce0e1b8c8f53fe38;p=modules%2Fshaper.git Correct deviation coefficient, it should not be restored because selection is also build using it. --- diff --git a/src/ModuleBase/ModuleBase_ResultPrs.cpp b/src/ModuleBase/ModuleBase_ResultPrs.cpp index c28903572..b10bc92ee 100644 --- a/src/ModuleBase/ModuleBase_ResultPrs.cpp +++ b/src/ModuleBase/ModuleBase_ResultPrs.cpp @@ -67,10 +67,8 @@ void ModuleBase_ResultPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t // change deviation coefficient to provide more precise circle Handle(Prs3d_Drawer) aDrawer = Attributes(); - Standard_Real aPrevDeviation = aDrawer->DeviationCoefficient(); aDrawer->SetDeviationCoefficient(ModuleBase_Tools::defaultDeviationCoefficient()); AIS_Shape::Compute(thePresentationManager, thePresentation, theMode); - aDrawer->SetDeviationCoefficient(aPrevDeviation); } } diff --git a/src/ModuleBase/ModuleBase_Tools.cpp b/src/ModuleBase/ModuleBase_Tools.cpp index 9ac04ddda..bed9b77ae 100644 --- a/src/ModuleBase/ModuleBase_Tools.cpp +++ b/src/ModuleBase/ModuleBase_Tools.cpp @@ -257,7 +257,7 @@ void checkObjects(const QObjectPtrList& theObjects, bool& hasResult, bool& hasFe double defaultDeviationCoefficient() { // this value is chosen by performance check. Test case is an extrusion on sketch circle. - return 1.e-4; + return 1.e-4; // default value is 1.e-3 } } diff --git a/src/PartSet/PartSet_OperationPrs.cpp b/src/PartSet/PartSet_OperationPrs.cpp index f243fca53..c593f46eb 100755 --- a/src/PartSet/PartSet_OperationPrs.cpp +++ b/src/PartSet/PartSet_OperationPrs.cpp @@ -88,10 +88,8 @@ void PartSet_OperationPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t continue; TopoDS_Shape aShape = aGeomShape->impl(); // change deviation coefficient to provide more precise circle - Standard_Real aPrevDeviation = aDrawer->DeviationCoefficient(); aDrawer->SetDeviationCoefficient(ModuleBase_Tools::defaultDeviationCoefficient()); StdPrs_WFDeflectionShape::Add(thePresentation, aShape, aDrawer); - aDrawer->SetDeviationCoefficient(aPrevDeviation); } } }