[vtkusers] get a point inside a vtkPolyData

Jonathan Morra jonmorra at gmail.com
Fri Feb 25 12:51:03 EST 2011


Even if I make a vtkPolygon, I still have to loop over a whole bunch of
points (potentially) to get one that is inside the contour.  I was wondering
if there was a way to do this without loops.

On Fri, Feb 25, 2011 at 9:47 AM, David Doria <daviddoria at gmail.com> wrote:

> On Fri, Feb 25, 2011 at 12:45 PM, Jonathan Morra <jonmorra at gmail.com>wrote:
>
>> I'm not sure how I'd use this.  Also, I don't have a vtkPolygon, but
>> vtkPolyData.
>>
>
> Since the points in your PolyData are a contour, I'm assuming they are
> ordered? If so, you can make them into a Polygon:
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Polygon
>  <http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Polygon>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110225/fae00b08/attachment.htm>


More information about the vtkusers mailing list