1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0026985: Wrong section between two faces: it has a gap

This commit is contained in:
jgv 2016-02-16 15:43:13 +03:00 committed by abv
parent c1425a3f51
commit 3bfd1ba8f2
2 changed files with 32 additions and 1 deletions

View File

@ -2930,7 +2930,7 @@ IntWalk_StatusDeflection IntWalk_PWalking::TestDeflection(const IntImp_ConstIso
Standard_Real LocalResol = 0.;
if (RefDist > gp::Resolution())
LocalResol = pasuv[choixIso] * tolconf / RefDist;
if (pasuv[choixIso] <= LocalResol)
if (pasuv[choixIso] < 2*LocalResol)
pasuv[choixIso] = pasInit[choixIso] = 2*LocalResol;
}
////////////////////////////////////////

View 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