1 puts "================"
3 puts "================"
5 #######################################################################
6 # Wrong result obtained by curve / surface intersection algorithm.
7 #######################################################################
11 restore [locate_data_file bug26525_a.brep] b1
12 restore [locate_data_file bug26525_b.brep] b2
15 trimv sb1t sb1 -30000 30000
20 # Case 2. The curve is from the edge: b2_1
22 # 2.2 The face b1 is based on trimmed surface
24 set log [OCC26525 pt b2_1 b1t]
26 regexp {([-0-9]+)} $log full Number
32 regexp {point pt_1 +([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+)} $log full x1 y1 z1
34 set expected_x1 39.0504
35 set expected_y1 -12.8696
36 set expected_z1 82.6099
38 checkreal "x1" ${x1} ${expected_x1} ${tol_abs} ${tol_rel}
39 checkreal "y1" ${y1} ${expected_y1} ${tol_abs} ${tol_rel}
40 checkreal "z1" ${z1} ${expected_z1} ${tol_abs} ${tol_rel}
42 regexp {point pt_2 +([-0-9.+eE]+) +([-0-9.+eE]+) +([-0-9.+eE]+)} $log full x2 y2 z2
44 set expected_x2 43.1172
45 set expected_y2 -17.16
46 set expected_z2 82.6048
48 checkreal "x2" ${x2} ${expected_x2} ${tol_abs} ${tol_rel}
49 checkreal "y2" ${y2} ${expected_y2} ${tol_abs} ${tol_rel}
50 checkreal "z2" ${z2} ${expected_z2} ${tol_abs} ${tol_rel}
52 puts "Error: Bad Number of intersection points"