File: bug30944

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 (30 lines) | stat: -rw-r--r-- 664 bytes parent folder | download | duplicates (4)
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
puts "================"
puts "0030944: Modeling Algorithms - Intersection curves between pair of faces are not found"
puts "================"
puts ""

set MaxTol 2.e-7
set GoodNbCurv 12

restore [locate_data_file bug27469_shapes.brep] b
explode b
explode b_1 f
explode b_2 f
set log [bopcurves b_1_2 b_2_3 -2d]

regexp {Tolerance Reached=+([-0-9.+eE]+)\n+([-0-9.+eE]+)} ${log} full Toler NbCurv

if {${Toler} > ${MaxTol}} {
  puts "Error: Tolerance is too big!"
}

if {${NbCurv} != ${GoodNbCurv}} {
  puts "Error: Curve Number is bad!"
}


smallview
donly b_1_2 b_2_3 
eval display [directory c_*]
fit
checkview -screenshot -2d -path ${imagedir}/${test_image}.png