5 #########################################################################
6 # Cannot project point on curve
7 #########################################################################
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
12 circle profile 0 8 0 1 0 1 0.51
13 mkedge profile profile
15 mkplane profile profile
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"
24 puts "OK: Number of points of intersection is valid"