| 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, [email protected] wrote:
|
------------------------------------------------------------------------------ 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 [email protected] https://lists.sourceforge.net/lists/listinfo/vmtk-users

