0024105: ShapeFix algorithm produces not correct result.
[occt.git] / tests / bugs / modalg_5 / bug23706_8
1 puts "============"
2 puts "OCC23706"
3 puts "============"
4 puts ""
5 #########################################################################
6 # Cannot project point on curve
7 #########################################################################
8
9 bsplinecurve r2 2 4 1 3 2 2 3 1 4 3 0 8 0 1 2 8 2 1 4 8 3 1 4 8 3 1 6 8 4 1 10 8 10 1
10 mkedge spine r2
11 wire spine spine
12 circle profile 0 8 0 1 0 1 0.51
13 mkedge profile profile
14 wire profile profile
15 mkplane profile profile
16 pipe p spine profile
17 explode p f
18 mksurface ss p_2
19 bsplinecurve r3 2 5 1 3 2 1 3 1 4 1 5 3 9 7 3 1 5.447213595499958 9 2.105572809000084 1 4.223606797749979 8 2.552786404500042 1 4.223606797749979 8 2.552786404500042 1 3 7 3 1 2 5 3 1
20 set info [intersect res r3 ss]
21 if { [regexp "res_1" $info] != 1 || [regexp "res_2" $info] != 1 || [regexp "res_3" $info] != 0 } {
22     puts "Error : Wrong number of points of intersection. Should contain two points"
23 } else {
24     puts "OK: Number of points of intersection is valid"
25 }