0024863: CLang warnings -Wint-to-void-pointer-cast
[occt.git] / tests / bugs / xde / bug945
CommitLineData
e54706ed 1puts "========="
2puts " OCC945 "
3puts "========="
4puts ""
5#######################################
6## it is necessary to adapt ShapeFix_Face for correct work
7#######################################
8
9restore [locate_data_file OCC945.brep] a
10
11decho off
12set che [checkshape a]
13decho on
14if { [regexp "Faulty" $che] == 1 } {
15 puts "OCC945: Source shape is invalid."
16} else {
17 puts "OCC945: Source shape is valid."
18}
19
1951a27c 20if [catch {fixshape result a 29.9 } res] {
e54706ed 21 puts "Faulty OCC945: here is problem with FIXSHAPE function"
22} else {
23 decho off
24 set che1 [checkshape result]
25 decho on
26 if { [regexp "Faulty" $che1] == 1 } {
27 puts "Faulty OCC945: function FIXSHAPE works WRONGLY."
28 } else {
29 puts "OCC945 OK: function FIXSHAPE works PROPERLY."
30 }
31}
32
33set 2dviewer 1