[Insight-users] SetNextCell function for itkMesh?

David Doria daviddoria+itk at gmail.com
Wed Sep 2 15:29:46 EDT 2009


Would it be possible to add a SetNextCell(cell) function to itkMesh?

Now you have to do something like this:
unsigned int CellCounter = 0;
for (...)
{
cell = CreateCell;
mesh->SetCell(CellCounter, cell);
CellCounter++;
}

If there was a
void itkMesh::SetNextCell(cell)
{
   unsigned int NumCells = this->GetNumberOfCells();
  this->SetCell(NumCells+1, cell);
}

there would be no need to keep track of CellCounter in the previous example.

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090902/6884f61a/attachment.htm>


More information about the Insight-users mailing list