Hi Firas,
 rather than "meaningless" it's probably more "not what you were expecting".

The output of vmtkbranchgeometry is a dataset with only a few datapoints, one 
per branch,
whose coordinates have no geometric meaning. It's just a way of storing data 
(in fact the 
variable is called GeometryData, not Surface).
Anyway, if you output to a file with .dat extension you get a text file 
containing something like:

X Y Z Length Curvature Torsion Tortuosity GroupIds
0.0 0.0 0.0 0.973622536889 0.425082864761 -0.0446472699164 0.0102756315705 0.0
0.0 0.0 0.0 1.43302942538 0.386078435843 -1.60755773849 0.0128147969932 2.0
0.0 0.0 0.0 0.434081543474 0.74714836635 0.0 0.00548545895655 3.0

that is, for each non-blanked group you get length, curvature, torsion and 
tortuosity.

If you want to project it back to your centerlines, then for the time being 
you'll have to 
do it manually. However, it would be rather quick to add a Surface output to 
the script
with the quantities directly in there.

Hope this answered your question.


Luca


On Nov 20, 2010, at 9:05 PM, Firas Mualla wrote:

> Hi all,
> inside a python file, I have:
> 
>       tmplt = Template('vmtkbranchgeometry -ifile $branch_file1 -ofile
> $branch_geometry_file1')
>       command = 
> tmplt.substitute(branch_file1=branch_file,branch_geometry_file1=branch_geometry_file)
>       myPype = pypes.PypeRun(command)
> 
> the result is empty vtp (0 points, 0 cells).
> 
> I've noticed that some array names are not set, so I've set them:
> 
> tmplt = Template('vmtkbranchgeometry -ifile $branch_file1
> -radiusarray MaximumInscribedSphereRadius
> -groupidsarray GroupIds
> -blankingarray Blanking
> -ofile $branch_geometry_file1')
> 
> the result is a file with (5 points, 5 cells), but they are meaningless.
> 
> I am using vmtk 0.9.0 on Win xp, with Python shipped with vmtk. I
> tried also Pypepad, and got the same.
> I checked the input file (branch.vtp) and it contains all necessary arrays!
> 
> many thanks in advance
> 
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> vmtk-users mailing list
> vmtk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vmtk-users


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to