<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>vtkUnstructureGrid Initialize() problem</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hello,</FONT>

<BR><FONT SIZE=2 FACE="Arial">&nbsp;&nbsp;&nbsp; I have an application where I am periodically generating one or more vtkUnstructuredGrids, adding scalar data, putting them through a pipeline for slicing and dicing, and outputting them to an xml file.&nbsp; The grid geometries and topologies could change every time this happens, so I have to start from scratch and rebuild the grids each time.&nbsp; If I call the Delete() method and get new instances every time, the code works OK.&nbsp; However, if I attempt to just call the Initialize() method, which is supposed to reset the grid and free associated memory, I get a segfault when I call the InsertNextCell() method.&nbsp; Is there some call I must make after Initialize() to prepare the grid for rebuilding?</FONT></P>

<P><FONT SIZE=2 FACE="Arial">&nbsp; Note that the grid is not part of the pipeline at the time all this happens.&nbsp; Also, I've printed an empty grid before and after Initialize(), and the only difference I see is the new grid has NumberOfPieces=1 and Piece = 0, while the Initialized grid has NumberOfPieces=0 and Piece=-1.&nbsp; I am using VTK 4.2.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Thank you,</FONT>
</P>

<P><FONT FACE="Times New Roman">//signed//</FONT>

<BR><FONT FACE="Times New Roman">RAYMOND C. MAPLE, Lt Col USAF</FONT>

<BR><FONT FACE="Times New Roman">Assistant Professor of Aerospace Engineering</FONT>

<BR><FONT FACE="Times New Roman">Air Force Institute of Technology</FONT>

<BR><FONT FACE="Times New Roman">DSN 785-3636 ext 4577</FONT>

<BR><FONT FACE="Times New Roman">Comm: (937) 255-3636 ext 4577</FONT>
</P>
<BR>

</BODY>
</HTML>