Hi Nacho,
happy to see you onboard.
Unfortunately you stumbled upon a known bug with the 0.9 release. Hopefully we
will be able to release a new one soon.
The quick and dirty workaround is the following: locate the
vmtkcenterlinegeometry.py file in /usr/share/pyshared/vmtk/
and add the following lines to it:
centerlineGeometry.SetLengthArrayName('Length')
centerlineGeometry.SetTortuosityArrayName('Tortuosity')
Save the file and it should work.
Hope this solves it.
Best regards!
Luca
On Aug 29, 2011, at 1:10 PM, Nacho Larrabide wrote:
> Hi vmtk users and developers,
>
> I'm doing my first steps with vmtk and trying to get the centerline of a
> vascular geometry (ICA with an aneurysm). I'm doing this from python2.6 with
> the script that follows:
>
> #start script
> from vmtk import pypes
> from vmtk import vmtkscripts
>
> #compute centerline
> myArgsCl = 'vmtksurfacereader -ifile g1_b.vtk --pipe vmtkcenterlines -ofile
> g1_cl.vtp'
> myPypeCl = pypes.PypeRun(myArgsCl)
>
> # compute centerline attributes
> myArgsAttr = 'vmtkcenterlineattributes -ifile g1_cl.vtp -ofile g1_cl_at.vtp'
> myPypeAttr = pypes.PypeRun(myArgsAttr)
>
> # compute centerline geometry
> myArgsClGeom = 'vmtkcenterlinegeometry -ifile g1_cl.vtp -ofile g1_cl_gm.vtp'
> myPypeClGeom = pypes.PypeRun(myArgsClGeom)
> #end script
>
> I'm using vmtk0.9 on ubuntu installed from the package repository (following
> the instructions on the web, I'm working on an Ubuntu10.04 Lucid
> workstation). When I run the script I'm getting the following error for the
> vmtkcenterlinegeometry script (the rest goes smooth):
>
> Creating vmtkCenterlineGeometry instance.
> Automatic piping vmtkcenterlinegeometry
> Parsing options vmtkcenterlinegeometry
> CenterlinesInputFileName = g1_cl.vtp
> CenterlinesOutputFileName = g1_cl_gm.vtp
> Explicit piping vmtkcenterlinegeometry
> Input vmtkcenterlinegeometry members:
> Id = 0
> Disabled = 0
> Centerlines = None
> CenterlinesInputFileName = g1_cl.vtp
> CurvatureArrayName = Curvature
> TorsionArrayName = Torsion
> FrenetTangentArrayName = FrenetTangent
> FrenetNormalArrayName = FrenetNormal
> FrenetBinormalArrayName = FrenetBinormal
> LineSmoothing = 0
> OutputSmoothedLines = 0
> NumberOfSmoothingIterations = 100
> SmoothingFactor = 0.1
> CenterlinesOutputFileName = g1_cl_gm.vtp
> Reading VTK XML surface file.
> Executing vmtkcenterlinegeometry ...
> ERROR: In
> /build/buildd/vmtk-0.9.0/vtkVmtk/ComputationalGeometry/vtkvmtkCenterlineGeometry.cxx,
> line 118
> vtkvmtkCenterlineGeometry (0x9103278): LengthArrayName not specified
>
> I see that there is a -lengtharray option for the vmtkbranchgeometry script,
> but not for vmtkcenterlinegeometry...¿?
>
> Do you know how to solve this or what I'm doing wrong?
>
> Thanks in advance for your help. The library is great.
>
> Best,
>
> --
> Nacho
> ------------------------------------------------------------------------------
> EMC VNX: the world's simplest storage, starting under $10K
> The only unified storage solution that offers unified management
> Up to 160% more powerful than alternatives and 25% more efficient.
> Guaranteed.
> http://p.sf.net/sfu/emc-vnx-dev2dev_______________________________________________
> vmtk-users mailing list
> vmtk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vmtk-users
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users