[vtkusers] Problem getting correct results with vtkProjectedTerrainPath
Elvis Dowson
elvis.dowson at mac.com
Thu Nov 13 13:38:39 EST 2008
Hi Amy,
What is the correct way to retrieve the bounds of
the dataset? I get the following error when I try to do this.
# Get the physical xyz bounds of dataset
scan [[reader GetOutput] GetBounds] "%d %d %d %d %d %d" XminB XmaxB
YminB YmaxB ZminB ZmaxB
puts "Physical bounds of dataset: $XminB $XmaxB $YminB $YmaxB $ZminB
$ZmaxB"
Error
can't read "XmaxB": no such variable
can't read "XmaxB": no such variable
while executing
"puts "Physical bounds of dataset: $XminB $XmaxB $YminB $YmaxB $ZminB
$ZmaxB""
(file "/Users/elvis/Project/C4I/Source/tcl/
TestProjectedTerrainPathWithProbeFilter.tcl" line 28)
Best regards,
Elvis Dowson
On Nov 13, 2008, at 10:24 PM, Amy Squillacote wrote:
> Don't know if this will fix the problem, but I just noticed that
> XminR, XmaxR, etc. are from the extents of the dataset. The origin
> should be set using the Xmin, Ymin, and Zmin of the bounds.
>
> - Amy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081113/229502d9/attachment.htm>
More information about the vtkusers
mailing list