Hi everyone,
 about the STL thing, the vtk writer used in vmtk supports ASCII files out of 
the box, only 
I haven't exposed that option at the script level until today.

I just pushed a commit on the source code repository to allow this:

... --pipe vmtksurfacewriter -ofile foo.stl -mode ascii

It works for stl, vtu, vtk, vtp, ply.

If you're in a rush, get these two files

https://raw.github.com/vmtk/vmtk/master/vmtkScripts/vmtksurfacewriter.py
https://raw.github.com/vmtk/vmtk/master/vmtkScripts/vmtkmeshwriter.py

and copy them over to your {installpath}/lib/vmtk/vmtk folder, replacing the 
old ones.
Note, it's the lib folder, not the bin folder (you'll find two files called 
vmtksurfacewriter 
and vmtkmeshwriter, without the py extension: they're not the right ones to 
replace).


Luca

PS: Richard, thanks a lot for sharing the script, very much appreciated.


On Nov 1, 2012, at 8:19 PM, Richard Downe wrote:

> Personally, I write my stl files myself, because I build my surfaces in 
> another program.  Attached is a perl script I've used for converting .off 
> files to .stl -- should be trivial to adapt it to python/iterate over a 
> vtkPolyData instead of .off input.
> -rd
> 
> On 11/01/2012 01:40 PM, Vikram Mehta wrote:
>> Hi Arjan,
>> 
>> Thanks alot for your response. I seem to have got all the data I needed. 
>> 
>> 
>> On a separate note,
>> 
>> Does anyone know how to save your surface file as an ASCII STL and not a 
>> binary one.
>> 
>> Thanks alot !
>> 
>> Vikram.
>> 
>> 
>> 
>> On Tue, Oct 16, 2012 at 9:47 PM, Arjan Geers <ajge...@gmail.com> wrote:
>> Hi Vikram, 
>> 
>> You could try this:
>> 
>> vmtksurfacereader -ifile /home/vm308/catheter.vtp --pipe vmtkcenterlines 
>> -seedselector openprofiles -ofile catheter_cl.dat
>> 
>> It should give you the coordinates of the centerline points in a 
>> human-readable format. 
>> 
>> Good luck with it, 
>> 
>> Arjan
>> 
>> On Tue, Oct 16, 2012 at 7:58 PM, Vikram Mehta <vvme...@gmail.com> wrote:
>> Dear VMTK users,
>> 
>> I have a surface reconstruction of a catheter within a coronary artery and 
>> have also generated the centerlines for it.
>> However, for further processing, I need the coordinates of the catheter 
>> centerline and was wondering if you all had any idea to do this ?
>> I tried using vmtkcenterlinegeometry but I might be doing something wrong,
>> 
>> vmtksurfacereader -ifile /home/vm308/catheter.vtp --pipe vmtkcenterlines 
>> -seedselector openprofiles --pipe  vmtkcenterlinegeometry -ofile 
>> catheter_clg.vtp
>> 
>> Ideally I would like a .txt file (basically a point cloud) - is this 
>> achievable ? 
>> 
>> Please advise.
>> 
>> Looking forward to your replies
>> 
>> Thanks in advance,
>> Vikram.
>> 
>> 
>> ------------------------------------------------------------------------------
>> Don't let slow site performance ruin your business. Deploy New Relic APM
>> Deploy New Relic app performance management and know exactly
>> what is happening inside your Ruby, Python, PHP, Java, and .NET app
>> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
>> http://p.sf.net/sfu/newrelic-dev2dev
>> _______________________________________________
>> vmtk-users mailing list
>> vmtk-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/vmtk-users
>> 
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_sfd2d_oct
>> 
>> 
>> _______________________________________________
>> vmtk-users mailing list
>> vmtk-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/vmtk-users
> 
> <stlBuilder.pl>------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_sfd2d_oct_______________________________________________
> vmtk-users mailing list
> vmtk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vmtk-users

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to