[vtk-developers] Can algorithm has algorithm subpipline inside and how correctly combine theirs outputs inside one structure

David E DeMarle dave.demarle at kitware.com
Wed May 9 10:22:02 EDT 2012


Yes, it is possible to have internal pipelines within filters.

For VTK5 see:
  http://markmail.org/message/4u3zlmnubqto3bmb

In the upcoming VTK 6 release, the shallow copies are now longer
necessary as described in:
  http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Overview

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Sun, May 6, 2012 at 7:46 PM, Jana Sefcikova <neollie at gmail.com> wrote:
> Hi all,
>
> I would like implement an algorithm working on polydata that computes
> inside it normals, curvatures and store them in compact form (I called it
> wrapper class) .
> Wrapper class should support operation GetNormal(id), GetCurvature(id),
> GetColor(id), id is the vertex id.
> I do not take normlas as input to the algorithm, because it change polydata
> topology, moreover I would like have generic solution, if input polydata
> have normals I will use them, if no I will compute them.
>
> Is there any example of VTK algorithm containig subpipline inside or
> combining multiple vertex arrays that could I use for learning how to do it
> correctly in vtk ?
> Can be wrapper concept realise correctly, or I have to somehow wire
> subpipline ?
>
> I made it inside my vtkAlgorithm in RequestData, by firstly computing
> normals (using vtkNormalGenerator), than curvatures (vtkCurvatures) and than
> I instantiate my wrapper class (does not inherite from any one ) that stores
> curvature and normals arrays with polydata. Every time RequesData is called,
> I recompute it.
>
>
>
> Any advice would be appreciate.
> Jana
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>



More information about the vtk-developers mailing list