From: akaftasev Date: Wed, 16 Sep 2020 13:01:38 +0000 (+0300) Subject: 0030003: Construction of pipe by two circular sections and spine curve leads to crash X-Git-Tag: V7_5_0~12 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=5445eaeed56eb279c0ab00af552e614f1bbef9b6;p=occt-copy.git 0030003: Construction of pipe by two circular sections and spine curve leads to crash GeomFill_NSection.cxx : setting of UPeriodic flag while call constructor of BSpline surface is added bug3003 : Test cases added --- diff --git a/src/GeomFill/GeomFill_NSections.cxx b/src/GeomFill/GeomFill_NSections.cxx index 3b0437e1d9..96e8178e4e 100644 --- a/src/GeomFill/GeomFill_NSections.cxx +++ b/src/GeomFill/GeomFill_NSections.cxx @@ -598,7 +598,8 @@ GeomFill_NSections::GeomFill_NSections(const TColGeom_SequenceOfCurve& NC, new Geom_BSplineSurface(anApprox.SurfPoles(), anApprox.SurfWeights(), anApprox.SurfUKnots(), anApprox.SurfVKnots(), anApprox.SurfUMults(), anApprox.SurfVMults(), - anApprox.UDegree(), anApprox.VDegree()); + anApprox.UDegree(), anApprox.VDegree(), + section.IsPeriodic()); } else { diff --git a/tests/pipe/bugs/bug30003 b/tests/pipe/bugs/bug30003 new file mode 100644 index 0000000000..a69690ac8b --- /dev/null +++ b/tests/pipe/bugs/bug30003 @@ -0,0 +1,24 @@ +puts "============" +puts "0030003: Modeling Algorithms - Construction of pipe by two circular sections and spine curve leads to crash" +puts "============" +puts "" + +beziercurve path 3 0 0 0 100 0 0 100 100 0 +clear path +circle c1 0 0 0 1 0 0 10 +circle c2 0 0 0 1 0 0 20 +convert c1 c1 po +convert c2 c2 po +clear c1 +clear c2 + +tuyau res path c1 c2 +clpoles res +clknots res +nbiso res 10 10 + +smallview +fit +checkview -screenshot -2d -path ${imagedir}/${test_image}.png + +puts "TEST COMPLETED"