[Insight-users] SetNextCell function for itkMesh?
Alexandre GOUAILLARD
agouaillard at gmail.com
Wed Sep 16 04:59:03 EDT 2009
I can do that.
Luis, bill, there would be no modification to the current API, and it would
also be transparent for QEMesh, is it a go ?
alex.
On Wed, Sep 2, 2009 at 9:29 PM, David Doria
<daviddoria+itk at gmail.com<daviddoria%2Bitk at gmail.com>
> wrote:
> 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
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090916/1e056082/attachment.htm>
More information about the Insight-users
mailing list