vtkIdType ptids[4]; ptids[0] = firstpointid; ptids[1] = secondpointid; ptids[2] = thirdpointid; ptids[3] = fourthpointid;
vtkUnstructuredGrid *myUG = vtkUnstructuredGrid::SafeDownCast( this->GetOutputDataObject(0)); myUG->InsertNextCell(VTK_QUAD, 4, ptids); On Wed, Feb 25, 2009 at 5:58 AM, Natalie Happenhofer <[email protected]> wrote: > Hi! > I´m writing a filter that has as output an Unstructured Grid. As far as I > know, to specify that grid, I need to specify the points and the cells. I´m > wondering how to specify the cells - I need quadrilaterals. How can I > specify them? I need a routine which lets me specify the points (4 in that > case) and then insert it into a vtkCellList, which I can assign to the > output. > > thx, > Natalie > > ________________________________ > Adminístralas todas usando Windows Live Mail. ¡Descárgalo gratis! ¿Tienes > más de una cuenta de correo? > _______________________________________________ > 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 ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview > > -- David E DeMarle Kitware, Inc. R&D Engineer 28 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-371-3971 x109 _______________________________________________ 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 ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview
