[vtkusers] [Q]vtk40 Tcl programming vtkUnstructuredGrid

alexandre gouaillard alexandre.gouaillard at insa-lyon.fr
Mon Jun 17 19:03:52 EDT 2002


try this


vtkUnstructuredGrid aPolyLineGrid
aPolyLineGrid Allocate 1  1
aPolyLineGrid InsertNextCell [aPolyLine GetCellType] [aPolyLine GetPointIds]
aPolyLineGrid SetPoints polyLinePoints



----- Original Message -----
From: "Michael Norton" <mnorton at cisco.com>
To: <vtkusers at public.kitware.com>
Sent: Monday, June 17, 2002 8:24 PM
Subject: [vtkusers] [Q]vtk40 Tcl programming vtkUnstructuredGrid


> hi,
>
> I have the following lines of C++ code.
>
>    vtkUnstructuredGrid *aPolyLineGrid = vtkUnstructuredGrid::New();
>    aPolyLineGrid->Allocate(1, 1);
>    aPolyLineGrid->InsertNextCell(aPolyLine->GetCellType(),
> aPolyLine->GetPointIds());
>    aPolyLineGrid->SetPoints(polyLinePoints);
>
> What would the Tcl code look like?
>
> vtkUnstructuredGrid aPolyLineGrid
> aPolyLineGrid Allocate 1 1                 # ???
>
> and how do I handle this?
> aPolyLineGrid->InsertNextCell(aPolyLine->GetCellType(),
> aPolyLine->GetPointIds());
>    aPolyLineGrid->SetPoints(polyLinePoints);
>
>
> thanks,
>
> Mike N
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers




More information about the vtkusers mailing list