0026269: Modeling Data - Analytical extrema does not take into account trimmed input...
[occt.git] / tests / lowalgos / extcc / bug29712_5
1 puts "========"
2 puts "OCC29712"
3 puts "========"
4 puts ""
5 #################################################
6 # Extrema algorithm raises exception
7 #################################################
8
9 # Curves c1 and c2 lie on parallel lines.
10 # However, they are bounded (trimmed) curves
11 # and are shifted relatively to each other. So,
12 # perpendicular between these curves does not exist. 
13
14 line c1 1 0 0 0 0 1 
15 line c2 5 0 0 0 0 1
16 trim c1 c1 -1.0e100 5
17 trim c2 c2 10 20
18
19 extrema c1 c2
20
21 if { ![isdraw ext_1 ] } {
22   puts "Error in Extrema-algorithm"
23 } else {
24   puts "Extrema-algorithm works properly"
25 }
26
27 renamevar ext_1 e1
28 extrema c2 c1
29
30 if { ![isdraw ext_1 ] } {
31   puts "Error in Extrema-algorithm"
32 } else {
33   puts "Extrema-algorithm works properly"
34 }