1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

0027622: Data Exchange - STL file having less than 4 triangles cannot be read

Drop minimum file size check from RWStl::ReadBinary().

Test case for issue #27622
This commit is contained in:
kgv
2016-06-20 17:40:48 +03:00
committed by bugmaster
parent 284c923864
commit a47d34efa9
2 changed files with 52 additions and 7 deletions

View File

@@ -0,0 +1,25 @@
puts "========"
puts "OCC27622"
puts "========"
puts ""
########################################################################
# Data Exchange - STL file having less than 4 triangles cannot be read
########################################################################
readstl result [locate_data_file bug27622_Design1.stl]
set nbshapes_expected "
Number of shapes in result
VERTEX : 4
EDGE : 5
WIRE : 2
FACE : 2
SHELL : 1
SOLID : 0
COMPSOLID : 0
COMPOUND : 0
SHAPE : 14
"
checknbshapes result -ref ${nbshapes_expected} -t -m "Result of STL-reading operation"
checkview -display result -2d -path ${imagedir}/${test_image}.png