<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=617473512-28092006>Hi All VTK community
members,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=617473512-28092006>
I'd like to visualize some polygonal data which is computed automatically by
some other function. I get an error about bound checkhing from the
vtkPolyData::ComputeBounds(). I give the error location from toolkit source in
the following lines. What kind of anomalities does my polygonal data contain ?
How can I determine the location of the problem ?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=617473512-28092006></SPAN></FONT> </DIV>
<DIV><FONT><SPAN class=617473512-28092006><FONT color=#ffffff>
<P></FONT><FONT face=Arial size=2>// Iterate over cells's points</FONT></P>
<P><FONT size=2><FONT face=Arial>for</FONT><FONT face=Arial> (t = 0; t < 4;
t++) </FONT></FONT></P>
<P><FONT face=Arial size=2>{</FONT></P>
<P><FONT size=2><FONT face=Arial>for</FONT><FONT face=Arial>
(cella[t]->InitTraversal(); cella[t]->GetNextCell(npts,pts);
)</FONT></FONT></P>
<P><FONT face=Arial size=2>{</FONT></P>
<P><FONT size=2><FONT face=Arial>for</FONT><FONT face=Arial> (i = 0; i <
npts; i++)</FONT></FONT></P>
<P><FONT face=Arial size=2>{</FONT></P>
<P><FONT size=2><FONT face=Arial>this</FONT><FONT
face=Arial>->Points->GetPoint( pts[i], x );</FONT></FONT></P>
<P><FONT size=2><FONT face=Arial>this->Bounds[0] = (x[0] <
this->Bounds[0] ? x[0] : this</FONT><FONT face=Arial>->Bounds[0]);<SPAN
class=617473512-28092006> // This is the place when I get an access violation
error</SPAN></FONT></FONT></P>
<P><FONT size=2><FONT face=Arial>this->Bounds[1] = (x[0] >
this->Bounds[1] ? x[0] : this</FONT><FONT
face=Arial>->Bounds[1]);</FONT></FONT></P>
<P><FONT size=2><FONT face=Arial>this->Bounds[2] = (x[1] <
this->Bounds[2] ? x[1] : this</FONT><FONT
face=Arial>->Bounds[2]);</FONT></FONT></P>
<P><FONT size=2><FONT face=Arial>this->Bounds[3] = (x[1] >
this->Bounds[3] ? x[1] : this</FONT><FONT
face=Arial>->Bounds[3]);</FONT></FONT></P>
<P><FONT size=2><FONT face=Arial>this->Bounds[4] = (x[2] <
this->Bounds[4] ? x[2] : this</FONT><FONT
face=Arial>->Bounds[4]);</FONT></FONT></P>
<P><FONT size=2><FONT face=Arial>this->Bounds[5] = (x[2] >
this->Bounds[5] ? x[2] : this</FONT><FONT
face=Arial>->Bounds[5]);</FONT></FONT></P>
<P><FONT face=Arial size=2>doneOne = 1;</FONT></P>
<P><FONT face=Arial size=2>}</FONT></P>
<P><FONT face=Arial size=2>}</FONT></P>
<P><FONT face=Arial size=2>}</FONT></P>
<P><FONT size=2><FONT face=Arial>if</FONT><FONT face=Arial>
(!doneOne)</FONT></FONT></P>
<P><FONT face=Arial size=2>{</FONT></P>
<P><FONT size=2><FONT face=Arial>vtkMath::UninitializeBounds(</FONT><FONT
face=Arial>this</FONT><FONT face=Arial>->Bounds);</FONT></FONT></P>
<P><FONT face=Arial size=2>}</FONT></P>
<P><FONT size=2><FONT face=Arial>this</FONT><FONT
face=Arial>->ComputeTime.Modified();</FONT></FONT></P>
<P><FONT face=Arial size=2>}</FONT></P></SPAN></FONT></DIV></BODY></HTML>