MantisBT - VTK
View Issue Details
0015411VTK(No Category)public2015-04-06 07:282016-07-21 14:21
Edson Tadeu M. Manoel 
 
normalminorhave not tried
closedfixed 
6.0.0 
 
TBD
incorrect functionality
0015411: vtkSTLReader is not able to read STL file with multiple patches
NOTE: I've already opened a merge request here: https://gitlab.kitware.com/vtk/vtk/merge_requests/89 [^]


If we have an ASCII STL file with multiple patches, in the format:

<code>
solid wing_1
    facet normal -0.988028 0.000000 -0.154276
        outer loop
           vertex 5.111373 2.636347 1.956025
           vertex 5.111609 3.636347 1.948793
           vertex 5.111373 3.636347 1.956025
        endloop
    endfacet
    facet normal -0.988028 -0.000000 -0.154276
        outer loop
           vertex 5.111609 3.636347 1.948793
           vertex 5.111373 2.636347 1.956025
           vertex 5.111609 2.636347 1.948793
        endloop
    endfacet
   ...
    facet normal -0.000004 1.000000 -0.000004
        outer loop
           vertex 5.322488 2.636348 1.971589
           vertex 5.111609 2.636347 1.948793
           vertex 5.118849 2.636347 1.940065
        endloop
    endfacet
endsolid wing_1
solid wing_2
    facet normal -0.988028 0.000000 -0.154275
        outer loop
           vertex 5.516308 2.636347 2.030015
           vertex 5.514788 3.636347 2.022941
           vertex 5.516308 3.636347 2.030015
        endloop
    endfacet
    facet normal -0.988028 -0.000000 -0.154275
        outer loop
           vertex 5.514788 3.636347 2.022941
           vertex 5.516308 2.636347 2.030015
           vertex 5.514788 2.636347 2.022941
        endloop
    endfacet
    ...
    facet normal -0.000004 1.000000 -0.000004
        outer loop
           vertex 5.724917 2.636348 1.994043
           vertex 5.514788 2.636347 2.022941
           vertex 5.519701 2.636347 2.012721
        endloop
    endfacet
endsolid wing_2
</code>

The vtkSTLReader is not able to read it, giving the following error:

<code>
vtkSTLReader (...): STLReader: error while reading file ... at line ...: unable to read reading point.
</code>
No tags attached.
Issue History
2015-04-06 07:28Edson Tadeu M. ManoelNew Issue
2016-07-06 16:47Berk GeveciStatusbacklog => expired
2016-07-21 14:21Haocheng LiuNote Added: 0036541
2016-07-21 14:21Haocheng LiuStatusexpired => closed
2016-07-21 14:21Haocheng LiuResolutionopen => fixed

Notes
(0036541)
Haocheng Liu   
2016-07-21 14:21   
Fixed in MR!592.