mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0026289: STEP import/export produces an empty shape
Exception is raised during reading step file containing p-curve having not-unique last knot. Modification correcting misprint during computation new numbers of poles for such case was made in the file StepToGeom_MakeBSplineCurve.pxx Protection against exception was made in the file StepToTopoDS/StepToTopoDS_TranslateEdge.cxx. Warning message was added in the file StepToTopoDS_TranslateEdgeLoop.cxx. Test case for issue CR26289
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
if (aCurrentVal > Deg + 1)
|
||||
{
|
||||
if (i == 1) aFMulDiff = aCurrentVal - Deg - 1;
|
||||
if (i == NbKnots) aLMulDiff = aCurrentVal - Deg - 1;
|
||||
if (i == NbUniqueKnots) aLMulDiff = aCurrentVal - Deg - 1;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "\nWrong multiplicity " << aCurrentVal << " on " << i
|
||||
<< " knot!" << "\nChanged to " << Deg + 1 << endl;
|
||||
|
Reference in New Issue
Block a user