[vtkusers] vtkPolyData to be used with vtkImageStencil.

Dean Inglis dean.inglis at sympatico.ca
Wed Oct 25 07:59:51 EDT 2006


Anja,

small addition: don't forget to change the expected number of cells:


            // Cell data.
            vtkCellArray* strips = vtkCellArray::New();

/********************************************** 
            strips->InsertNextCell(5);
/********************************************** 

            strips->InsertCellPoint(0);
            strips->InsertCellPoint(1);
            strips->InsertCellPoint(2);
            strips->InsertCellPoint(3);

/********************************************** close the loop
            strips->InsertCellPoint(0);
/**********************************************

Dean



More information about the vtkusers mailing list