<div dir="ltr">Yes, indeed that was the problem. I had solved it a few weeks ago and I forgot to reply it here. Thank you.</div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-05 19:56 GMT+01:00 Cory Quammen <span dir="ltr"><<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>// Clip data<br>vtkSmartPointer<vtkClipDataSet> clipDataSet = vtkSmartPointer<vtkClipDataSet>::New();<br>clipDataSet->SetClipFunction(plane);<br>clipDataSet->SetInputConnection(model->GetProducerPort());<br>clipDataSet->InsideOutOn();<br>clipDataSet->GenerateClippedOutputOn();<br><br>//PROBLEM HERE. The print shows that there aren't any arrays on the output data<br>clipDataSet->GetOutput()->Print(std::cout);</div></div></blockquote><div><br></div></span><div>You haven't updated the clipDataSet filter yet at this point, so the output should be empty here. If you do add a call to clipDataSet->Update(), you should see that the output has the arrays you expect. Let us know if it doesn't.</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>// Warp the data. <br>vtkSmartPointer<vtkWarpVector> warpingVector = vtkSmartPointer<vtkWarpVector>::New();<br>warpingVector->SetInput(clipDataSet->GetOutput());<br>warpingVector->Update();</div></div></blockquote><div><br></div></span><div>Could you try calling</div><div><br></div><div>warpingVector->SetInputArrayToProcess(0, 0, 0, vtkDataObject::<span style="color:rgb(0,0,0);font-family:Roboto,sans-serif;font-size:14px;line-height:22px;white-space:nowrap"> FIELD_ASSOCIATION_POINTS</span>, "Displacements");</div><div><br></div><div>This should tell the vtkWarpVector object to displace by your "Displacements" array.</div><div><br></div><div>HTH,</div><div>Cory</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><div dir="ltr"><div>// Filter the data because vtkFeatureEdges needs polydata as input<br>vtkSmartPointer<vtkGeometryFilter> outGeometryFilter = vtkSmartPointer<vtkGeometryFilter>::New();<br>outGeometryFilter->SetInput(warpingVector->GetOutput());<br><br>//Create a filter to only draw the boundaries of the displaced mesh<br>vtkSmartPointer<vtkFeatureEdges> drawOnlyBoundaries = vtkSmartPointer<vtkFeatureEdges>::New();<br>drawOnlyBoundaries->SetInputConnection(outGeometryFilter->GetOutputPort());<br></div><div>// configuration of drawOnlyBoundaries, it is not important<br>drawOnlyBoundaries->BoundaryEdgesOn(); drawOnlyBoundaries->ManifoldEdgesOff();<br>drawOnlyBoundaries->NonManifoldEdgesOff(); drawOnlyBoundaries->Update();<br><br></div><div>/* Here I omitted the code to display the mesh using clipDataSet->GetOutputPort() as input*/ <br>/* Also, the code to configure the mapper and actor using drawOnlyBoundaries as input */<div><br></div><div><div><br></div></div></div></div>
<br></span>_______________________________________________<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/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_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=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/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div>Cory Quammen<br>R&D Engineer<br>Kitware, Inc.</div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><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"><br></div><div style="font-size:12.8px"><b><font color="#000000">O</font><font color="#cc0000">pen E</font><font color="#000000">ngineering s.a.</font></b></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><br></div><div style="font-size:12.8px"><br></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><img src="http://www.open-engineering.com/download/files/signatures/ENOVA_LYON_stand_C52.jpg"><br></span></font></b></div></div></div></div></div></div>
</div>