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:
25
tests/bugs/stlvrml/bug27622
Normal file
25
tests/bugs/stlvrml/bug27622
Normal 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
|
Reference in New Issue
Block a user