Salome HOME
Fix fillet validator
[modules/shaper.git] / src / ModuleBase / ModuleBase_ResultPrs.cpp
old mode 100644 (file)
new mode 100755 (executable)
index 4469a21..73a492d
@@ -35,13 +35,11 @@ ModuleBase_ResultPrs::ModuleBase_ResultPrs(ResultPtr theResult)
   }
   TopoDS_Shape aShape = aShapePtr->impl<TopoDS_Shape>();
   Set(aShape);
-  if (aShape.ShapeType() == TopAbs_VERTEX) {
-    Handle(Prs3d_Drawer) aDrawer = Attributes();
-    if (aDrawer->HasOwnPointAspect()) 
-      aDrawer->PointAspect()->SetTypeOfMarker(Aspect_TOM_PLUS);
-    else
-      aDrawer->SetPointAspect(new Prs3d_PointAspect(Aspect_TOM_PLUS, Quantity_NOC_YELLOW, 1.));
-  }
+  Handle(Prs3d_Drawer) aDrawer = Attributes();
+  if (aDrawer->HasOwnPointAspect()) 
+    aDrawer->PointAspect()->SetTypeOfMarker(Aspect_TOM_PLUS);
+  else
+    aDrawer->SetPointAspect(new Prs3d_PointAspect(Aspect_TOM_PLUS, Quantity_NOC_YELLOW, 1.));
 }
 
 
@@ -68,13 +66,8 @@ void ModuleBase_ResultPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t
     Set(myOriginalShape);
 
     // change deviation coefficient to provide more precise circle
-    Handle(Prs3d_Drawer) aDrawer = Attributes();
-    Standard_Real aPrevDeviation = aDrawer->DeviationCoefficient();
-    //aDrawer->SetDeviationCoefficient(ModuleBase_Tools::defaultDeviationCoefficient());
-
+    ModuleBase_Tools::setDefaultDeviationCoefficient(myOriginalShape, Attributes());
     AIS_Shape::Compute(thePresentationManager, thePresentation, theMode);
-
-    //aDrawer->SetDeviationCoefficient(aPrevDeviation);
   }
 }