[vtkusers] extracting cells that uses 2 points

David Doria daviddoria at gmail.com
Tue Aug 14 14:47:24 EDT 2012


On Tue, Aug 14, 2012 at 2:43 PM, Gonzalo Amadio <gonzaloamadio at gmail.com>wrote:

> Hello, I want to extract cells using two specified points. I was looking
> into vtkPolyData and I found the function GetPointCells, but that is only
> for one point. And I need it for two points instead of one.
>
> So I used this example :
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/ExtractCellsUsingPoints
>
> I modified a little, instead of working with a spheresource I try to make
> it work with a triangle strip (taken from this example :
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/TriangleStrip )
>
> In this last example, there are 2 triangles, and (as in the code is
> showed), I want the cell that uses the point 0.
> But as shown in the result, it returns the 2 triangles instead of only one.
>
> Maybe it is because the vtkTriangleStrip ? Is ok my idea?
>
>
> Thank you.!
>

You should be able to make a demo of this problem that doesn't use
visualization right? If so, you can cut the number of lines we have to look
at in half.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120814/44196312/attachment.htm>


More information about the vtkusers mailing list