<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.6944.0">
<TITLE>[vtkusers] Re: vtkRenderWindow()-&gt;EraseOff() produces blank window!Why?</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText93715 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT>Hi,</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>I think there might be an error in vtkBoundingBox 
GetCenter().</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>// Original</DIV>
<DIV dir=ltr>inline void vtkBoundingBox::GetCenter(double center[3]) 
const<BR>{<BR>&nbsp; center[0] = 0.5 * this-&gt;MaxPnt[0] + 
this-&gt;MinPnt[0];<BR>&nbsp; center[1] = 0.5 * this-&gt;MaxPnt[1] + 
this-&gt;MinPnt[1];<BR>&nbsp; center[2] = 0.5 * this-&gt;MaxPnt[2] + 
this-&gt;MinPnt[2];<BR>}</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>// My change</DIV>
<DIV dir=ltr>inline void vtkBoundingBox::GetCenter(double center[3]) 
const<BR>{<BR>&nbsp; center[0] = 0.5 * ( this-&gt;MaxPnt[0] + this-&gt;MinPnt[0] 
);<BR>&nbsp; center[1] = 0.5 * ( this-&gt;MaxPnt[1] + this-&gt;MinPnt[1] 
);<BR>&nbsp; center[2] = 0.5 * ( this-&gt;MaxPnt[2] + this-&gt;MinPnt[2] 
);<BR>}</DIV>
<DIV dir=ltr>&nbsp;</DIV>
<DIV dir=ltr>Cheers,</DIV>
<DIV dir=ltr>Theo.</DIV></DIV>

</BODY>
</HTML>