1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-05 18:16:23 +03:00

0025558: It is impossible to restore attached shape

Condition of adding one last knot corrected.

Test-case for issue #25558
This commit is contained in:
aml 2014-12-11 16:40:37 +03:00 committed by bugmaster
parent 3d58dc498b
commit 70d08ce5b2
2 changed files with 16 additions and 2 deletions

View File

@ -1698,8 +1698,8 @@ Standard_Boolean BSplCLib::PrepareInsertKnots
{
//gka for case when segments was produced on full period only one knot
//was added in the end of curve
if(fabs(adeltaK1) <= Precision::PConfusion() &&
fabs(adeltaK2) <= Precision::PConfusion())
if(fabs(adeltaK1) <= gp::Resolution() &&
fabs(adeltaK2) <= gp::Resolution())
ak++;
}

View File

@ -0,0 +1,14 @@
puts "========"
puts "OCC25558"
puts "========"
puts ""
##############################################
# It is impossible to restore attached shape
##############################################
smallview
restore [locate_data_file OCC25558_faulty.brep] a1
fit
set only_screen_axo 1