Hi Ido,
 you shouldn't use vmtkrenderer twice along the pipe:

vmtksurfacereader -ifile CT_centerlines.vtp   --pipe vmtkrenderer --pipe 
vmtksurfaceviewer  -array MaximumInscribedSphereRadius --pipe vmtksurfacereader 
-ifile CT_smoothed.vtp   --pipe vmtkrenderer --pipe vmtksurfaceviewer  -opacity 
0.25

Everytime you use a vmtkrenderer, you are basically instantiating a fresh 
rendering window. In fact, you don't need vmtkrenderer if you only use one 
vmtksurfaceviewer, because the viewer builds its internal renderer if it 
doesn't find one available along the pipe.

If you have to make all viewers share one renderer, you instantiate one early 
on along the pipe, and the viewers will automatically detect it and use it for 
placing their stuff in it. However, if you put another vmtkrenderer, the latter 
will replace the former, as in your case.

Long story short, here's how you should do it:

vmtksurfacereader -ifile CT_centerlines.vtp   --pipe vmtkrenderer --pipe 
vmtksurfaceviewer  -array MaximumInscribedSphereRadius --pipe vmtksurfacereader 
-ifile CT_smoothed.vtp   --pipe vmtksurfaceviewer  -opacity 0.25

But you can shorten everything this way (getting rid of the readers - in 
general you need to use them explicitly if you have to set options on them, 
otherwise the other scripts know how to read data the "standard" way):

vmtkrenderer --pipe vmtksurfaceviewer -ifile CT_centerlines.vtp -array 
MaximumInscribedSphereRadius --pipe vmtksurfaceviewer -ifile CT_smoothed.vtp 
-opacity 0.25

Best regards

Luca

On Jul 19, 2011, at 1:24 PM, ido yerushalmy wrote:

> Hi,
> I followed the Centerlines tutorial 
> (http://www.vmtk.org/Tutorials/Centerlines) and got good results.
> 
> During the process I saved the centerline as a *.vtp file and I have another 
> vtp file of the corresponding vessel.
> I am now trying to display the vessel and the centerline together but every 
> time I get only one of them.
> 
> Could anyone suggest how to view both of them together (using the 2 input 
> files)?
> 
> The commands I used are:
> vmtksurfacereader -ifile CT_centerlines.vtp   --pipe vmtkrenderer --pipe 
> vmtksurfaceviewer  -array MaximumInscribedSphereRadius --pipe 
> vmtksurfacereader -ifile CT_smoothed.vtp   --pipe vmtkrenderer --pipe 
> vmtksurfaceviewer  -opacity 0.25
> 
> Regards,
> Ido
> ------------------------------------------------------------------------------
> Magic Quadrant for Content-Aware Data Loss Prevention
> Research study explores the data loss prevention market. Includes in-depth
> analysis on the changes within the DLP market, and the criteria used to
> evaluate the strengths and weaknesses of these DLP solutions.
> http://www.accelacomm.com/jaw/sfnl/114/51385063/_______________________________________________
> vmtk-users mailing list
> vmtk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vmtk-users

------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to