Hi all, <div><br></div><div>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) .</div><div>Wrapper class should support operation GetNormal(id), GetCurvature(id), GetColor(id), id is the vertex id. </div>
<div>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.</div><div>
<br></div><div>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 ? </div><div>Can be wrapper concept realise correctly, or I have to somehow wire subpipline ?</div>
<div><br></div><div>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.</div>
<div><br></div><div><br></div><div><br></div><div>Any advice would be appreciate.</div><div>Jana</div><div><br></div><div><br></div><div><br></div>