1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/step/bug25843_step
ika 7f0b39bec9 0025843: Wire containing degenerated edge is not written to IGES / STEP
add check for edges with null 2D and 3D curves for STEP,
for IGES problem exists only with wires, where non-invalid edge is only one, and it is not the last in wire(fixed).

Test case for issue CR25843
2015-03-19 15:44:45 +03:00

24 lines
652 B
Plaintext
Executable File

puts "============"
puts "OCC25843"
puts "============"
puts ""
#######################################################################
# Wire containing degenerated edge is not written to IGES / STEP
#######################################################################
restore [locate_data_file bug25843_onewire.brep] w
set aFile ${imagedir}/bug25843_onewire.stp
catch { file delete ${aFile} }
stepwrite 0 w ${aFile}
if { ![file exists ${aFile}] } {
puts "Error: Wire containing degenerated edge is not written to STEP file"
} else {
puts "OK: Wire containing degenerated edge is written to STEP file"
}
catch {exec chmod 777 ${aFile}}