[vtkusers] When I try to visualize the polygonal Data I get an error about vtkPolData::ComputeBounds()

Cem DEMiRKIR cdemirkir at gmail.com
Thu Sep 28 12:03:57 EDT 2006


Hi All VTK community members,
    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 ?
 
// Iterate over cells's points

for (t = 0; t < 4; t++) 

{

for (cella[t]->InitTraversal(); cella[t]->GetNextCell(npts,pts); )

{

for (i = 0; i < npts; i++)

{

this->Points->GetPoint( pts[i], x );

this->Bounds[0] = (x[0] < this->Bounds[0] ? x[0] : this->Bounds[0]); // This
is the place when I get an access violation error

this->Bounds[1] = (x[0] > this->Bounds[1] ? x[0] : this->Bounds[1]);

this->Bounds[2] = (x[1] < this->Bounds[2] ? x[1] : this->Bounds[2]);

this->Bounds[3] = (x[1] > this->Bounds[3] ? x[1] : this->Bounds[3]);

this->Bounds[4] = (x[2] < this->Bounds[4] ? x[2] : this->Bounds[4]);

this->Bounds[5] = (x[2] > this->Bounds[5] ? x[2] : this->Bounds[5]);

doneOne = 1;

}

}

}

if (!doneOne)

{

vtkMath::UninitializeBounds(this->Bounds);

}

this->ComputeTime.Modified();

}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060928/c1708950/attachment.htm>


More information about the vtkusers mailing list