<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Amy,</div><div> What is the correct way to retrieve the bounds of the dataset? I get the following error when I try to do this.</div><div><br></div><div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"># Get the physical xyz bounds of dataset</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">scan [[reader GetOutput] GetBounds] "%d %d %d %d %d %d" XminB XmaxB YminB YmaxB ZminB ZmaxB</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">puts "Physical bounds of dataset: $XminB $XmaxB $YminB $YmaxB $ZminB $ZmaxB"</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br></span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Error</span></font></div><div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">can't read "XmaxB": no such variable</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">can't read "XmaxB": no such variable</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"> while executing</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">"puts "Physical bounds of dataset: $XminB $XmaxB $YminB $YmaxB $ZminB $ZmaxB""</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"> (file "/Users/elvis/Project/C4I/Source/tcl/TestProjectedTerrainPathWithProbeFilter.tcl" line 28)</span></font></div></div></div><div><br></div><div><br></div><div>Best regards,</div><div><br></div><div>Elvis Dowson</div><br><div><div>On Nov 13, 2008, at 10:24 PM, Amy Squillacote wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>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.<br><br>- Amy<br><br></div></blockquote></div></body></html>