<div dir="ltr">Fernando,<div>Can you try vtkPassArray to pass the proper vector array to each of your pipelines? Then you can set the active vector on the output of this algorithm.</div><div><br></div><div>Dan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 26, 2016 at 6:23 AM, Fernando Nellmeldin <span dir="ltr"><<a href="mailto:f.nellmeldin@open-engineering.com" target="_blank">f.nellmeldin@open-engineering.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello.<div>I would like to show the deformed mesh of a model based on the values of a point data array of dimension 3 (vectorial data).</div><div><br><div>I have the following pipeline:</div><div>UnstructuredGrid1 -> WarpVector -> GeometryFilter -> ExtractEdges -> PolyDataMapper -> Actor<br clear="all"><div>In the WarpVector, I call to say which array to use</div><div>WarpVector-><wbr>SetInputArrayToProcess(0,0,0, FIELD_ASSOCIATION_POINTS,"<wbr>nameOfArray");</div><div><br></div><div>The first time I load the actor in screen, everything is OK.</div><div><br></div><div>Later, I would like to mirror the input UnstructuredGrid1 because it represents half the model. So I do the following:</div><div>UnstructuredGrid1 -> ReflectionFilter -> UnstructuredGrid2</div><div>{UnstructuredGrid1, UnstructuredGrid2} -> AppendFilter -> UnstructuredGridFull</div><div><br></div><div>Then, I replace the input of WarpVector by UnstructuredGridFull, and I reload the actor. </div><div>However, what I see on screen is the same deformed mesh than before, plus another deformed mesh that is not its mirror, it's something different and not correct, of course.</div><div><br></div><div>If, however, I call:</div><div>At the beginning: UnstructuredGrid1-><wbr>GetPointData()-><wbr>SetActiveVectors("nameOfArray"<wbr>); <br>After I did the mirroring: UnstructuredGridFull-><wbr>GetPointData()-><wbr>SetActiveVectors("nameOfArray"<wbr>); </div><div>I don't have the problem and everything works OK.</div><div><br></div><div>Problem is, I don't want to call setActiveVectors because I can have more than one pipeline that makes uses of the same UnstructuredGrid with different vectorial data, and  I noticed that each call to setActive* will modify all the pipelines that makes use of the Scalars/Vectors/Tensors. So this doesn't seem an option.</div><div><br></div><div>What is the alternative to use here to solve the problem?</div><div><br></div><div>I tried with vtkAssignAttributes but didn't work.</div><div><div>vtkSmartPointer<<wbr>vtkAssignAttribute> aa = vtkSmartPointer<<wbr>vtkAssignAttribute>::New();</div><div>aa->SetInput(<wbr>UnstructuredGridFull);</div><div>aa->Assign("nameOfArray", vtkDataSetAttributes::VECTORS,<wbr>vtkAssignAttribute::POINT_<wbr>DATA);</div><div>aa->Update();</div></div><div><br></div><div>And then:</div><div>AssignAttribute -> WarpVector instead of UnstructuredGridFull -> WarpVector.</div><div>but same result...</div><div><br></div><div>Thank you.</div><div><br></div>-- <br><div class="m_-215323534472359152gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><b>Fernando NELLMELDIN</b><br>Software Engineer<div style="font-size:12.8px"><b style="font-size:12.8px"><font color="#cc0000">______________________________<wbr>______________________________<wbr>___</font></b><br></div><div><div style="font-size:12.8px"><b style="font-size:12.8px"><font color="#000000"><br></font></b></div><div style="font-size:12.8px"><b style="font-size:12.8px"><font color="#000000">O</font><font color="#cc0000">pen E</font><font color="#000000">ngineering s.a.</font></b><br></div><div style="font-size:12.8px"><font color="#000000"><br></font></div><div style="font-size:12.8px"><font color="#000000">Rue Bois Saint-Jean 15/1</font></div><div style="font-size:12.8px"><font color="#000000">B-4102 Seraing (Belgium)</font></div><div><font color="#000000" style="font-size:12.8px">Tel: </font><a href="tel:%2B32.4.353.30.34" value="+3243533034" target="_blank">+32.4.353.30.34</a> </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><a href="http://www.open-engineering.com/" style="color:rgb(17,85,204)" target="_blank">http://www.open-engineering.<wbr>com</a></div><div style="font-size:12.8px"><a href="https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym" style="color:rgb(17,85,204)" target="_blank">https://www.linkedin.com/<wbr>company/open-engineering?trk=<wbr>biz-companies-cym</a><br></div><div style="font-size:12.8px"><b><font color="#cc0000"><span style="font-family:"arial black",sans-serif;font-size:12.8px">______________________________<wbr>______________________________<wbr>_____________<br></span></font></b></div></div></div></div></div></div></div>
</div></div></div>
<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>