<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div> I was just reading the VTK book, and in it it mentions that you have to specify the dimensions, data spacing and origin.<br><div><br></div><div>In my example code, I only specified the data set dimension and I did not specify the origin and data spacing. </div><div><br></div><div>Now, I modified the code as follows, but still no luck. </div><div><br></div><div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"># Use a probe filter to obtain elevation data from the reconstructed surface</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">vtkImageData elevationData</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"> elevationData SetDimensions $XmaxR $YmaxR $ZmaxR</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"> elevationData SetOrigin 0 0 0</span></font></div><div><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;"> elevationData SetSpacing 1 1 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;"><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">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?</span></span></font></div><div><br></div><div></div></div></div></body></html>