0025987: Integration part of modified unstable test cases
[occt.git] / tests / bugs / mesh / bug25157
CommitLineData
a806787b 1puts "========="
2puts "CR25157"
3puts "========="
4puts ""
5###################################################
6# Face missing depending the angle of revolution
7###################################################
8
9pload XDE
10
11pcone Cone 6 0 10 180
12pcylinder Cylinder 1 6 360
13ttranslate Cylinder 0 3 1
14bcut Cut Cone Cylinder
15explode Cut F
16tclean Cut_1
17incmesh Cut_1 0.1
18set trinfo_s [trinfo Cut_1]
19regexp {([0-9]+) triangles} ${trinfo_s} str nbtri_s
20regexp {([0-9]+) nodes} ${trinfo_s} str nbnod_s
21
22if { ${nbtri_s} == 0 } {
23 puts "Error: shape contains 0 triangles"
24} else {
25 puts "OK: shape contains ${nbtri_s} triangles"
26}
27
28if { ${nbnod_s} == 0 } {
29 puts "Error: shape contains 0 nodes"
30} else {
31 puts "OK: shape contains ${nbnod_s} nodes"
32}
33
34vinit
35vdisplay Cut_1
36vfit
37set only_screen 1