[vtkusers] vtkCutter + quadratic cells + invalid heap allocation size + VTK 4.5
Mathieu Malaterre
mathieu.malaterre at kitware.com
Fri Apr 23 10:04:20 EDT 2004
John,
Could you please give a try to the latest version of
vtkQuadraticHexahedron ? I guess you are building your own VTK, so this
should be easy just go to:
http://www.vtk.org/cgi-bin/cvsweb.cgi/VTK/Common/vtkQuadraticHexahedron.cxx
And click on 'download' right next to 'revision 1.23'. Then simply copy
the file downloaded to VTK/Common. Go to your VTK bin directory and
build it.
Then try your example again. If this doesn't work, we'll have to work
on an example code so that I can reproduce the bug.
Thanks for your time
Mathieu
John Platt wrote:
> Hi all,
>
>
>
> I am getting a memory exception cutting quadratic hexes after rotating
> the plane widget for a few seconds.
>
>
>
> There is some unusual behaviour in the following code :
>
>
>
> void vtkQuadraticHexahedron::Subdivide(vtkPointData *inPd, vtkCellData
> *inCd,
>
> vtkIdType cellId)
>
> {
>
> …..
>
> //Copy point and cell attribute data
>
> this->PointData->CopyAllocate(inPd,27);
>
>
>
> Each time the point data is copied, the number of arrays in the field
> increases by 1. So after cutting 32 hexes I get 34 arrays (only 2 of
> these are in the input data). This number keeps growing as the plane is
> moved.
>
>
>
> I don’t think this is helping. Has anybody any suggestions for a solution?
>
>
>
> The particular version of vtkQuadraticHexahedron is 1.21.
>
>
>
> Apologies in advance if this has already been resolved.
>
>
>
> Many thanks,
>
>
>
> John.
>
>
>
>
>
>
>
More information about the vtkusers
mailing list