[vtkusers] vtkPlaneSource

lisa hughes lost_bits1110 at hotmail.com
Fri Feb 20 20:02:08 EST 2004


Hello,
I have created a vtkPlaneSource object and want to access the quad cells 
created by the plane source
But first i need to know the number of cells created
Isnt this just the XResolution times YResolution?? so in my case I should 
get 900 cells?  But the following code outputs 0 cells!! what is wrong with 
what im' doing?  Thanks,
Lisa

vtkPlaneSource *ColorBlock = vtkPlaneSource::New();
ColorBlock->SetOrigin(0,0,0);
ColorBlock->SetPoint1(5,0.5,0);
ColorBlock->SetPoint2(0,5,0);
ColorBlock->SetResolution(30,30);
ColorBlock->SetNormal(0,1,0);


vtkPolyData *SetOfQuadCells = vtkPolyData::New();
SetOfQuadCells = ColorBlock->GetOutput();
cout<<SetOfQuadCells->GetNumberOfCells();

_________________________________________________________________
Click, drag and drop. My MSN is the simple way to design your homepage. 
http://click.atdmt.com/AVE/go/onm00200364ave/direct/01/




More information about the vtkusers mailing list