0024083: BRepCheck_Wire crashes processing a wire consisting of many edges
[occt.git] / tests / bugs / modalg_5 / bug23706_8
CommitLineData
32ca7a51 1puts "============"
2puts "OCC23706"
3puts "============"
4puts ""
5#########################################################################
6# Cannot project point on curve
7#########################################################################
8
9bsplinecurve 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
10mkedge spine r2
11wire spine spine
12circle profile 0 8 0 1 0 1 0.51
13mkedge profile profile
14wire profile profile
15mkplane profile profile
16pipe p spine profile
17explode p f
18mksurface ss p_2
19bsplinecurve 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
20set info [intersect res r3 ss]
21if { [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}