Adding test cases from chl grid
[occt.git] / tests / bugs / modalg / bug827_1
CommitLineData
352ffd73 1puts "TODO OCC12345 ALL: Error : The square of result shape is"
2puts "TODO OCC12345 ALL: Faulty shapes in variables faulty_1 to faulty_"
3puts "TODO OCC12345 ALL: Faulty OCC827"
4
f1aa2b62 5pload QAcommands
6
352ffd73 7puts "========"
f1aa2b62 8puts "OCC827"
352ffd73 9puts "========"
f1aa2b62 10puts ""
352ffd73 11###################################
f1aa2b62 12## BRepAlgoAPI_Fuse fails on cylinder and torus
352ffd73 13###################################
14## (old topology)
15#####################################
f1aa2b62 16
17#
18# a1 - Cylinder
19# a2 - Torus1
20# a3 - Torus1
21# res1 - Fuse(Torus1 & Cylinder)
22# res2 - Fuse(Torus2 & res1)
23#
24
352ffd73 25if { [ catch { set info_result [OCC827 a1 a2 a3 res1 res2 0] } ] } {
26 puts "Faulty OCC827"
f1aa2b62 27} else {
352ffd73 28 if { [regexp {FAILED} $info_result] } {
29 puts "Faulty OCC827"
30 }
31 checkshape a1
32 checkshape a2
33 checkshape a3
34 checkshape res1
35
36 set ExplodeList [explode res1]
f1aa2b62 37 if {[llength ${ExplodeList}] < 1} {
352ffd73 38 puts "Faulty OCC827"
f1aa2b62 39 }
f1aa2b62 40
352ffd73 41 set ExplodeList [explode res2]
f1aa2b62 42 if {[llength ${ExplodeList}] < 1} {
352ffd73 43 puts "Faulty OCC827"
f1aa2b62 44 }
352ffd73 45 renamevar res2 result
f1aa2b62 46}
352ffd73 47set square 0
48set 2dviewer 1