1 puts "TODO OCC26190 ALL: Error: Curve Number is bad"
2 puts "TODO OCC26190 ALL: Error: Length of intersection line is bad!"
8 #######################################################################
9 # Intersection algorithm produces overlapping intersection curves
10 #######################################################################
13 # Change these values is strictly forbidden (see bug #26190)
15 set GoodLength 79655.615367318111
17 restore [locate_data_file OCC22790-cx.brep] b
25 set ind [string first "3d curve" $che]
27 #Only variable "res" exists
35 while { $AllowRepeate != 0 } {
36 set che [whatis res_$ic]
37 set ind [string first "3d curve" $che]
41 set log [length res_$ic]
42 set exp_string "The length res_$ic is +(\[-0-9.+eE\]+)"
43 regexp ${exp_string} ${log} full len
44 set SumLength [expr $SumLength+$len]
50 set NbCurv [expr {$ic - 1}]
51 if {$NbCurv == $GoodNbCurv} {
52 puts "OK: Curve Number is good!"
54 puts "Error: Curve Number is bad ($NbCurv curve(s) found, but $GoodNbCurv expected)!"
57 if { abs($SumLength - $GoodLength) < 0.01*$GoodLength } {
58 puts "OK: Length of intersection line is good!"
60 puts "Error: Length of intersection line is bad!"
61 puts "Expected length is: $GoodLength"
62 puts "Found length is: $SumLength"