0025624: Visualization - selection is incorrect in perspective mode in a specific...
[occt.git] / tests / bugs / moddata_3 / bug25179
1 puts "============"
2 puts "CR25179"
3 puts "============"
4 puts ""
5 ###################################################################################
6 # BRepMesh cannot build a mesh on specific geometry
7 ###################################################################################
8
9 cpulimit 2000
10
11 restore [locate_data_file bug25179_nurbs-with-partial-seam.brep] result
12
13 tclean result
14 incmesh result 0.1
15
16 set trinfo_s [trinfo result]
17 regexp {([0-9]+) triangles} ${trinfo_s} str nbtri_s
18 regexp {([0-9]+) nodes} ${trinfo_s} str nbnod_s
19 regexp {deflection ([0-9.+e-]+)} ${trinfo_s} str defl_s
20
21 if { ${nbtri_s} == 0 } {
22    puts "Error: shape contains 0 triangles"
23 }
24
25 if { ${nbnod_s} == 0 } {
26    puts "Error: shape contains 0 nodes"
27 }
28
29 if { ${defl_s} == 0 } {
30    puts "Error: deflection is 0"
31 }
32
33 if [catch { tricheck result } ] {
34   puts "Error : Problem of build a mesh on specific geometry"
35 } else {
36   puts "OK : Building a mesh on specific geometry is good"
37 }
38
39 set 3dviewer 1