[vtkusers] Problem getting correct results with vtkProjectedTerrainPath

Amy Squillacote ahs at cfdrc.com
Mon Nov 10 09:31:43 EST 2008


Hi Elvis,

You could try using a vtkProbeFilter: 
http://www.vtk.org/doc/nightly/html/classvtkProbeFilter.html. Create an 
empty vtkImageData (sized and positioned to encompass the output of your 
vtkWarpScalar filter), and pass it as the "source" (2nd input) to 
vtkProbeFilter.

- Amy

Elvis Dowson wrote:
> Hi,
>        How can I convert  vtkPointSet to vtkImageData? The ouput of 
> vtkWrapScalar is vtkPointSetAlgorighm, and 
> vtkPointSetAlgorithm::GetOuput returns a vtkPointSet*.
>
> What I need as input to vtkProjectedTerrainPath, to get the scaled DEM 
> data in, is to convert the vtkPointSet* to a vtkImageData*.
>
> How can I achieve this? I have reproduced the vtkDataSet class diagram 
> below.
>
>
> ------------------------------------------------------------------------
>
>
>
>
> Best regards,
>
> Elvis Dowson
>
>
>
> On Nov 10, 2008, at 10:15 AM, Elvis Dowson wrote:
>
>> Hi,
>>         Is there any way I can converted the output of vtkWrapScalar 
>> to a vtkImageData object?
>>
>> This way I can directly take the output of the scaled DEM data and 
>> pass it as input to  vtkProjectedTerrainPath::SetSource(vtkImageData* )
>>
>> 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