<DIV>Hello clinton,</DIV>  <DIV>&nbsp;</DIV>  <DIV>Here is the loop which computes the difference with your suggestions incorporated....</DIV>  <DIV>&nbsp;</DIV>  <DIV><FONT size=2>  <div>vtkMatrix4x4 *pMatrix = vtkMatrix4x4::New();</div>  <div>pMatrix-&gt;DeepCopy( pOffScreenRenderer-&gt;GetActiveCamera()-&gt;GetCompositePerspectiveTransformMatrix(1,0,1) );</div>  <div>pMatrix-&gt;Invert();</div></FONT></DIV>  <DIV>&nbsp;</DIV>  <DIV><FONT color=#0000ff size=2>  <div>for</FONT><FONT size=2>( </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> i = 0 ; i &lt; wx ; i++ )</div>  <div>{</div>  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">  <div></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2>( </FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> j = 0 ; j &lt; wy ; j++ )</div>  <div>{</div>  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">  <div></FONT><FONT color=#0000ff size=2>long</FONT><FONT size=2> index = i * j;</div>  <div></FONT><FONT color=#0000ff
 size=2>float</FONT><FONT size=2> coons_depth, sphere_depth;</div>  <div>displayPoint[0] = i;</div>  <div>displayPoint[1] = j;</div>  <div>&nbsp;</div>  <div></div>  <div></FONT><FONT color=#008000 size=2>// get sphere z</div></FONT><FONT size=2>  <div>displayPoint[2] = pSphereZBuffer[index];</div>  <div>pOffScreenRenderer-&gt;SetDisplayPoint( displayPoint );</div>  <div>pOffScreenRenderer-&gt;DisplayToView();</div>  <div>pOffScreenRenderer-&gt;GetViewPoint( viewPoint );</div>  <div>pMatrix-&gt;MultiplyPoint( viewPoint , worldPoint );</div>  <div>sphere_depth = worldPoint[2] / worldPoint[3];</div>  <div>&nbsp;</div>  <div></div>  <div></FONT><FONT color=#008000 size=2>// get coons z</div></FONT><FONT size=2>  <div>displayPoint[2] = pCoonsZBuffer[index];</div>  <div>pOffScreenRenderer-&gt;SetDisplayPoint( displayPoint );</div>  <div>pOffScreenRenderer-&gt;DisplayToView();</div>  <div>pOffScreenRenderer-&gt;GetViewPoint( viewPoint );</div>  <div>pMatrix-&gt;MultiplyPoint( viewPoint ,
 worldPoint );</div>  <div>coons_depth = worldPoint[2] / worldPoint[3];</div>  <div></div>  <div></FONT><FONT color=#0000ff size=2>double</FONT><FONT size=2> diff = ( sphere_depth - coons_depth );</div>  <div>dblSphereVolume += diff;</div></BLOCKQUOTE>  <div>}</div></BLOCKQUOTE>  <div>}</div>  <div></div>  <div>printf( "\ncomputed Sphere volume = %f\n" , dblSphereVolume );</div></FONT><BR><BR>Note: forwarded message attached.</DIV><p>
        
                <hr size=1>Yahoo! Shopping<br> 
Find Great Deals on Holiday Gifts at <a href="http://us.rd.yahoo.com/mail_us/footer/shopping/*http://shopping.yahoo.com/;_ylc=X3oDMTE2bzVzaHJtBF9TAzk1OTQ5NjM2BHNlYwNtYWlsdGFnBHNsawNob2xpZGF5LTA1 
">Yahoo! Shopping</a>