[vtkusers] Problem getting correct results with vtkProjectedTerrainPath

Amy Squillacote ahs at cfdrc.com
Thu Nov 13 12:31:34 EST 2008


That should say "You *need to* have the origin set..." Please excuse the 
typo.

Amy Squillacote wrote:
> You have the origin set to $XminR $YminR $ZminR rather than 0 0 0. The 
> dataset you're trying to sample onto needs to be aligned in 3D space 
> with grid that the values are coming from.
>
> - Amy
>
> Elvis Dowson wrote:
>> Hi,
>>        I was just reading the VTK book, and in it it mentions that 
>> you have to specify the dimensions, data spacing and origin.
>>
>> In my example code, I only specified the data set dimension and I did 
>> not specify the origin and data spacing.
>> Now, I modified the code as follows, but still no luck.
>> # Use a probe filter to obtain elevation data from the reconstructed 
>> surface
>> vtkImageData elevationData
>>   elevationData SetDimensions $XmaxR $YmaxR $ZmaxR
>>   elevationData SetOrigin 0 0 0
>>   elevationData SetSpacing 1 1 1
>>
>> I have attached the tcl script with this email. Could someone help me 
>> get the vtkProbeFilter to correctly sample the new scalar height 
>> field data into a vtkImageData object?
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>> 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