0014531: Boolean Operation Algorithm fails
[occt.git] / tests / bugs / moddata_1 / bug14782
CommitLineData
3bea4c16 1puts "========================"
2puts "OCC14782"
3puts "========================"
4puts ""
5#######################################################################
6# Method segment works wrongly for periodical BSpline curve
7#######################################################################
8
9set BugNumber OCC14782
10
3bea4c16 11restore [locate_data_file OCC14782.draw] res
12
13bounds res t1 t2
14set bounds_list [dump res]
15
16puts ""
17if { [llength ${bounds_list}] < 7 } {
18 puts "Bad bounds_list"
19 puts "Faulty ${BugNumber}"
20} else {
21 set periodic_type [lindex ${bounds_list} 6]
22 puts "periodic_type=${periodic_type}"
23 if { ${periodic_type} != "periodic" } {
24 puts "1. Faulty ${BugNumber}"
25 } else {
26 puts "1. OK ${BugNumber}"
27 }
28}
29
30set ll1 [lindex [length res] end]
31puts "length1=${ll1}"
32
369a38aa 33segment res t1 t2
3bea4c16 34set segment_list [dump res]
35
36puts ""
37if { [llength ${segment_list}] < 7 } {
38 puts "Bad segment_list"
39 puts "Faulty ${BugNumber}"
40} else {
41 set periodic_type [lindex ${segment_list} 6]
42 puts "periodic_type=${periodic_type}"
43 if { ${periodic_type} != "periodic" } {
44 puts "2. OK ${BugNumber}"
45 } else {
46 puts "2. Faulty ${BugNumber}"
47 }
48}
49
50set ll2 [lindex [length res] end]
51puts "length2=${ll2}"
52
cd718a73 53checkreal "length1" ${ll1} ${ll2} 0 0.001