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

Jana Sefcikova neollie at gmail.com
Sun May 6 19:46:06 EDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20120507/96613bf4/attachment.html>


More information about the vtk-developers mailing list