0014531: Boolean Operation Algorithm fails
[occt.git] / tests / bugs / modalg_6 / bug8040
CommitLineData
bf3220cf 1puts "============"
2puts "OCC8040"
3puts "============"
4puts ""
5##################################
6# Offset direction is wrong for a closed circle
7##################################
8
9circle c 1 0 0 20
10offset c1 c 10 0 0 1
11offset c2 c -10 0 0 1
12checklength c -l 125.66370614359172
13checklength c1 -l 188.49555921538757
14checklength c2 -l 62.831853071795862
15
16mkedge e c
17mkedge e1 c1
18mkedge e2 c2
19vertex v1 0 35 0
20vertex v2 0 -35 0
21edge e3 v1 v2
22set index 0
23set number_of_vertex 0
24foreach s {e e1 e2} {
25set index [expr $index + 1 ]
26bop $s e3
27bopsection result$index
28regexp {nb alone Vertices : ([-0-9.+eE]+)} [checksection result$index] full nbv
29set number_of_vertex [expr $number_of_vertex + $nbv]
30puts "number_of_vertex = $number_of_vertex"
31}
32
33if { $number_of_vertex != 6 } { puts "Error : Section is incorrect" }
34
35smallview
36fit
37
38checkview -screenshot -2d -path ${imagedir}/${test_image}.png
39