[vtkusers] Problem getting correct results with vtkProjectedTerrainPath
Amy Squillacote
ahs at cfdrc.com
Tue Nov 11 10:32:50 EST 2008
Yes.
Elvis Dowson wrote:
> Hi Amy,
> You mean modify the code as follows:
>
> #
> ===========================================================================
> # Create probe filter
> #
> ===========================================================================
>
> # Use a probe filter to obtain elevation data from the reconstructed
> surface
>
> # Use a probe filter to obtain elevation data from the reconstructed
> surface
> vtkImageData elevationData
> elevationData SetDimensions $XmaxR $YmaxR $ZmaxR
>
> vtkProbeFilter probe
> probe SetInputConnection 0 [elevationData GetProducerPort]
> probe SetSourceConnection [surface GetOutputPort]
>
>
> vtkProjectedTerrainPath projectedPaths
> projectedPaths SetInput terrainPaths
> projectedPaths SetSource [probe GetOutput]
>
>
> I'm getting an application crash when I do this.
>
> Best regards,
>
> Elvis
>
> On Nov 11, 2008, at 6:18 PM, Amy Squillacote wrote:
>
>> I didn't read the error message closely enough before. The problem is
>> that SetInputConnection is expecting a vtkAlgorithmOutput as its
>> second parameter. Change the parameter from elevationData to
>> [elevationData GetProducerPort].
>>
>> - 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