File: bug534_1

package info (click to toggle)
opencascade 7.3.0%2Bdfsg1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 278,376 kB
  • sloc: cpp: 1,136,010; ansic: 81,569; tcl: 14,864; cs: 5,173; java: 1,522; xml: 468; sh: 375; perl: 37; makefile: 25
file content (28 lines) | stat: -rwxr-xr-x 858 bytes parent folder | download | duplicates (6)
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

puts "========================"
puts " OCC534 "
puts " case 1 "
puts "========================"
puts ""

hyperbola hyperbola 0 0 0 30 10
extsurf es_hyperbola hyperbola 0 0 1
offset es_hyperbola_of es_hyperbola 5
mkface result es_hyperbola_of 0 3 0 40


set tolerance [maxtolerance result]
regexp { +Face +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxFaceTolerance
regexp { +Edge +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxEdgeTolerance
regexp { +Vertex +: +Min +[-0-9.+eE]+ +Max +([-0-9.+eE]+)} $tolerance full MaxVertexTolerance

if { $MaxFaceTolerance > 1 || $MaxEdgeTolerance > 1 || $MaxVertexTolerance > 1 } {
    puts "Faulty : Tolerance of shape is more then 1.0"
} else {
    puts "Tolerance is OK"
}

checkprops result -s 11451.2 
checkshape result
checkview -display result -2d -path ${imagedir}/${test_image}.png