0026269: Modeling Data - Analytical extrema does not take into account trimmed input...
[occt.git] / tests / lowalgos / extcc / bug29712_25
1 puts "========"
2 puts "OCC29712"
3 puts "========"
4 puts ""
5 #################################################
6 # Extrema algorithm raises exception
7 #################################################
8
9 # Curves c1 and c2 are concentric circles.
10 # However, they are bounded (trimmed) curves
11 # and are shifted relatively to each other.
12
13 set ExpDist 150.0
14
15 circle c1 0 0 0 0 0 1 100
16 circle c2 0 0 0 0 0 1 50
17 trim c1 c1 0 3
18 trim c2 c2 -8.3 -6.3
19
20 extrema c1 c2
21
22 if { ![isdraw ext_1 ] } {
23   puts "Error in Extrema-algorithm"
24 } else {
25   puts "Extrema-algorithm works properly"
26 }
27
28 renamevar ext_1 e1
29 extrema c2 c1
30
31 if { ![isdraw ext_1 ] } {
32   puts "Error in Extrema-algorithm"
33 } else {
34   puts "Extrema-algorithm works properly"
35 }