]> OCCT Git - occt-copy.git/commitdiff
0029653: Unable to get generated shapes for some of the arguments of Thrusections... CR29653
authoremv <emv@opencascade.com>
Tue, 27 Mar 2018 12:14:44 +0000 (15:14 +0300)
committeremv <emv@opencascade.com>
Tue, 27 Mar 2018 12:14:44 +0000 (15:14 +0300)
Update test case to reproduce the problem by checking possibility of getting generated shapes for each vertex and edge of the arguments of Thrusections operation.

tests/bugs/modalg_4/bug22646

index fb990a9b3514694b989403f156fadfc88c0245b0..105fd66568a3da2ac1d631ae78e1c30c454ae83e 100755 (executable)
@@ -25,11 +25,41 @@ vfit
 donly s1_1 s2_1
 thrusections res2 0 0 s1_1 s2_1
 
+foreach s {s1_1 s2_1} {
+  foreach type {v e} {
+    foreach ss [explode $s $type] {
+      if {[catch { genthrus g $ss } catch_res]} {
+        puts "Error: Unable to get generated shapes"
+      }
+    }
+  }
+}
+
 donly s1_1 s3_1
 thrusections res3 0 0 s1_1 s3_1
 
+foreach s {s1_1 s3_1} {
+  foreach type {v e} {
+    foreach ss [explode $s $type] {
+      if {[catch { genthrus g $ss } catch_res]} {
+        puts "Error: Unable to get generated shapes"
+      }
+    }
+  }
+}
+
 donly s1_1 s4_1
 thrusections res4 0 0 s1_1 s4_1
 
+foreach s {s1_1 s4_1} {
+  foreach type {v e} {
+    foreach ss [explode $s $type] {
+      if {[catch { genthrus g $ss } catch_res]} {
+        puts "Error: Unable to get generated shapes"
+      }
+    }
+  }
+}
+
 checkview -screenshot -3d -path ${imagedir}/${test_image}.png