mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
0033173: Modeling Algorithms - Regression in BRepExtrema_DistShapeShape causing Standard_OutOfRange exception
Extrema/Extrema_ExtCC.cxx - checking number of solutions is added tests/bugs/modalg_8/bug33173 - test case added
This commit is contained in:
parent
6447aae244
commit
8c49832926
@ -674,7 +674,10 @@ void Extrema_ExtCC::PrepareParallelResult(const Standard_Real theUt11,
|
||||
Extrema_ExtPElC ExtPCir(aPCirc2,
|
||||
Extrema_CurveTool::Circle (*myC[0]),
|
||||
Precision::Confusion(), theUt11, theUt12);
|
||||
|
||||
if (ExtPCir.NbExt() < 1)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
Standard_Real aMinSqD = ExtPCir.SquareDistance(1);
|
||||
for (Standard_Integer anExtID = 2; anExtID <= ExtPCir.NbExt(); anExtID++)
|
||||
{
|
||||
|
15
tests/bugs/modalg_8/bug33173
Normal file
15
tests/bugs/modalg_8/bug33173
Normal file
@ -0,0 +1,15 @@
|
||||
puts "========"
|
||||
puts "0033173: Modeling Algorithms - Regression in BRepExtrema_DistShapeShape causing Standard_OutOfRange"
|
||||
puts "========"
|
||||
puts ""
|
||||
|
||||
set MinDistExpected 7.049107166484117e-07
|
||||
restore [locate_data_file bug33173.brep] s
|
||||
explode s
|
||||
distmini dm s_1 s_2
|
||||
if {[isdraw dm]} {
|
||||
checkreal MinDist $MinDistExpected [dval dm_val] 1.e-7 .01
|
||||
} else {
|
||||
puts "Error: distmini failed"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user