mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-21 10:13:43 +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:
parent
195aac3a42
commit
a855215141
@ -276,6 +276,8 @@ GeomFill_SectionPlacement(const Handle(GeomFill_LocationLaw)& L,
|
|||||||
|
|
||||||
Standard_Integer NbLocalPnts = 10;
|
Standard_Integer NbLocalPnts = 10;
|
||||||
Standard_Integer NbPnts = (NbKnots-1) * NbLocalPnts;
|
Standard_Integer NbPnts = (NbKnots-1) * NbLocalPnts;
|
||||||
|
if (NbPnts < 0)
|
||||||
|
NbPnts = 0;
|
||||||
if (I1 != I2)
|
if (I1 != I2)
|
||||||
NbPnts += NbLocalPnts;
|
NbPnts += NbLocalPnts;
|
||||||
if (I3 != I4 && first < BC->Knot(I3))
|
if (I3 != I4 && first < BC->Knot(I3))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user