Hi,
I was successfully able to obtain centerlines along my geometry. I'd like to sample the cross sectional areas long these centerlines and obtain a number of measurements from these. I followed this
thread and tried the following commands, first I broke them up as Yimeng suggested
vmtkcenterlineresampling -ifile <original_centerline> -length 0.01 -ofile <resampled_centerline>
vmtkcenterlinesections -ifile <surface_file>
-centerlinesfile <resampled_centerline> -ofile
<sections_along_centerline>
vmtksurfaceviewer -ifile <sections_along_centerline>
and then used the single command: vmtkcenterlines -ifile XX.stl -lenfth 0.01 --pipe vmtkcenterlineresampling --pipe vmtkcenterlinesections -i @vmtkcenterline.i -centerlines @vmtkcenterlineresampling.o --pipe vmtksurfaceviewer -i @vmtkcenterlinesections.o
The first method gives me an unbounded local error as follows:
Input vmtkcenterlineresampling members:
Id = 0
Disabled = 0
Centerlines = None
CenterlinesInputFileName = XXNOin.dat
Length = 0.01
CenterlinesOutputFileName = centerline_resampled.vtp
Reading Tecplot surface file.
Traceback (most recent call last):
File "/usr/bin/vmtk", line 16, in <module>
pipe.Execute()
File "/usr/lib/pymodules/python2.7/vmtk/pype.py", line 258, in Execute
scriptObject.IORead()
File "/usr/lib/pymodules/python2.7/vmtk/pypescript.py", line 512, in IORead
reader.Execute()
File "/usr/lib/pymodules/python2.7/vmtk/vmtksurfacereader.py", line 206, in Execute
self.ReadTecplotSurfaceFile()
File "/usr/lib/pymodules/python2.7/vmtk/vmtksurfacereader.py", line 98, in ReadTecplotSurfaceFile
self.PrintLog("Reading " + str(numberOfNodes)+" nodes.")
UnboundLocalError: local variable 'numberOfNodes' referenced before assignment
It is a problem that Centerlines = None? Using the single command above gave me a Runtime Error. I tried adding in scaling as well, since these vessels are quite small, to no avail. Any suggestions would be much appreciated.
Thank you,
Stephanie