[vtkusers] Get number of cells

Isidro Moreno morenoisidro at yahoo.com.ar
Fri Jun 8 16:42:40 EDT 2007


Hi! Here's the situation:

vtkLineSource *line->vtkLineSource::New();
vtkPolyData *polydata->vtkPolyData::New();
...
...
polydata=line->GetOutput();
int nofc;
nofc=polydata->GetNumberOfCells();

1st) Why "GetNumberOfCells()" returns 0 ? ("line" it's just a straight line).
2st) polydata=line->GetOutput(): Is it the correct way to copy vtkPolyData? I've tried ShallowCopy() and DeepCopy(), but nothing happened.

I'm using vtk 5.0, thanks everybody!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070608/a457be74/attachment.htm>


More information about the vtkusers mailing list