From: nds Date: Wed, 19 Aug 2015 12:46:13 +0000 (+0300) Subject: Uncomment deviation coefficient. X-Git-Tag: V_1.4.0_beta4~338 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bcb39f79a614f96a6508a84b7a5f04843a5bf6e9;p=modules%2Fshaper.git Uncomment deviation coefficient. --- diff --git a/src/ModuleBase/ModuleBase_ResultPrs.cpp b/src/ModuleBase/ModuleBase_ResultPrs.cpp index 69ef0e751..c28903572 100644 --- a/src/ModuleBase/ModuleBase_ResultPrs.cpp +++ b/src/ModuleBase/ModuleBase_ResultPrs.cpp @@ -68,11 +68,9 @@ 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()); - + aDrawer->SetDeviationCoefficient(ModuleBase_Tools::defaultDeviationCoefficient()); AIS_Shape::Compute(thePresentationManager, thePresentation, theMode); - - //aDrawer->SetDeviationCoefficient(aPrevDeviation); + aDrawer->SetDeviationCoefficient(aPrevDeviation); } } diff --git a/src/ModuleBase/ModuleBase_Tools.cpp b/src/ModuleBase/ModuleBase_Tools.cpp index 13d1d22d6..9ac04ddda 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-3; + return 1.e-4; } } diff --git a/src/PartSet/PartSet_OperationPrs.cpp b/src/PartSet/PartSet_OperationPrs.cpp index f16209b23..f243fca53 100755 --- a/src/PartSet/PartSet_OperationPrs.cpp +++ b/src/PartSet/PartSet_OperationPrs.cpp @@ -89,10 +89,9 @@ void PartSet_OperationPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t TopoDS_Shape aShape = aGeomShape->impl(); // change deviation coefficient to provide more precise circle Standard_Real aPrevDeviation = aDrawer->DeviationCoefficient(); - //aDrawer->SetDeviationCoefficient(ModuleBase_Tools::defaultDeviationCoefficient()); - + aDrawer->SetDeviationCoefficient(ModuleBase_Tools::defaultDeviationCoefficient()); StdPrs_WFDeflectionShape::Add(thePresentation, aShape, aDrawer); - //aDrawer->SetDeviationCoefficient(aPrevDeviation); + aDrawer->SetDeviationCoefficient(aPrevDeviation); } } }