1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0030256: ACIS Import - crash while importing SAT file on constructing a pipe

Fix for thin section with both first and last parameters located in one segment.
This commit is contained in:
ika 2022-10-06 12:39:03 +03:00 committed by Vadim Glukhikh
parent 195aac3a42
commit a855215141

View File

@ -276,6 +276,8 @@ GeomFill_SectionPlacement(const Handle(GeomFill_LocationLaw)& L,
Standard_Integer NbLocalPnts = 10;
Standard_Integer NbPnts = (NbKnots-1) * NbLocalPnts;
if (NbPnts < 0)
NbPnts = 0;
if (I1 != I2)
NbPnts += NbLocalPnts;
if (I3 != I4 && first < BC->Knot(I3))