Hello Haim,
 as you know the dat format throws away the cell connectivity information (it 
only retains the point coordinates), 
so there's not generic way of recreating a vtp from it.
However, as in your case, we can probably infer the connectivity by the fact 
that lines are written as a sequential
list of points.

One question before I can suggest you a solution: how many lines are there per 
file (i.e. do your dat files contain
once centerline per file or do you have more?)

Best,


Luca


On Jul 4, 2013, at 1:40 PM, Haim Ezer wrote:

> Hello, Luca, everybody.
> 
> I wonder if there is a simple way, to convert many files, saved by VMTK in 
> dat format, to the vtp format.
> 
> I saved about a 100 centerlines, in the dat format, for the use in matlab, 
> and now I want to use it in VMTK.
> 
> VMTK doesn't seem to read this file format, although it saves in this format.
> 
> Thanks
> 
> Haim
>  
> --
> Haim Ezer, MD
> Department of Neurosurgery,
> The western Galilee hospital in Nahariya
> Israel
> 
> E mail: haime...@gmail.com ,haime...@yahoo.com
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
> 
> Build for Windows Store.
> 
> http://p.sf.net/sfu/windows-dev2dev_______________________________________________
> vmtk-users mailing list
> vmtk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vmtk-users

--
Luca Antiga, PhD
Cofounder and Principal Scientist, Orobix Srl
via L.A. Muratori 3, 24123 Bergamo, Italy

orobix: www.orobix.com
home: lantiga.github.com
twitter: twitter.com/lantiga

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to