5 ############################################################################################################
6 # Boolean operations between two cylinders with orthogonal axis generate a shape with big vertex tolerance
7 ###########################################################################################################
10 set check_value 1.04742e-05
12 restore [locate_data_file bug22967_Cylinder_1.brep] b1
13 restore [locate_data_file bug22967_Scale_1.brep] b2
16 set info [ maxtolerance result ]
18 regexp {Edge[ \t]*:.*Max[ \t]*([-0-9.+eE]+)} $info full last1
19 regexp {Vertex[ \t]*:.*Max[ \t]*([-0-9.+eE]+)} $info full last
21 proc GetPercent {Value GoodValue} {
23 if {${GoodValue} != 0.} {
24 set Percent [expr abs(${Value} - ${GoodValue}) / abs(double(${GoodValue})) * 100.]
25 } elseif {${Value} != 0.} {
26 set Percent [expr abs(${GoodValue} - ${Value}) / abs(double(${Value})) * 100.]
36 set Tolerance_percent [expr abs ( [GetPercent ${last} ${check_value}] ) ]
37 if {${Tolerance_percent} > ${percent_max}} {
43 set Tolerance_percent [expr abs ( [GetPercent ${last1} ${check_value}] ) ]
44 if {${Tolerance_percent} > ${percent_max}} {
52 puts "${BugNumber}: Faulty"
54 puts "OK ${BugNumber}"