[vtkusers] get a point inside a vtkPolyData

Jonathan Morra jonmorra at gmail.com
Fri Feb 25 12:45:37 EST 2011


I'm not sure how I'd use this.  Also, I don't have a vtkPolygon, but
vtkPolyData.

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

> On Fri, Feb 25, 2011 at 12:14 PM, Jonathan Morra <jonmorra at gmail.com>wrote:
>
>> I have a vtkPolyData that is a contour in 2D and I need a way to get any
>> point that is inside that contour.  I can't use vtkPolyData.GetCenter()
>> because I don't know anything about the geometry of the contour (could be
>> convex).  Is there a way to do this quickly?
>>
>> Thanks.
>>
>> Would this work for you?
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/PointInPolygon
>  <http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/PointInPolygon>
> David
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110225/9125f803/attachment.htm>


More information about the vtkusers mailing list