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:
parent
3d58dc498b
commit
70d08ce5b2
@ -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++;
|
||||
}
|
||||
|
||||
|
14
tests/bugs/fclasses/bug25558
Normal file
14
tests/bugs/fclasses/bug25558
Normal 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
|
Loading…
x
Reference in New Issue
Block a user