From d6fc0ee0bb08377372ff0b925012f38c9c8e4dca Mon Sep 17 00:00:00 2001 From: apv Date: Tue, 15 Mar 2016 14:56:27 +0300 Subject: [PATCH] Test case for issue #27108 --- tests/bugs/moddata_3/bug27108 | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tests/bugs/moddata_3/bug27108 diff --git a/tests/bugs/moddata_3/bug27108 b/tests/bugs/moddata_3/bug27108 new file mode 100644 index 0000000000..49df991143 --- /dev/null +++ b/tests/bugs/moddata_3/bug27108 @@ -0,0 +1,27 @@ +puts "========" +puts "OCC27108" +puts "========" +puts "" +################################################################# +# GCPnt_TangentialDeflection does not respect linear deflection +################################################################# + +set bug27108_requested_deflection 0.03 + +restore [locate_data_file bug27108_Left.brep] a + +explode a e +mkcurve c a_1 +set bug_info [crvtpoints result c $bug27108_requested_deflection 20*pi/180] + +smallview +donly c result +fit + +set bug27108_reached_deflection [lindex $bug_info 6] + +if { $bug27108_reached_deflection > $bug27108_requested_deflection} { + puts "ERROR: OCC27108 is reproduced. Requested deflection is less than reached." +} + +checkview -screenshot -2d -path ${imagedir}/${test_image}.png -- 2.39.5