<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->SetInputArrayToProcess(0,0,0, FIELD_ASSOCIATION_POINTS,"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->GetPointData()->SetActiveVectors("nameOfArray"); <br>After I did the mirroring: UnstructuredGridFull->GetPointData()->SetActiveVectors("nameOfArray"); </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<vtkAssignAttribute> aa = vtkSmartPointer<vtkAssignAttribute>::New();</div><div>aa->SetInput(UnstructuredGridFull);</div><div>aa->Assign("nameOfArray", vtkDataSetAttributes::VECTORS,vtkAssignAttribute::POINT_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="gmail_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">_______________________________________________________________</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>+32.4.353.30.34 </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.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/company/open-engineering?trk=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">_________________________________________________________________________<br></span></font></b></div></div></div></div></div></div></div>
</div></div></div>