mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +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
639 B
Plaintext
Executable File
24 lines
639 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.igs
|
|
|
|
file delete ${aFile}
|
|
|
|
brepiges w ${aFile}
|
|
|
|
if { ![file exists ${aFile}] } {
|
|
puts "Error: Wire containing degenerated edge is not written to IGES file"
|
|
} else {
|
|
puts "OK: Wire containing degenerated edge is written to IGES file"
|
|
}
|
|
|
|
catch {exec chmod 777 ${aFile}}
|