Salome HOME
Correct deviation coefficient, it should not be restored because selection is also...
authornds <natalia.donis@opencascade.com>
Wed, 19 Aug 2015 13:03:21 +0000 (16:03 +0300)
committernds <natalia.donis@opencascade.com>
Wed, 19 Aug 2015 13:03:21 +0000 (16:03 +0300)
src/ModuleBase/ModuleBase_ResultPrs.cpp
src/ModuleBase/ModuleBase_Tools.cpp
src/PartSet/PartSet_OperationPrs.cpp

index c28903572615502ab9be324fcc95a9329e9164b7..b10bc92ee60eaa7ca2100ac95cea57d6ef1e235c 100644 (file)
@@ -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);
   }
 }
 
index 9ac04dddac2ebc4590c6f8970ec7fa43acfac211..bed9b77ae4d7f70ec4555bcbfc17365a510f2b2a 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-4;
+  return 1.e-4; // default value is 1.e-3
 }
 
 }
index f243fca538038bb2b7eeb26d872c53011c612d51..c593f46eb2cc8ff8a466edb676ad0c93fd81c142 100755 (executable)
@@ -88,10 +88,8 @@ void PartSet_OperationPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t
         continue;
       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());
       StdPrs_WFDeflectionShape::Add(thePresentation, aShape, aDrawer);
-      aDrawer->SetDeviationCoefficient(aPrevDeviation);
     }
   }
 }