[vtkusers] How to have vtkCells refer to the same vtkPoints array?

David E DeMarle dave.demarle at kitware.com
Tue Feb 24 08:17:10 EST 2009


On Mon, Feb 23, 2009 at 6:49 PM, Robbie Jaeger <rjaeger at gmail.com> wrote:
> Hello,
>
> I am creating an unstructured grid that contains all cells and would like to
> define all of my vtkPoints first, and then create cells that refer to these
> points (create nodes, then elements from nodes).  Is this possible?

Yes. It was designed to be used that way. In:

  vtkUnstructuredGrid::InsertNextCell(int cellType, vtkIdList *ptIds)

ptIds is a list of indices into the vtkPoints list.


-- 
David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109



More information about the vtkusers mailing list