[vtkusers] Problem getting correct results with vtkProjectedTerrainPath

Elvis Dowson elvis.dowson at mac.com
Thu Nov 13 14:40:43 EST 2008


Hi Amy,
                  Using %f worked. Here are the bounds

Physical bounds of dataset: 557945.0 567725.0 5.10799e+06 5.12197e+06  
682.0 682.0

What would my dataset spacing be, given the above data and the  
physical extent

Physical extent of dataset: 0 326 0 466 0 0

Here is the output of the program so far. I get some sort of error  
towards the end.

Dataset reader actual memory: 597
Dataset reader no of points: 152709
Physical extent of dataset: 0 326 0 466 0 0
Physical bounds of dataset: 557945.0 567725.0 5.10799e+06 5.12197e+06  
682.0 682.0
Threshold filter no of cells : 151916
Threshold filter no of points: 152709
Geometry filter no of cells : 151916
Geometry filter no of points: 152709
Warp scalar no of cells : 151916
Warp scalar no of points: 152709
Projected path filter no of cells : 1


ERROR: In /Users/elvis/Tool/vtk-5.x/src/VTK/Filtering/ 
vtkStreamingDemandDrivenPipeline.cxx, line 818
vtkStreamingDemandDrivenPipeline (0x62323b0): The update extent  
specified in the information for output port 0 on algorithm  
vtkTrivialProducer(0x6232070) is 0 325 0 465 0 0, which is outside the  
whole extent 0 325 0 465 0 -1.

ERROR: In /Users/elvis/Tool/vtk-5.x/src/VTK/Rendering/ 
vtkImageActor.cxx, line 267
vtkOpenGLImageActor (0x89ca00): This filter requires unsigned char  
scalars as input

Best regards,

Elvis




On Nov 13, 2008, at 10:48 PM, Amy Squillacote wrote:

> You should also set the spacing of your vtkImageData so that its  
> bounds match that of the dataset your probing.
>
> - Amy
>
> Amy Squillacote wrote:
>> Try using %f instead of %d. Bounds is in floating-point values.
>>
>> - Amy
>>
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081113/5a1c6e62/attachment-0001.htm>


More information about the vtkusers mailing list