From a14b9a3541ec38c40f9e120c636b9f79c98b6265 Mon Sep 17 00:00:00 2001 From: oan Date: Fri, 29 Jan 2016 17:22:52 +0300 Subject: [PATCH] Modified STEP resource file in order to prevent producing of faces unsuitable for OCCT algorithms due to pcurves translated as lines instead of bsplines in case if tolerance specified in STEP file fully covers the target face. Test case added. Modified xdistc2dc2dss command in order to catch output in draw interpretor. --- .../GeometryTest_TestProjCommands.cxx | 18 ++++--- src/XSTEPResource/STEP | 2 +- tests/bugs/step/bug27122 | 52 +++++++++++++++++++ 3 files changed, 63 insertions(+), 9 deletions(-) create mode 100644 tests/bugs/step/bug27122 diff --git a/src/GeometryTest/GeometryTest_TestProjCommands.cxx b/src/GeometryTest/GeometryTest_TestProjCommands.cxx index 2fbd7713d4..37b6867259 100644 --- a/src/GeometryTest/GeometryTest_TestProjCommands.cxx +++ b/src/GeometryTest/GeometryTest_TestProjCommands.cxx @@ -112,7 +112,7 @@ static Standard_Integer xdistcc(Draw_Interpretor& , Standard_Integer n, const ch //function : xdistc2dc2dss //purpose : //======================================================================= -static Standard_Integer xdistc2dc2dss(Draw_Interpretor& , Standard_Integer n, const char** a) +static Standard_Integer xdistc2dc2dss(Draw_Interpretor& di, Standard_Integer n, const char** a) { if (n < 7) { @@ -132,28 +132,28 @@ static Standard_Integer xdistc2dc2dss(Draw_Interpretor& , Standard_Integer n, co aC2d1=DrawTrSurf::GetCurve2d(a[1]); if (aC2d1.IsNull()) { - cout<