[vtkusers] help with updateCellCount
Christos Panagiotou
cpanagio at cs.ucl.ac.uk
Thu Aug 28 21:55:55 EDT 2003
hey there
i have a problem with vtkCellArray
i am trying to implement something like the following:
cellArray->InsertNextCell(?)
cellArray->InsertCellPoint(id)
i dont know the number of points at the time i create the cell...
how can i use UpdateCellCount to do this?
is it something like:
x=1
cellArray->InsertNextCell(x)
cellArray->InsertCellPoint(id)
cellArray->UpdateCellCount(x+1)
or
for(int id=0;id<80;id++){
cellArray->InsertNextCell(10000) // just a big number
cellArray->InsertCellPoint(id)
}
cellArray->UpdateCellCount(79) // to reduce number of cells?
and if it is something like the above how do i close the cell? is it
called automatically when i call InsertNextCell again?
i successfuly populate the first cell however after this, the next cells
have 0 number of points inside
i dont get it...
i would appreciate any help
i am really stack in this 3-4 days now and i dont know what i do wrong
thanks
chris
More information about the vtkusers
mailing list