mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-11 01:58:22 +08:00
Use correct ranges of circles when processing the concentric case. Repeat the range comparison 3 times shifting each time for a half-period to process the extrema between boundary points of arcs.
14 lines
356 B
Plaintext
14 lines
356 B
Plaintext
puts "========"
|
|
puts "0031407: Extrema does not process parallel circles correctly"
|
|
puts "========"
|
|
puts ""
|
|
|
|
circle c1 0 0 0 0 0 1 5
|
|
circle c2 0 0 0 0 0 1 10
|
|
|
|
if { [regexp "Infinite number of extremas" [extrema c1 c2]] == 1} {
|
|
puts "OK : Circles are treated as concentric"
|
|
} else {
|
|
puts "Error : Extrema does not find the circles are parallel"
|
|
}
|