[vtkusers] vtkShepard Method

Luca Pallozzi Lavorante lplavorante at gmail.com
Tue Apr 17 17:19:44 EDT 2007


Suneet,
have a look at the Graphics/Testing/Tcl/shepards.tcl example (or click
here<http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Graphics/Testing/Tcl/shepards.tcl?root=VTK&content-type=text/plain>).
You will see that vtkShepardMethod is fed a vtkPolyData instance which, in
turn, "contains" the vtkPoints instance. The example shows how to properly
set up the pipeline.

  Best regards

        Luca

On 4/17/07, Suneet Luniya <luniya at nanotechsys.com> wrote:
>
>  Hi All,
>
>  I am trying to convert a grid of unstructured points in to structured
> data. I saw that VTK has a method vtkShepardMethod() to do this.
>
> Does anyone have an example of how to accomplish this?
>
>
>
> I created a point array
>
> vtkDotNetWrap::vtkPoints points = vtkDotNetWrap::vtkPoints::New();
>
> for(int i = 0; i < nRow; i++)
>
> {
>
> for(int j = 0; j < nCol; j++)
>
>           {
>
>                     Points::InsertNextPoint(dM1[i,j], dM2[i,j], dM3[i,j]);
>
>           }
>
> }
>
> But vtkShepard() accepts only 'dataset' type in the method setInput()
>
>
>
> Once, the input is defined, in what format do you get the output?
>
>
>
> I am using VC++ 7.1 compiler on Win XP.
>
>
>
>
>
> Any help will be useful
>
>
>
> TIA
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070417/4f4116be/attachment.htm>


More information about the vtkusers mailing list