58a0843d9a76cab2110466b8ccda51d3e5c73d5f
[occt.git] / tests / bugs / mesh / bug23106
1 puts "========"
2 puts "OCC23106"
3 puts "========"
4 puts ""
5 ###########################################
6 ## BRepMesh_IncrementalMesh returns wrong status
7 ###########################################
8
9 set BugNumber OCC23106
10
11 restore [locate_data_file bug23106_face_0triangles.brep] result
12
13 incmesh result 0.01
14 triangles result 
15
16 set tri 0
17 set nod 0
18
19 set tri_info [trinfo result]
20 regexp { +([-0-9.+eE]+) +triangles} $tri_info full tri
21 regexp { +([-0-9.+eE]+) +nodes} $tri_info full nod
22
23 if { ${tri} > 0 && ${nod} > 0 } {
24     puts "${BugNumber} shading: OK"
25 } else {
26     puts "${BugNumber} shading: Faulty"
27 }
28
29 checkview -display result -3d -path ${imagedir}/${test_image}.png