Condition of adding one last knot corrected.
Test-case for issue #25558
{
//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++;
}
--- /dev/null
+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