[vtkusers] How to use output of vtkProjectedTerrainPath with vtkTubeFilter
Amy Squillacote
ahs at cfdrc.com
Tue Nov 11 09:06:56 EST 2008
Have you verified that you're getting output from
vtkProjectedTerrainPath? Try calling Update on projectedPaths, and then
call GetNumberOfCells() on its output.
- Amy
Elvis Dowson wrote:
> 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
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
--
Amy Squillacote Phone: (256) 726-4839
Computer Scientist Fax: (256) 726-4806
CFD Research Corporation Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL 35805
More information about the vtkusers
mailing list