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 <mailto: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
    <mailto: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
        <mailto: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

Attachment: stlBuilder.pl
Description: Perl program

------------------------------------------------------------------------------
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

Reply via email to