mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0026985: Wrong section between two faces: it has a gap
This commit is contained in:
parent
c1425a3f51
commit
3bfd1ba8f2
@ -2930,7 +2930,7 @@ IntWalk_StatusDeflection IntWalk_PWalking::TestDeflection(const IntImp_ConstIso
|
|||||||
Standard_Real LocalResol = 0.;
|
Standard_Real LocalResol = 0.;
|
||||||
if (RefDist > gp::Resolution())
|
if (RefDist > gp::Resolution())
|
||||||
LocalResol = pasuv[choixIso] * tolconf / RefDist;
|
LocalResol = pasuv[choixIso] * tolconf / RefDist;
|
||||||
if (pasuv[choixIso] <= LocalResol)
|
if (pasuv[choixIso] < 2*LocalResol)
|
||||||
pasuv[choixIso] = pasInit[choixIso] = 2*LocalResol;
|
pasuv[choixIso] = pasInit[choixIso] = 2*LocalResol;
|
||||||
}
|
}
|
||||||
////////////////////////////////////////
|
////////////////////////////////////////
|
||||||
|
31
tests/bugs/modalg_6/bug26985
Normal file
31
tests/bugs/modalg_6/bug26985
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
puts "============"
|
||||||
|
puts "OCC26985"
|
||||||
|
puts "============"
|
||||||
|
puts ""
|
||||||
|
#######################################################################
|
||||||
|
# Wrong section between two faces: it has a gap
|
||||||
|
#######################################################################
|
||||||
|
|
||||||
|
smallview
|
||||||
|
|
||||||
|
set expected_MaxTolerance 1.50777e-005
|
||||||
|
set tol_abs_MaxTolerance 1.e-06
|
||||||
|
set tol_rel_MaxTolerance 1.e-06
|
||||||
|
|
||||||
|
restore [locate_data_file bug26985_f1f2.brep] a
|
||||||
|
explode a
|
||||||
|
|
||||||
|
bop a_1 a_2
|
||||||
|
bopsection res
|
||||||
|
donly res
|
||||||
|
fit
|
||||||
|
donly a_1 a_2 res
|
||||||
|
|
||||||
|
checknbshapes res -vertex 2 -edge 1 -wire 0 -face 0 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 4
|
||||||
|
|
||||||
|
checkshape res
|
||||||
|
|
||||||
|
regexp {Tolerance +MAX=([-0-9.+eE]+)} [tolerance res] full MaxTolerance
|
||||||
|
checkreal "MaxTolerance" ${MaxTolerance} ${expected_MaxTolerance} ${tol_abs_MaxTolerance} ${tol_rel_MaxTolerance}
|
||||||
|
|
||||||
|
checkprops res -l 0.00503456
|
Loading…
x
Reference in New Issue
Block a user