[vtkusers] extracting cells that uses 2 points

Gonzalo Amadio gonzaloamadio at gmail.com
Tue Aug 14 15:03:28 EDT 2012


If no visualization, I think It will be difficult to understand the result,
comparing it with the triangle strip used as input.

This is like 1/2 lines comparing with the other. Only visualize the result
instead of everything =).

http://pastie.org/private/uavbrka9wzbr66ugqabgwg



2012/8/14 David Doria <daviddoria at gmail.com>

> 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
>



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


More information about the vtkusers mailing list