From: aml Date: Tue, 3 Sep 2019 12:36:07 +0000 (+0300) Subject: 0027534: [Regression to 6.9.1]: Infinite loop in Curve on Surface projection algorithm X-Git-Tag: V7_4_0_beta~22 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=7a74087601561c533c2777e791e85356436e65c9;p=occt-copy.git 0027534: [Regression to 6.9.1]: Infinite loop in Curve on Surface projection algorithm Add test case. --- diff --git a/tests/bugs/moddata_3/bug27534 b/tests/bugs/moddata_3/bug27534 new file mode 100644 index 0000000000..436177dbee --- /dev/null +++ b/tests/bugs/moddata_3/bug27534 @@ -0,0 +1,42 @@ +puts "========" +puts "CR27534" +puts "========" +puts "" +#################################################################### +## [Regression to 6.9.1]: Infinite loop in Curve on Surface projection algorithm +#################################################################### + +# This test produces different results on windows and linux. +# Windows result is unstable. Linux result is used as reference. +puts "TODO ?OCC29268 Windows: The length of result shape is" + +# Prepare initial data +sphere s 0 0 0 10 +circle c 0 0 0 0 0 1 10 + +# Trim curve +trim c c 0 pi + +# Convert geometry to topology +mkface f s +mkedge e c + +# Convert to splines +nurbsconvert f f +nurbsconvert e e + +# Switch back to geometry +mksurface s f +mkcurve c e + +# Build projection +project c2d c s -t 0.2 + +# Length check +checklength c2d -l 3.1415926535897931 + +# Visual Check +v2d +2dfit + +checkview -screenshot -2d -path ${imagedir}/${test_image}.png