Joao,
This is pretty much the same format for all python executions of vmtkscripts.
To see where I'm getting this, look at the 'Variable' column of the vmtk
scripts reference<http://www.vmtk.org/VmtkScripts/vmtkscripts> for a particular
function.
At the beginning of your scripts:
from vmtk import vmtkscripts
read in file:
reader = vmtkscripts.vmtkSurfaceReader()
reader.InputFileName = 'foo.vtp'
reader.Execute()
Create a float list of the source and seed points:
centerlines = vmtkscripts.vmtkCenterlines()
centerlines.Surface = reader.Surface
centerlines.Execute()
write your surface:
writer = vmtkscripts.vmtkSurfaceWriter()
writer.Surface = centerlines.Centerlines
writer.OutputFileName = 'foo_centerlines.vtp'
writer.Execute()
Ben
On Jul 31, 2012, at 8:35 AM, João Domingos
<joao.sousa.domin...@gmail.com<mailto:joao.sousa.domin...@gmail.com>> wrote:
Dear vmtk users,
Does anyone know how to use/call the following line in python? Also, where can
I introduce the seeds in the same line so everything is done automatically in
one line??
vmtkcenterlines -ifile foo.vtp -ofile foo_centerlines.vtp
Many thanks,
Joao
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net<mailto:vmtk-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/vmtk-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users