View Issue Details

IDProjectCategoryView StatusLast Update
0027622CommunityOCCT:Data Exchangepublic2016-12-09 16:37
ReporterTimo Assigned Tobugmaster  
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
Product Version7.0.0 
Target Version7.1.0Fixed in Version7.1.0 
Summary0027622: Data Exchange - STL file having less than 4 triangles cannot be read
DescriptionThe appended simple STL file, created by SpaceClaim, cannot be read. The exception says: Wrong file size.

However, it can be read by CAD Exchanger and Siemens NX 9.

Is it an OCC or a SpaceClaim problem?
Steps To Reproducereadstl a Design1.stl
TagsNo tags attached.
Test case numberbugs stlvrml bug27622

Attached Files

  • Design1.stl (184 bytes)

Activities

Timo

2016-06-20 14:31

developer  

Design1.stl (184 bytes)

kgv

2016-06-20 15:24

developer   ~0055230

Last edited: 2016-06-20 15:24

STL reader in OCCT defines minimum size of binary file as 284 bytes (84 for header and 200 for 4 triangles).
I don't know where it comes from, but it is hard to imagine the valid file of smaller size.
Technically STL file should define a SOLID (closed) geometry, which can be possible only with 4+ triangles.

Attached file defines only 2 triangles, which is considered as broken file by OCCT.

git

2016-06-20 17:40

administrator   ~0055251

Branch CR27622 has been created by kgv.

SHA-1: 18dc5b49bf767b5570e5bd884440a182f47b9443


Detailed log of new commits:

Author: kgv
Date: Mon Jun 20 17:40:48 2016 +0300

    0027622: Data Exchange - STL file having less than 4 triangles cannot be read
    
    Drop minimum file size check from RWStl::ReadBinary().

kgv

2016-06-20 17:41

developer   ~0055252

Patch is ready for review.

gka

2016-06-20 18:23

developer   ~0055253

Branch CR27622 is ready to be tested

git

2016-06-21 17:08

administrator   ~0055311

Branch CR27622 has been updated by apv.

SHA-1: b489733ac5547e8411122957788678e529f5229a


Detailed log of new commits:

Author: apv
Date: Tue Jun 21 17:08:26 2016 +0300

    Test case for issue 0027622

apv

2016-06-21 17:45

tester   ~0055315

Dear BugMaster,

Branch CR27622 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
SHA-1: 18dc5b49bf767b5570e5bd884440a182f47b9443

Number of compiler warnings:
occt component:
   Linux: 0 (0 on master)
   Windows: 0 (0 on master)
   MacOS: 0 (0 on master)
products component:
   Linux: 68
   Windows: 0
   MacOS: 1153

Regressions/Differences:
Not detected

Testing cases:
bugs stlvrml bug27622 - OK
http://occt-tests/CR27622-master-OCCT/Debian70-64/bugs/stlvrml/bug27622.html
http://occt-tests/CR27622-master-OCCT/Windows-64-VC10/bugs/stlvrml/bug27622.html

Testing on Linux:
Total MEMORY difference: 88806235 / 89161369 [-0.40%]
Total CPU difference: 19433.519999999953 / 19458.34999999997 [-0.13%]

Testing on Windows:
Total MEMORY difference: 55888066 / 55904007 [-0.03%]
Total CPU difference: 17985.402090298892 / 18535.836018698956 [-2.97%]

git

2016-06-24 12:57

administrator   ~0055415

Branch CR27622 has been deleted by inv.

SHA-1: b489733ac5547e8411122957788678e529f5229a

Related Changesets

occt: master a47d34ef

2016-06-20 14:40:48

kgv


Committer: bugmaster Details Diff
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 0027622
Affected Issues
0027622
mod - src/RWStl/RWStl.cxx Diff File
add - tests/bugs/stlvrml/bug27622 Diff File

Issue History

Date Modified Username Field Change
2016-06-20 14:31 Timo New Issue
2016-06-20 14:31 Timo Assigned To => gka
2016-06-20 14:31 Timo File Added: Design1.stl
2016-06-20 14:31 Timo Description Updated
2016-06-20 15:24 kgv Note Added: 0055230
2016-06-20 15:24 kgv Note Edited: 0055230
2016-06-20 17:36 kgv Summary STL file cannot be read => Data Exchange - STL file having less than 4 triangles cannot be read
2016-06-20 17:36 kgv Steps to Reproduce Updated
2016-06-20 17:40 git Note Added: 0055251
2016-06-20 17:41 kgv Note Added: 0055252
2016-06-20 17:41 kgv Severity minor => trivial
2016-06-20 17:41 kgv Status new => resolved
2016-06-20 18:23 gka Note Added: 0055253
2016-06-20 18:23 gka Assigned To gka => bugmaster
2016-06-20 18:23 gka Status resolved => reviewed
2016-06-20 18:25 apv Assigned To bugmaster => apv
2016-06-21 17:08 git Note Added: 0055311
2016-06-21 17:08 apv Test case number => bugs stlvrml bug27622
2016-06-21 17:45 apv Note Added: 0055315
2016-06-21 17:45 apv Assigned To apv => bugmaster
2016-06-21 17:45 apv Status reviewed => tested
2016-06-24 12:41 bugmaster Changeset attached => occt master a47d34ef
2016-06-24 12:41 bugmaster Status tested => verified
2016-06-24 12:41 bugmaster Resolution open => fixed
2016-06-24 12:57 git Note Added: 0055415
2016-12-09 16:31 aiv Status verified => closed
2016-12-09 16:37 aiv Fixed in Version => 7.1.0