0026342: No materials are read from STEP
[occt.git] / tests / bugs / modalg_1 / buc60744
CommitLineData
a87752f3 1pload QAcommands
2
3puts "========================"
4puts "BUC60744"
5puts "========================"
6puts ""
7
8restore [locate_data_file buc60744a.brep] a
9restore [locate_data_file buc60744b.brep] b
10
11set che [checkshape a]
12if { [regexp {Faulty} $che ] == 1 } {
13 puts "Faulty BUC60744 (shape 1): Source shape is invalid. It was detected by Checkshape command"
14 puts "Body of the script was NOT executed"
15 renamevar a result
16} else {
17 puts "BUC60744 OK (shape 1): Source shape is valid"
18
19 set che [checkshape b]
20 if { [regexp {Faulty} $che ] == 1 } {
21 puts "Faulty BUC60744 (shape 2): Source shape is invalid. It was detected by Checkshape command"
22 puts "Body of the script was NOT executed"
23 renamevar b result
24 } else {
25 puts "BUC60744 OK (shape 2): Source shape is valid"
26
27 ksection result a b 1000 0.0001 0.00001 0
28
29 set ne [llength [explode result e]]
30 set nv [llength [explode result v]]
31
32 if {$ne >= $nv} {
33 puts [format "Faulty : the number of edges is %s, but the number of vertexes is %s." $ne $nv]
34 }
35 }
36}
37bsection result a b
38
39set ne [llength [explode result e]]
40set nv [llength [explode result v]]
41
42if {$ne >= $nv} {
43 puts [format "Faulty : the number of edges is %s, but the number of vertexes is %s." $ne $nv]
44}
45
46set length 228.386
47set 2dviewer 0