[vtkusers] How to use output of vtkProjectedTerrainPath with vtkTubeFilter

Elvis Dowson elvis.dowson at mac.com
Tue Nov 11 03:17:34 EST 2008


Hi,
         I am trying to pass the output of vtkProjectedTerrainPath to  
vtkTubeFilter, to extract a thicker projected terrain path, but I just  
get a blank screen with the following code. What am I doing wrong?


vtkProjectedTerrainPath projectedPaths
   projectedPaths SetInput terrainPaths
   projectedPaths SetSource [reader GetOutput]
   projectedPaths SetHeightOffset 25
   projectedPaths SetHeightTolerance 5
   projectedPaths SetProjectionModeToNonOccluded
   projectedPaths SetProjectionModeToHug

vtkTubeFilter pathTube
   pathTube SetNumberOfSides 8
   pathTube SetInputConnection [projectedPaths GetOutputPort]
   pathTube SetRadius .02

vtkPolyDataMapper pathTubeMapper
   pathTubeMapper SetInputConnection [pathTube GetOutputPort]

vtkActor paths
   paths SetMapper pathTubeMapper
   [paths GetProperty] SetColor 1 0 0
   [paths GetProperty] SetSpecular .3
   [paths GetProperty] SetSpecularPower 30


Best regards,

Elvis Dowson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081111/8e310323/attachment.htm>


More information about the vtkusers mailing list