// 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);
}
}
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;
}
}
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);
}
}
}