]> OCCT Git - occt.git/commit
0025699: Crash while importing STeP file
authorakz <akz@opencascade.com>
Fri, 13 Feb 2015 13:34:08 +0000 (16:34 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 13 Feb 2015 14:24:52 +0000 (17:24 +0300)
commitd088c9c2a17de6f5db1bf984b9ec5533f6e5f78b
tree295f7fee93ad1a719b375a7626bb29156742f353
parent2c7b466ce619c2962a40dc18898b1d50918ceca2
0025699: Crash while importing STeP file

1) Try-catch block was added on a StepToTopoDS_TranslateEdgeLoop::Init() to
catch Standard_ConstructionError during the Curve conversion.

2) Checks of BSpline curve degree added to prevent construction error when converting edges to BSpline_Curve.
3) Warning message was added in case of incorrect curve definition.

Correct of the test cases according to the new error message added with fix

Conflicts:
tests/de/step_1/R9

Modified test cases according to new reference data
src/StepToGeom/StepToGeom_MakeBoundedCurve.cxx
src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx
tests/de/iges_3/A4
tests/de/step_1/R7
tests/de/step_2/G5
tests/de/step_2/H1