[vtkusers] get a point inside a vtkPolyData

David Doria daviddoria at gmail.com
Fri Feb 25 12:17:25 EST 2011


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/a6628453/attachment.htm>


More information about the vtkusers mailing list