<div dir="ltr">I guess if I can do this:<div><br></div><div><div> vtkPolyData polydata = vtkPolyData.New();</div><div> polydata.SetPoints(points);</div></div><div>Then there should be a way to extract the points from a Mesh</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 14, 2014 at 7:37 PM, Matias Montroull <span dir="ltr"><<a href="mailto:matimontg@gmail.com" target="_blank">matimontg@gmail.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">I would think yes..<div><br></div><div>So, can I set the input connection to a Mesh in this line?</div>writer->SetInputConnection(sphereSource->GetOutputPort());<br>
I have a vtkPolyDataMapper and vtkPolyDataNormals objects to generate the mesh so I was wondering if I could use any of these as inputo for the writer?<div>
<br></div><div>Thanks!</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 14, 2014 at 6:13 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.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"><div class="gmail_extra"><div class="gmail_quote"><div><div>On Tue, Jan 14, 2014 at 4:08 PM, Matias Montroull <span dir="ltr"><<a href="mailto:matimontg@gmail.com" target="_blank">matimontg@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">HI,<div><br></div><div>I was looking at this example:</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadPlainText" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadPlainText</a><br>
</div><div>
<br></div><div>How I can do the inverse, that is getting all the points from a mesh?</div><div><br></div><div>Thanks!</div></div></blockquote></div></div><div><br>Is this what you're looking for?<br><br><a href="http://www.vtk.org/doc/nightly/html/classvtkSimplePointsWriter.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkSimplePointsWriter.html</a><br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/SimplePointsWriter" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/SimplePointsWriter</a><span><font color="#888888"><br clear="all"><div><br>
David</div></font></span></div></div></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>