<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div> 1.where is (0,0,0) or where is the origin?<br></div></blockquote><div> </div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
You can add a sphere source at (0,0,0) to see where it is:</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Sphere">http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Sphere</a></div><div>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Sphere"></a> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div> 2.Can you help me do some improvement?This example uses a picture drawed by the code itself.How to improve the code to load a file of .ply and then get coordinate value?<br>
</div></blockquote><div><br></div><div>Here is an example of how to load a ply file:</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadPLY">http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadPLY</a></div>
<div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadPLY"></a> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div> 3.This program only demonstrates the coordinate value when I click at somewhere.How to improve the code to get normal vector of every triangle which is made up by three points?</div>
</blockquote><div><br></div><div>You can use:</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataExtractNormals">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataExtractNormals</a></div>
<div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataExtractNormals"></a>along with</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataCellNormals">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataCellNormals</a></div>
<div><br></div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataCellNormals"></a>to get the triangle normals.</div><div><br></div><div>Good luck,</div><div><br></div><div>David </div></div>