From: isn Date: Mon, 28 Nov 2016 16:17:48 +0000 (+0300) Subject: refs #1002 (2) X-Git-Tag: v1.6~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=410654fdb5436fa5ab6731fc885944eb472e55fc;p=modules%2Fhydro.git refs #1002 (2) --- diff --git a/src/HYDROGUI/HYDROGUI_Polyline.cxx b/src/HYDROGUI/HYDROGUI_Polyline.cxx index ccd259aa..90e3e42e 100644 --- a/src/HYDROGUI/HYDROGUI_Polyline.cxx +++ b/src/HYDROGUI/HYDROGUI_Polyline.cxx @@ -90,12 +90,12 @@ void HYDROGUI_Polyline::Compute(const Handle(PrsMgr_PresentationManager3d)& aPre Bnd_Box BB; BRepBndLib::AddClose(myshape, BB); double xmin, xmax, ymin, ymax, zmin, zmax; - double devCoeff = 0.1; + double devCoeff = 0.05; if (!BB.IsVoid()) { BB.Get(xmin, ymin, zmin, xmax, ymax, zmax); //ignore Z coord double minSide = Min(Abs(xmax - xmin), Abs(ymax - ymin)); - devCoeff = minSide > 50 ? 0.1 : minSide / 500; + devCoeff = minSide > 50 ? 0.05 : minSide / 3000; } for ( ; Exp1.More(); Exp1.Next() ) {