File: bug25488

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (40 lines) | stat: -rw-r--r-- 1,059 bytes parent folder | download | duplicates (3)
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
puts "========"
puts "OCC25488"
puts "========"
puts ""
######################################################
# Wrong result of two trimmed cylinders intersection
######################################################

set Tolerance 1.1e-7
set D_good 0.
set Limit_Tol 1.0e-7

puts "##############################"
puts "#!!!Search \"Attention\" keyword on this web-page for additional checking!!!"
puts "##############################"
puts ""
puts ""

restore [locate_data_file OCC25488_sb1_1t.draw] sb1
restore [locate_data_file OCC25488_sb2_1t.draw] sb2

set bug_info [intersect res sb1 sb2]

set i 0
while {$i != [llength $bug_info]} {
  set res_i [lindex $bug_info $i]
  dlog reset
  dlog on
  xdistcs ${res_i} sb1 0 1 10
  set BugLog [dlog get]
  set BugList [split ${BugLog} {TD= \t\n}]
  checkList ${BugList} ${Tolerance} ${D_good} ${Limit_Tol}
  dlog reset
  dlog on
  xdistcs ${res_i} sb2 0 1 10
  set BugLog [dlog get]
  set BugList [split ${BugLog} {TD= \t\n}]
  checkList ${BugList} ${Tolerance} ${D_good} ${Limit_Tol}
  set i [expr {$i + 1}]
}