<div class="gmail_quote">Would it be possible to add a SetNextCell(cell) function to itkMesh?<br><br>Now you have to do something like this:<br>unsigned int CellCounter = 0;<br>for (...)<br>{<br>cell = CreateCell;<br>mesh->SetCell(CellCounter, cell);<br>
CellCounter++;<br>}<br><br>If there was a <br>void itkMesh::SetNextCell(cell)<br>{<br> unsigned int NumCells = this->GetNumberOfCells();<br> this->SetCell(NumCells+1, cell);<br>}<br><br>there would be no need to keep track of CellCounter in the previous example.<br>
<br clear="all">Thanks,<br><br>David<br></div>