<div dir="ltr">hello David,<div>i tried this example but it crashs,<br><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/RemoveVertices" target="_top" rel="nofollow" link="external">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/RemoveVertices</a><br>
acctually this is what i want: remove vertice from polydata, can you help me to find the problem in this code.</div><div>thank you.</div><div>Rima</div><div><br></div><div><br><div class="gmail_quote">2011/10/27 David Doria-2-3 [via VTK] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=4952426&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
        On Thu, Oct 27, 2011 at 6:48 AM, rima4 <<a href="http://user/SendEmail.jtp?type=node&node=4942891&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>> wrote:
<div><div class='shrinkable-quote'><br>> hi all
<br>> what i'm trying to do is defining points inside et outside an object and i
<br>> just want simply to eliminate those points who are outside, i tried this
<br>> code but when t run it it makes a bug:
<br>>
<br>>
<br>> double pcoords[3], weights[3];
<br>>
<br>> vtkIdType cellId;
<br>> int subId;
<br>> cellId = df->GetOutput()->FindCell(E, NULL, 0, .1,subId, pcoords,
<br>> weights);
<br>> if (cellId>=0)
<br>> {
<br>> std::cout << "inside" << std::endl;
<br>> }
<br>> else
<br>> {
<br>> std::cout << "outside" << std::endl;
<br>> epol->DeleteCell(cellId);
<br>> }
<br>> }
<br>>
<br>>
<br>>
<br>> can someone help me please?
</div></div></div><div class="im">Maybe these examples will help?
<br><br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject</a><br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractSelectionCells" rel="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractSelectionCells</a><br>
<br>David
<br></div><div class="im">_______________________________________________
<br>Powered by <a href="http://www.kitware.com" target="_blank" rel="nofollow" link="external">www.kitware.com</a>
<br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" 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="nofollow" link="external" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:
<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" rel="nofollow" link="external" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
        
        <br>
        <br>
        </div><hr noshade size="1" color="#cccccc">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://vtk.1045678.n5.nabble.com/delete-vertex-from-mesh-tp4942623p4942891.html" target="_blank" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/delete-vertex-from-mesh-tp4942623p4942891.html</a>
        </div>
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em">
                
                To unsubscribe from delete vertex from mesh, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.
        </div></blockquote></div><br></div></div></div>
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/delete-vertex-from-mesh-tp4942623p4952426.html">Re: delete vertex from mesh</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>