0026359: Revolution shape of Parabola Curve has no triangles
[occt.git] / tests / bugs / moddata_3 / bug26359
1 puts "============"
2 puts "CR26359"
3 puts "============"
4 puts ""
5 ###################################################################################
6 # Revolution shape of Parabola Curve has no triangles
7 ###################################################################################
8
9 vinit View1
10 vclear
11 vaxo
12 vsetdispmode 1
13
14 restore [locate_data_file bug26359_parabola.brep] p
15
16 vdisplay p
17 vfit
18
19 set trinfo_s [trinfo p]
20 regexp {([0-9]+) triangles} ${trinfo_s} str nbtri_s
21 regexp {([0-9]+) nodes} ${trinfo_s} str nbnod_s
22 regexp {deflection ([0-9.+e-]+)} ${trinfo_s} str defl_s
23
24 if { ${nbtri_s} == 0 } {
25    puts "Error: shape contains 0 triangles"
26 }
27
28 if { ${nbnod_s} == 0 } {
29    puts "Error: shape contains 0 nodes"
30 }
31
32 if { ${defl_s} == 0 } {
33    puts "Error: deflection is 0"
34 }
35
36 vdump ${imagedir}/${casename}.png