[vtkusers] Problem with STL Files

Lays Rodrigues laysrodriguessilva at gmail.com
Tue Nov 10 16:32:33 EST 2015


Well, after a few researchs, i discover this:
with STL's at the binary forms, works well, the problem is when the STL
file is in format ASCII.
Well, I could not go much further than that. I looked all class
vtkSTLReader provided on github (
https://github.com/Kitware/VTK/blob/master/IO/Geometry/vtkSTLReader.cxx)
and analyzed with my file of Tardis. The error happens when the first point
was readed. I think(?)
0 ->solid Object01 (Ignore)
1->  facet normal 0.000000e+000 -0.000000e+000 -1.000000e+000 (LineCount=1)
at line 350/ (LineCount=2) at line 353
2->    outer loop
*3->      vertex -6.820349e-001 -6.797730e-001 3.191896e+001*
4->      vertex -6.820349e-001 6.797730e-001 3.191896e+001
5->      vertex 6.820349e-001 6.797730e-001 3.191896e+001
6->    endloop
7->  endfacet
What I find funny is that, when I compile the file provided by VTK Wiki (
http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadSTL) everything works
normally. The problem is when I generate this code inside my App. At my
previous e-mail is my function, i just change 3 lines to work at my project.
I'm really confused.
Please, help me to discover whats going on.
Thanks

LineCount 1 at line 350
Read Line at line 351: facet normal 0.000000e+000 -0.000000e+000
-1.000000e+000
LineCount 2 at line 353
Test Failed, Jump to line 367
Read Line -> outer loop at line 367
LineCount 3 at line 371
Read one String and 3 Floats -> vertex -6.820349e-001 -6.797730e-001
3.191896e+001 at line 373
throw error ate line 375

Could be problem of my SO(Fedora 22)? Because my friend in ArchLinux open
the App and works fine.
Thanks


2015-11-07 21:33 GMT-02:00 Lays Rodrigues <laysrodriguessilva at gmail.com>:

> Hi guys, good night!
> I have made a function to render Stl files on my qtApp. However, dont work
> with a STL that worked before. At the first time that I open a Doctor Who
> Tardis worked fine(a few days ago), but when i try to open again(today)
> this error happens:
> ------------------
> *^CERROR: In /home/lays/Downloads/VTK-6.3.0/IO/Geometry/vtkSTLReader.cxx,
> line 461*
> *vtkSTLReader (0x463f570): STLReader: error while reading file
> /home/lays/Downloads/Doctor_Who_Tardis/Doctor_Who_Tardis.STL at line 3:
> unable to read point.*
>
> *ERROR: In
> /home/lays/Downloads/VTK-6.3.0/Common/ExecutionModel/vtkExecutive.cxx, line
> 784*
> *vtkCompositeDataPipeline (0x36c2040): Algorithm vtkSTLReader(0x463f570)
> returned failure for request: vtkInformation (0x359d700)*
> *  Debug: Off*
> *  Modified Time: 148542*
> *  Reference Count: 1*
> *  Registered Events: (none)*
> *  Request: REQUEST_DATA*
> *  FROM_OUTPUT_PORT: 0*
> *  ALGORITHM_AFTER_FORWARD: 1*
> *  FORWARD_DIRECTION: 0*
> ------------------
> It happens with other STL files to.
>
> The function is this:
>
> http://pastebin.com/qPzTsidp
>
> Any tips for what happening?
> Thanks!
> --
> __
> *Lays Rodrigues*
> *Developer Front-End at Br-Print3D Project*
> *Student of Computer Science at UFF/PURO*
> Organizadora da Semana da Computação UFF-PURO
> www.facebook.com/semanacomputacaopuro
> www.facebook.com/brprint3d
>
>
>
>


-- 
__
*Lays Rodrigues*
*Developer Front-End at Br-Print3D Project*
*Student of Computer Science at UFF/PURO*
Organizadora da Semana da Computação UFF-PURO
www.facebook.com/semanacomputacaopuro
www.facebook.com/brprint3d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151110/8ec0febd/attachment.html>


More information about the vtkusers mailing list