0026918: GeomLib_CheckCurveOnSurface cannot compute distance if 3D-curve is periodic
[occt.git] / tests / bugs / modalg_2 / bug22967
CommitLineData
cd718a73 1puts "TODO OCC25597 ALL: Error: Vertex tolerance"
2puts "TODO OCC25597 ALL: Error: Edge tolerance"
3bea4c16 3puts "============"
4puts "OCC22967"
5puts "============"
6puts ""
7############################################################################################################
8# Boolean operations between two cylinders with orthogonal axis generate a shape with big vertex tolerance
9###########################################################################################################
10
11set BugNumber OCC22967
3bea4c16 12
13restore [locate_data_file bug22967_Cylinder_1.brep] b1
14restore [locate_data_file bug22967_Scale_1.brep] b2
15bop b1 b2
16bopfuse result
17set info [ maxtolerance result ]
18
19regexp {Edge[ \t]*:.*Max[ \t]*([-0-9.+eE]+)} $info full last1
20regexp {Vertex[ \t]*:.*Max[ \t]*([-0-9.+eE]+)} $info full last
21
cd718a73 22set check_value 8.46459e-006
3bea4c16 23
cd718a73 24checkreal "Vertex tolerance" ${last} ${check_value} 0 0.05
25checkreal "Edge tolerance" ${last1} ${check_value} 0 0.05
58cf74e0 26checkprops result -s 668843
27checkshape result
5747059b 28checkview -display result -2d -path ${imagedir}/${test_image}.png
3bea4c16 29
309bad28 30
31############################################################################################################
32# Addition checks according to the issue OCC26918
33###########################################################################################################
34
35set i 1
36set Lf [explode result f]
37foreach ff $Lf {
38 set Le [explode $ff e]
39
40 set j 1
41 foreach ee $Le {
42 if { [string first "Tolerance cannot be computed" [xdistef $ee $ff]] >= 0 } {
43 puts "Error: \"xdistef result_$i_$j result_$i\" cannot find maximal distance "
44 }
45
46 incr j
47 }
48
49 incr i
50}