Hello Merih, if I understood your need correctly, you need to specify a centerline because the extension you want is not straight, is that correct?
In this case, at least for the moment, no, it's not possible to have flow extensions follow centerlines. Centerlines are currently only used to estimate the direction along which flow extensions are generated. There is something you can do, though: you can merge the surface with the tube surface generated from your centerline. 1. Use vmtksurfacemodeller to generate an image containing the signed distance from the surface 2. Use vmtkcenterlinemodeller with your centerline in input to generate an implicit representation (again an image) of your tube surface 3. Take the pixel-wise minimum of the two images to merge the two shapes 4. Extract the merged surface using vmtkmarchingcubes The pipe should look more or less like this: vmtksurfacenormals -ifile surface.vtp --pipe vmtksurfacemodeller -samplespacing 0.05 --pipe vmtkcenterlinemodeller -ifile centerline.vtp -radiusarray Radius -negate 1 --pipe vmtkimagecompose -i @vmtksurfacemodeller.o -i2 @vmtkcenterlinemodeller.o -operation min --pipe vmtkmarchingcubes -ofile mergedsurface.vtp Note that I chose a samplespacing of 0.05 (it's the spacing of the signed distance image) but it might be too large or too small for you, just tune it according to your needs. Note also that the above could run for a long time if you specify a very small samplespacing. Hope this works for you Luca On Jan 20, 2012, at 10:23 AM, Merih Cibis wrote: > Hi Luca, > > I want to make a flowextension, but I would like to use a predefined > centerline for the extension, which I can provide as an input. Is that > possible? > > If yes, > > Let me say that the extension centerline file is cent.dat (including x,y,z > and radius), should that include the centerline of the existing geometry > or only the centerline of the extension? > > > If this is not possible, can I then merge two geometries in VMTK? > > Thank you very much , > > Kind Regards, > Merih Cibis > > > > ------------------------------------------------------------------------------ > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > _______________________________________________ > vmtk-users mailing list > vmtk-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/vmtk-users ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ vmtk-users mailing list vmtk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vmtk-users