Files
OCCT/tests/bugs/moddata_2/bug253
Pasukhin Dmitry 04025d1cc3 Testing - Update reference data for migration to new station (#1248)
- Adjusted faulties and warnings in tests for IGES and STEP files to reflect updated results.
- Corrected tolerance values in multiple tests to ensure accuracy in shape validation.
- Updated expected label counts and properties in several test cases to align with new outputs.
- Modified error messages and expected results in HLR and offset tests for consistency.
- Refined metadata checks in GLTF and STEP tests to match revised reference sizes and values.
- Update Improvements cases with removing TODO
2026-04-30 10:38:25 +01:00

46 lines
1.4 KiB
Plaintext
Executable File

puts "========"
puts "OCC253"
puts "========"
######################################################
## Exception while segment operation on periodic BSpline curve.
## More over it seems that command segment in Draw does not work.
######################################################
puts "TODO OCC0000 ALL: Faulty OCC253: parametrization of result curve is wrong"
restore [locate_data_file OCC253.draw] result
############### checkshape c1 # is not a topological shape
smallview -2D-
#store dump of initial curve
set init_dump [dump result]
set ufirst 0.500000000000006
set ulast 1.00000000015925
catch { segment result $ufirst $ulast }
#compare dump of initial curve and dump of result one
set result_dump [dump result]
if { $init_dump == $result_dump} {
puts "Faulty OCC253: command segment does NOT do anything"
}
#retrieve amount of knots of result curve from dump
regexp { +Degree +[-0-9.+eE]+, +[-0-9.+eE]+ +Poles, +([-0-9.+eE]+) +KnotsPoles +:} $result_dump full KnotsNumber
#create string to be found in result dump
set trueLastKnot "$KnotsNumber : 1 4"
#verify parametrization of result curve
if { [regexp "1 : 0.5 4" $result_dump] && [regexp $trueLastKnot $result_dump]} {
puts " OCC253 is OK: command segment works properly"
} else {
puts "Faulty OCC253: parametrization of result curve is wrong"
}
2dfit
checkview -display result -2d -path ${imagedir}/${test_image}.png