mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
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
24 lines
652 B
Plaintext
Executable File
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}}
|