[vtkusers] delete vertex from mesh
rima4
rima.sb4 at gmail.com
Mon Oct 31 09:32:20 EDT 2011
hello David,
i tried this example but it crashs,
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/RemoveVertices
acctually this is what i want: remove vertice from polydata, can you help
me to find the problem in this code.
thank you.
Rima
2011/10/27 David Doria-2-3 [via VTK] <
ml-node+s1045678n4942891h89 at n5.nabble.com>
> On Thu, Oct 27, 2011 at 6:48 AM, rima4 <[hidden email]<http://user/SendEmail.jtp?type=node&node=4942891&i=0>>
> wrote:
>
> > hi all
> > what i'm trying to do is defining points inside et outside an object
> and i
> > just want simply to eliminate those points who are outside, i tried
> this
> > code but when t run it it makes a bug:
> >
> >
> > double pcoords[3], weights[3];
> >
> > vtkIdType cellId;
> > int subId;
> > cellId = df->GetOutput()->FindCell(E, NULL, 0, .1,subId, pcoords,
> > weights);
> > if (cellId>=0)
> > {
> > std::cout << "inside" << std::endl;
> > }
> > else
> > {
> > std::cout << "outside" << std::endl;
> > epol->DeleteCell(cellId);
> > }
> > }
> >
> >
> >
> > can someone help me please?
>
> Maybe these examples will help?
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractSelectionCells
>
> David
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://vtk.1045678.n5.nabble.com/delete-vertex-from-mesh-tp4942623p4942891.html
> To unsubscribe from delete vertex from mesh, click here<http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4942623&code=cmltYS5zYjRAZ21haWwuY29tfDQ5NDI2MjN8LTExMDM3NzMzNjc=>.
>
>
--
View this message in context: http://vtk.1045678.n5.nabble.com/delete-vertex-from-mesh-tp4942623p4952426.html
Sent from the VTK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111031/e5700f22/attachment.htm>
More information about the vtkusers
mailing list