0026855: Draw commands to debug Boolean Operations Algorithm
[occt.git] / tests / bugs / mesh / bug24775
CommitLineData
e28d7e62 1puts "================"
2puts "CR24775"
3puts "================"
4puts ""
5###############################################
6## False detecting of intersection in BRepMesh_Classifier class.
7###############################################
8
9restore [locate_data_file bug24775_face.brep] face
10vinit
11vdisplay face
12vfit
13
14set trinfo_s [trinfo face]
15regexp {([0-9]+) triangles} ${trinfo_s} str nbtri_s
16regexp {([0-9]+) nodes} ${trinfo_s} str nbnod_s
17regexp {deflection ([0-9.+e-]+)} ${trinfo_s} str defl_s
18
19if { ${nbtri_s} == 0 } {
20 puts "Error: shape contains 0 triangles"
21} else {
22 puts "OK: shape contains triangles"
23}
24
25if { ${nbnod_s} == 0 } {
26 puts "Error: shape contains 0 nodes"
27} else {
28 puts "OK: shape contains nodes"
29}
30
31if { ${defl_s} == 0 } {
32 puts "Error: deflection is 0"
33} else {
34 puts "OK: deflection is good"
35}