Hi Luca,
thanks a million! This works fine!
But is there also a way to define different radii to the single centerline-points (I tried some things with Paraview, but wasn't successful)? At the moment I get the same radius (the value defined in the filter) for each segment and cannot change this. But I would like to enlarge each MaximumInscribedSphereRadius by the same value (i.e. R1+0.2,R2+0.2,...,Rn+0.2) (the new geometry should surround my former geometry).
Thank you for your help!
Regine
Gesendet: Donnerstag, 24. Mai 2012 um 09:56 Uhr
Von: "Luca Antiga" <luca.ant...@orobix.com>
An: richschm...@web.de
Cc: "Berkowitz, Benjamin M" <benjamin-berkow...@uiowa.edu>, "<vmtk-users@lists.sourceforge.net>" <vmtk-users@lists.sourceforge.net>
Betreff: Re: [vmtk-users] change radius at centerlinemodeller
Von: "Luca Antiga" <luca.ant...@orobix.com>
An: richschm...@web.de
Cc: "Berkowitz, Benjamin M" <benjamin-berkow...@uiowa.edu>, "<vmtk-users@lists.sourceforge.net>" <vmtk-users@lists.sourceforge.net>
Betreff: Re: [vmtk-users] change radius at centerlinemodeller
Hi Regine and Ben,
indeed the tec solution (or also the vtk text format - .vtk extension, not .vtp) is a good one.

I think I found an interactive solution as well that requires Paraview (www.paraview.org).
Open your centerlines file in Paraview (the original centerlienes, in vtp format).
On the menu, go to View -> Selection Inspector.
Click on the point selection tool (it's in the toolbar, see screenshot).
Drag your mouse on the rendering window above the centerlines, you should see
pink squares highlighting the points you selected.
At the same time, you should see a list of point ids in the selection inspector.
Go to Filters -> Alphabetical -> Programmable Filter.
Copy and paste the following code in the "Script" text box. Replace the ids with the
list of the ids you see in the selection inspector. Set the radius to a sensible value.
ids = [10,11,12,13]
radius = 1000.0
pdi = self.GetPolyDataInput()
pdo = self.GetPolyDataOutput()
pdo.DeepCopy(pdi)
for id in ids:
pdo.GetPointData().GetArray("MaximumInscribedSphereRadius").SetValue(id,radius)
Click on the Apply button. At this point, the output dataset should have the new radius.
You can repeat the operation as many times as you need.
When you're done, you can save your dataset (File->Save Data) in vtp format.
Cheers
Luca

On May 24, 2012, at 9:22 AM, richschm...@web.de wrote:
------------------------------------------------------------------------------
Hi Ben,thank you for your help!I saved the centerline file as *.tec now and the data looks good, but I cannot create a geometry out of this file via centerlinemodeller (I tried it several times and got a file, but this is only 1 kB and I cannot open it). Another thing is, is there a software, with which I can edit my data (to change the radius) and save the file as *.tec afterwards again (we don't have tecplot in our group)?Thanks a million for all ideas and help!RegineGesendet: Mittwoch, 23. Mai 2012 um 14:34 Uhr
Von: "Berkowitz, Benjamin M" <benjamin-berkow...@uiowa.edu>
An: "Regine Schmidt" <richschm...@web.de>
Cc: "<vmtk-users@lists.sourceforge.net>" <vmtk-users@lists.sourceforge.net>
Betreff: Re: [vmtk-users] change radius at centerlinemodellerRegine,You can export it and read it in as a .tec (tecplot file). VTK has problems reading in .dat files from what I've seen, but .tec files are also ANSII and are able to be read in.
Ben
On May 23, 2012, at 2:47 AM, Regine Schmidt wrote:
------------------------------------------------------------------------------Dear all,
I am using the vmtkcenterlinemodeller and wanted to use a larger radius for my modell construction as that stored in the centerline file. My original plan was to save the centerline file as *.dat and change the radius manual (using excel or sth. else), but I cannot use the centerline.dat file to create my modell via vmtkcenterlinemodeller afterwards (it just works with the centerline.vtp file and at this type of file I don't know how to change the radius).
Does anybody have an idea how I could solve this problem?
Thanks a million for all ideas and help!
Regine
Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App für iPhone und Android.
https://produkte.web.de/freemail_mobile_startseite/
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
Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App für iPhone und Android.
https://produkte.web.de/freemail_mobile_startseite/
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
Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App für iPhone und Android. https://produkte.web.de/freemail_mobile_startseite/ |
------------------------------------------------------------------------------ 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