mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
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
This commit is contained in:
@@ -598,7 +598,8 @@ GeomFill_NSections::GeomFill_NSections(const TColGeom_SequenceOfCurve& NC,
|
|||||||
new Geom_BSplineSurface(anApprox.SurfPoles(), anApprox.SurfWeights(),
|
new Geom_BSplineSurface(anApprox.SurfPoles(), anApprox.SurfWeights(),
|
||||||
anApprox.SurfUKnots(), anApprox.SurfVKnots(),
|
anApprox.SurfUKnots(), anApprox.SurfVKnots(),
|
||||||
anApprox.SurfUMults(), anApprox.SurfVMults(),
|
anApprox.SurfUMults(), anApprox.SurfVMults(),
|
||||||
anApprox.UDegree(), anApprox.VDegree());
|
anApprox.UDegree(), anApprox.VDegree(),
|
||||||
|
section.IsPeriodic());
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
|
24
tests/pipe/bugs/bug30003
Normal file
24
tests/pipe/bugs/bug30003
Normal file
@@ -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"
|
Reference in New Issue
Block a user