From 45396f870c002585238a9cff1df39b9a33027ccd Mon Sep 17 00:00:00 2001 From: bugmaster Date: Thu, 25 Aug 2016 16:57:08 +0300 Subject: [PATCH] 0026910: General fuse does not find intersection between line and circle Adding testing case --- tests/bugs/modalg_6/bug26910 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tests/bugs/modalg_6/bug26910 diff --git a/tests/bugs/modalg_6/bug26910 b/tests/bugs/modalg_6/bug26910 new file mode 100644 index 0000000000..30d5ecc55d --- /dev/null +++ b/tests/bugs/modalg_6/bug26910 @@ -0,0 +1,31 @@ +puts "============" +puts "OCC26910" +puts "============" +puts "" +###################################################### +# General fuse does not find intersection between line and circle +###################################################### + +restore [locate_data_file bug26910.brep] a + +explode a +bclearobjects +bcleartools +baddobjects a_1 +baddtools a_2 +bfillds +bbuild r +set a 0 +foreach r [explode r v] { + set a [expr $a + 1] + } +if { ${a} != 5 } { + puts "Error: ${a} intersections were not found between line and circle" +} else { + puts "Found ${a} intersection between line and circle" +} + +smallview +fit + +checkview -screenshot -2d -path ${imagedir}/${test_image}.png