]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Uncomment deviation coefficient.
authornds <natalia.donis@opencascade.com>
Wed, 19 Aug 2015 12:46:13 +0000 (15:46 +0300)
committernds <natalia.donis@opencascade.com>
Wed, 19 Aug 2015 12:54:25 +0000 (15:54 +0300)
src/ModuleBase/ModuleBase_ResultPrs.cpp
src/ModuleBase/ModuleBase_Tools.cpp
src/PartSet/PartSet_OperationPrs.cpp

index 69ef0e7517952f6f6d9e84f8b8fdef16fe1a52fc..c28903572615502ab9be324fcc95a9329e9164b7 100644 (file)
@@ -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);
   }
 }
 
index 13d1d22d69b7298e9d20e35eef91ef5b4e4f4310..9ac04dddac2ebc4590c6f8970ec7fa43acfac211 100644 (file)
@@ -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;
 }
 
 }
index f16209b23fef0f98da1d600f9b79ca8723e6a28d..f243fca538038bb2b7eeb26d872c53011c612d51 100755 (executable)
@@ -89,10 +89,9 @@ void PartSet_OperationPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t
       TopoDS_Shape aShape = aGeomShape->impl<TopoDS_Shape>();
       // 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);
     }
   }
 }