From 6c10d4b11aef729da44027a759c8e9dbe0ea4103 Mon Sep 17 00:00:00 2001 From: ika Date: Thu, 6 Oct 2022 12:39:03 +0300 Subject: [PATCH] 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. --- src/GeomFill/GeomFill_SectionPlacement.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GeomFill/GeomFill_SectionPlacement.cxx b/src/GeomFill/GeomFill_SectionPlacement.cxx index a2616b4b1d..8d39b1c3cd 100644 --- a/src/GeomFill/GeomFill_SectionPlacement.cxx +++ b/src/GeomFill/GeomFill_SectionPlacement.cxx @@ -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))