1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
Roman Lygin 7b1c1b7cbb 0025971: Near B-Spline knots get merged after saving/restoring (exporting/importing)
Precision used to consider B-Spline knots identical is restricted to be not less than Precision::PConfusion() in Geom2d_BSplineCurve::Segment().

Affected tests updated (improvements)

Test case for issue CR25971
2015-04-30 14:19:34 +03:00

53 lines
977 B
Plaintext
Executable File

puts "============"
puts "OCC25971"
puts "============"
puts ""
#######################################################################
# Near B-Spline knots get merged after saving/restoring (exporting/importing)
#######################################################################
pload XDE
restore [locate_data_file bug25971_a_328_1.brep] a
fixshape f a 1e-6
explode f e
dump f_4
newmodel
set aFile ${imagedir}/bug25971.stp
catch { file delete ${aFile} }
stepwrite a a ${aFile}
stepread ${aFile} ff *
catch { file delete ${aFile} }
set nbshapes_expected "
Number of shapes in shape
VERTEX : 4
EDGE : 5
WIRE : 1
FACE : 1
SHELL : 1
SOLID : 0
COMPSOLID : 0
COMPOUND : 0
SHAPE : 12
"
checknbshapes ff_1 -ref ${nbshapes_expected} -t -m "Saved shape"
tpstat c ; #Exception caught for the shell
vinit View1
vdisplay a
vfit
vdump ${imagedir}/${casename}_1.png
vinit View2
vdisplay ff_1
vfit
vdump ${imagedir}/${casename}_2.png