mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-03 14:10:33 +03:00
0032882: Modeling Data - Extrema curve/curve cannot find all solutions (OCCT 7.6 backport)
Extrema/Extrema_GenExtCC.gxx - estimation of Lipchitz constant is improved Extrema_GlobOptFuncCC.cxx - function value is changed LocOpe/LocOpe_WiresOnShape.cxx - small correction to fix regression lowalgos/extcc/bug32882 - new test case is added some test were updated according new behavior of extrema algo
This commit is contained in:
@@ -13,7 +13,7 @@ set info [extrema r3 r4]
|
||||
|
||||
if {[regexp "ext_1" $info]} {
|
||||
set dist [lindex [length ext_1] end]
|
||||
if { $dist > 4.0e-13 } {
|
||||
if { $dist > 5.0e-11 } {
|
||||
puts "Error: Extrema distance is too big"
|
||||
}
|
||||
} else {
|
||||
|
@@ -10,8 +10,11 @@ bsplinecurve r1 2 5 1 3 2 1 3 1 4 1 5 3 2 5 3 1 3 7 3 1 4 8 3 1 4 8 3 1 5 9 3 1
|
||||
bsplinecurve r2 2 5 2 3 2.5 1 3 1 3.5 1 4 3 -1 2 3 1 1 11 3 1 3 9 3 1 3 9 3 1 3 9 3 1 5 7 3 1 7 4 3 1
|
||||
set info [extrema r1 r2]
|
||||
|
||||
if { [llength $info] != 1 } {
|
||||
puts "Error : Extrema is wrong"
|
||||
if {[regexp "ext_1" $info]} {
|
||||
set dist [lindex [length ext_1] end]
|
||||
if { $dist > 1.0e-8 } {
|
||||
puts "Error: Extrema distance is too big"
|
||||
}
|
||||
} else {
|
||||
puts "OK: Extrema is valid"
|
||||
puts "Error: Extrema is not found"
|
||||
}
|
||||
|
@@ -5,7 +5,7 @@ puts ""
|
||||
#################################################
|
||||
# BrepExrtrema_DistShapeShape bad performance on OCCT 6.7.0
|
||||
#################################################
|
||||
cpulimit 100
|
||||
cpulimit 500
|
||||
restore [locate_data_file bug27665_wircmpd.brep] w
|
||||
explode w
|
||||
|
||||
|
Reference in New Issue
Block a user