1 puts "================"
3 puts "================"
5 #######################################################
6 ## Intersection algorithm finds two intersection curves. One curve is closed while
7 ## second is not (the distance between first and last points is 2e-5).
8 #######################################################
10 restore [locate_data_file OCC235a.rle] su1
11 ############### checkshape su1 # is not a topological shape
12 restore [locate_data_file OCC235b.rle] su2
13 ############### checkshape su2 # is not a topological shape
15 intersect result su1 su2
18 set nb_result [regexp -all {result} $dir]
19 if { $nb_result != 2 } {
20 puts "Faulty OCC235 (first checking): Intersection was made WRONGLY"
22 puts "OCC235 OK (first checking) : Intersection command works properly"
24 regexp {nb +alone +Vertices +: +([-0-9.+eE]+)} [checksection result_1] full num_1
26 puts " Faulty OCC235 (second checking): Result result_1 is UNclosed !!! "
28 puts " OCC235 OK (second checking): Result result_1 is closed !!! "
31 regexp {nb +alone +Vertices +: +([-0-9.+eE]+)} [checksection result_2] full num_2
33 puts " Faulty OCC235 (second checking): Result result_2 is UNclosed !!! "
35 puts " OCC235 OK (second checking): Result result_2 is closed !!! "
43 checkview -screenshot -2d -path ${imagedir}/${test_image}.png