<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="font-family: verdana; font-size: 13px; white-space: pre-wrap; ">There is a difference in implementation between vtk-5.0.2 and vtk-5.2.0.

The follow code fragment will work for vtk-5.0.2

</span><span class="Apple-style-span" style="white-space: pre-wrap; "><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">subset SetVOI $XminR $XmaxR $YminR $YmaxR 1 1</span></font></span><span class="Apple-style-span" style="font-family: verdana; font-size: 13px; white-space: pre-wrap; ">

but will have to be changed as follows for vtk-5.2.0, if you are ignoring z values.

</span><span class="Apple-style-span" style="white-space: pre-wrap; "><font class="Apple-style-span" face="Monaco" size="2"><span class="Apple-style-span" style="font-size: 10px;">subset SetVOI $XminR $XmaxR $YminR $YmaxR 0 0 </span></font></span></body></html>