File: bug22967

package info (click to toggle)
opencascade 7.9.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 301,924 kB
  • sloc: cpp: 1,523,264; tcl: 10,159; cs: 5,173; java: 1,554; sh: 1,342; ansic: 827; xml: 699; makefile: 30; javascript: 22
file content (50 lines) | stat: -rwxr-xr-x 1,650 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
puts "TODO OCC25597 ALL: Error: Vertex tolerance"
puts "TODO OCC25597 ALL: Error: Edge tolerance"
puts "============"
puts "OCC22967"
puts "============"
puts ""
############################################################################################################
# Boolean operations between two cylinders with orthogonal axis generate a shape with big vertex tolerance
###########################################################################################################

set BugNumber OCC22967

restore [locate_data_file bug22967_Cylinder_1.brep] b1 
restore [locate_data_file bug22967_Scale_1.brep] b2 
bop b1 b2
bopfuse result
set info [ maxtolerance result ]

regexp {Edge[ \t]*:.*Max[ \t]*([-0-9.+eE]+)} $info full last1
regexp {Vertex[ \t]*:.*Max[ \t]*([-0-9.+eE]+)} $info full last

set check_value 8.46459e-006

checkreal "Vertex tolerance" ${last} ${check_value} 0 0.05
checkreal "Edge tolerance" ${last1} ${check_value} 0 0.05
checkprops result -s 668843 
checkshape result
checkview -display result -2d -path ${imagedir}/${test_image}.png


############################################################################################################
# Addition checks according to the issue OCC26918
###########################################################################################################

set i 1
set Lf [explode result f]
foreach ff $Lf {
  set Le [explode $ff e]
  
  set j 1
  foreach ee $Le {
    if { [string first "Tolerance cannot be computed" [xdistef $ee $ff]] >= 0 } {
      puts "Error: \"xdistef result_$i_$j result_$i\" cannot find maximal distance "
    }
    
    incr j
  }
  
  incr i
}