2 puts "OCC567: Can not intersect two Rectangular Trimmed Surfaces ."
8 restore [locate_data_file OCC567a.draw] s1
9 restore [locate_data_file OCC567b.draw] s2
11 foreach a [directory res*] {unset $a}
13 trim s1x s1 0 2*pi 0 2*pi/13
14 trim s2x s2 0 2*pi 0 2*pi/13
16 if { [catch {intersect res s1x s2x } catch_result] } {
17 puts "Faulty OCC565 exception: function intersection works wrongly with trimmed Surfaces"
20 set ind [string first "3d curve" $che]
22 #Only variable "res" exists
31 while { $AllowRepeat != 0 } {
32 set che [whatis res_$ic]
33 set ind [string first "3d curve" $che]
40 if {[dval U2-U1] < 1.0e-9} {
41 puts "Error: Wrong curve's range!"
44 xdistcs res_$ic s1 U1 U2 100 2.0e-7
45 xdistcs res_$ic s2 U1 U2 100 2.0e-7
47 for { set ip [expr $ic-1] } { $ip > 0 } { incr ip -1 } {
51 set coe [checkoverlapedges e1 e2 5.0e-5]
53 puts "res_$ic <-> res_$ip: $coe"
54 if { [regexp "Edges is not overlaped" $coe] != 1 } {
55 puts "Error: res_$ic and res_$ip are overlaped"
68 if {$ic != $GoodNbCurves} {
69 puts "Error: $GoodNbCurves curves are expected but $ic ones are found."
73 # Check of gaps between intersection curves
77 checknbshapes rs -edge 1
89 checkview -screenshot -2d -path ${imagedir}/${test_image}.png