1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00
occt/tests/bugs/stlvrml/bug25279
ski 5d7a048985 0027126: Create command checktrinfo to verify meshes
Command checktrinfo was created.
Test cases were updated to use command checktrinfo.
2016-02-05 11:14:44 +03:00

33 lines
699 B
Plaintext
Executable File

puts "================"
puts "OCC25279"
puts "================"
puts ""
#######################################################################################
# OCCT fails to read VRML file created by OCCT
#######################################################################################
set BugNumber OCC25279
set aFile ${imagedir}/${test_image}.vrml
file delete ${aFile}
ptorus res 10 8 0 90 270
incmesh res 0.1
set TrinfoBefore [trinfo res]
set version 2
set mode 2
writevrml res ${aFile} ${version} ${mode}
checktrinfo res -ref "${TrinfoBefore}"
set Log [loadvrml test ${aFile}]
if { [string length $Log] != 0 } {
puts "Faulty ${BugNumber}"
} else {
puts "OK ${BugNumber}"
}