[vtkusers] How to use output of vtkProjectedTerrainPath with vtkTubeFilter
Amy Squillacote
ahs at cfdrc.com
Tue Nov 11 09:54:16 EST 2008
Hi Elvis,
The vtkTubeFilter was creating output; you just couldn't see it since
the tube radius was set to 0.02, considering that the bounds of the DEM
dataset are 557945 567725 5.10799e+006 5.12197e+006 1364 3225. Try
setting the radius to something like 10 instead. (I was able to see the
tubed lines at that radius.)
- Amy
Elvis Dowson wrote:
> Hi Amy,
> I just checked it, yes, I am getting 57 cells on the
> output with the St. Helens DEM data file. Still no tube gets displayed.
>
> I am attaching the script with this email.
>
>
> ------------------------------------------------------------------------
>
>
> if you comment out the following code
>
> #vtkPolyDataMapper pathMapper
> # pathMapper SetInputConnection [projectedPaths GetOutputPort]
>
> and change the following line to
>
> vtkActor pathActor
> pathActor SetMapper pathMapper
> [pathActor GetProperty] SetColor 1 0 0
> [pathActor GetProperty] SetSpecular .3
> [pathActor GetProperty] SetSpecularPower 30
>
> you can see the regular line that is generated by vtkProjectedTerrainPath.
>
> When I pass it through the tube filter, I get nothing.
>
> Best regards,
>
> Elvis
>
>
>
> On Nov 11, 2008, at 6:06 PM, Amy Squillacote wrote:
>
>> Have you verified that you're getting output from
>> vtkProjectedTerrainPath? Try calling Update on projectedPaths, and
>> then call GetNumberOfCells() on its output.
>>
>> - Amy
>>
--
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