[Paraview] specifying cell data
Eric E. Monson
emonson at cs.duke.edu
Wed Feb 25 09:21:17 EST 2009
Hey Natalie,
There are also a bunch of examples of building unstructured grids with
various types of cells if you follow the link for test code in the
doxygen page for vtkUnstructuredGrid (Tests).
http://www.vtk.org/doc/nightly/html/c2_vtk_t_17.html#c2_vtk_t_vtkUnstructuredGrid
-Eric
On Feb 25, 2009, at 9:11 AM, David E DeMarle wrote:
> 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
> <nataliehapp at hotmail.com> 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
More information about the ParaView
mailing list