[Insight-users] class to read a particular vtk volume file format

Luis Ibanez luis.ibanez at kitware.com
Tue Mar 17 19:11:49 EDT 2009


Hi Luca,

We currently don't have in ITK a reader that can load triangle strips
from a VTK file.


    It would be a great assignment for a course project...   :-)


If anybody out there is looking for project ideas that students could
implement in a couple of weeks, while having fun with 3D graphidcs...
well, here is a good one.

Of course, if will be great if the hypothetical students submitted
the resulting code as a contribution to the Insight Journal   :-)

          http://www.insight-journal.org/



     Luis


-------------------
Luca Ramundo wrote:
> 
> 
> Good morning to everybody..
> I just realized that itk::VTKPolyDataReader can't read vtk volume file
> generated by 3d slicer, because they are in this format:
> 
> # vtk DataFile Version 3.0
> vtk output
> ASCII
> DATASET POLYDATA
> 
> POINTS 1133020 float
> 199.136 -150.881 -239.5 199.622 -151.367 -239.5 198.65 -151.367 -239.5
> 199.136 -151.853 -239.5 -25.7835 66.3319 -237.304 -25.3113 66.777 -236.915
> ....
> TRIANGLE_STRIPS 445653 3330447
> 5 3 1 157 1004315 1004323
> 4 1004312 1004317 2 1004316
> ....
> POINT_DATA 1133020
> NORMALS Normals float
> 0.595081 0.790784 0.143313 0.705415 -0.692988 0.148853 -0.552367 
> -0.827869 0.0975907
> 0.699426 -0.699448 0.146886 0.326156 0.151973 -0.93302 0.428621 0.361994 
> -0.827795
> 0.630414 -0.0941555
> ....
> 
> while itk::VTKPolyDataReader research for polygons line! :-(
> 
> Does it exist a class reader for my particular type of file?
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> Organizza, modifica e condividi le tue foto. Scarica Raccolta foto! 
> <http://clk.atdmt.com/GBL/go/136430508/direct/01/>
> ------------------------------------------------------------------------
> Chiavette USB. addio! Attiva SkyDrive! 
> <http://clk.atdmt.com/GBL/go/136422321/direct/01/>
> 
> 
> ------------------------------------------------------------------------
> 
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list