<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Amy,</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Using %f worked. Here are the bounds &nbsp;</div><div><br></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Physical bounds of dataset: 557945.0 567725.0 5.10799e+06 5.12197e+06 682.0 682.0</span></font></div><div><br></div><div>What would my dataset spacing be, given the above data and the physical extent&nbsp;</div><div><br></div><div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Physical extent of dataset: 0 326 0 466 0 0</span></font></div><div><br></div><div>Here is the output of the program so far. I get some sort of error towards the end.</div><div><br></div><div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Dataset reader actual memory: 597</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Dataset reader no of points: 152709</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Physical extent of dataset: 0 326 0 466 0 0</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Physical bounds of dataset: 557945.0 567725.0 5.10799e+06 5.12197e+06 682.0 682.0</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Threshold filter no of cells : 151916</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Threshold filter no of points: 152709</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Geometry filter no of cells : 151916</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Geometry filter no of points: 152709</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Warp scalar no of cells : 151916</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Warp scalar no of points: 152709</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">Projected path filter no of cells : 1</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;"><br></span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">ERROR: In /Users/elvis/Tool/vtk-5.x/src/VTK/Filtering/vtkStreamingDemandDrivenPipeline.cxx, line 818</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">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.</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: In /Users/elvis/Tool/vtk-5.x/src/VTK/Rendering/vtkImageActor.cxx, line 267</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">vtkOpenGLImageActor (0x89ca00): This filter requires unsigned char scalars as input</span></font></div><div><br></div></div><div>Best regards,</div><div><br></div><div>Elvis&nbsp;</div><div><br></div><div><div><br></div></div></div><div><br></div><br><div><div>On Nov 13, 2008, at 10:48 PM, Amy Squillacote wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>You should also set the spacing of your vtkImageData so that its bounds match that of the dataset your probing.<br><br>- Amy<br><br>Amy Squillacote wrote:<br><blockquote type="cite">Try using %f instead of %d. Bounds is in floating-point values.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">- Amy<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br></div></blockquote></div><br></body></html>