mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Check for double solutions has been added in algorithms Extrema_ELPCOfLocateExtPC and Extrema_ELPCOfLocateExtPC2d that find extrema between point and curve.
23 lines
454 B
Plaintext
23 lines
454 B
Plaintext
puts "========"
|
|
puts "OCC23706"
|
|
puts "========"
|
|
puts ""
|
|
####################################
|
|
## Cannot project point on curve
|
|
####################################
|
|
|
|
set x 3.0
|
|
set y 6.0
|
|
set z -3.0
|
|
set pp_ch1 1
|
|
|
|
restore [locate_data_file bug23706_c07.draw] c
|
|
set info [proj c $x $y $z]
|
|
|
|
regexp {parameter 1 += +([-0-9.+eE]+)} $info full pp1
|
|
if { $pp1 != $pp_ch1 } {
|
|
puts "Error : Projection is not correct"
|
|
} else {
|
|
puts "OK: Projection is correct"
|
|
}
|