<div class="gmail_quote">On Wed, Apr 18, 2012 at 5:23 AM, Wenlong <span dir="ltr">&lt;<a href="mailto:scc.wwl@gmail.com">scc.wwl@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, David<br>
<br>
Thank you very much for your reply.<br>
<br>
What I want to achieve is to cut a smaller area from the big model. For<br>
example, my current model contains 7710 points and it covers from left ear<br>
to right ear and from the chin to the forehead. I don&#39;t need such a big<br>
area. So I need to cut it and make the result covers from left cheek to<br>
right cheek and from chin to eyebrows. Also I need to make the number of<br>
points is 5090.<br>
<br>
The original model (bigger) is from .wrl files and the result I&#39;d like to<br>
write it as .vtk files.<br>
<br>
Anther thing I worry about is if I need to re-create the texture coordinates<br>
to fit the result models.<br>
<br>
Thank you very much for your kindly help. I am looking forward to hear from<br>
you.<br>
<br>
Best regards<br>
Wenlong<br></blockquote><div><br></div><div>You should be able to create the object to use to crop the data (a sphere perhaps?) and select the points inside that object like this:</div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject</a><br clear="all">
<br>Then you can extract the points that were selected like this:</div><div class="gmail_quote"><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractCellsUsingPoints">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractCellsUsingPoints</a><br>
<br>This is not a particularly easy part of VTK, so you will probably have to play around with it a bit.</div><div class="gmail_quote"><br>David<br></div>