[vtkusers] Example of PointInPolygon

Jothy jothybasu at gmail.com
Wed Sep 29 06:19:44 EDT 2010


Could you please post your code?

Jothy

On Wed, Sep 29, 2010 at 11:09 AM, rakesh patil <prakeshofficial at gmail.com>wrote:

> Hi,
>
> I have been trying to find whether a given point is within a polygon or
> not. I have been doing this using,
>
> vtkPolygon::PointInPolygon()
>
> function. But out of 10 runs, in 1 run, i get only few points inside, the
> polygon. Others just fails and shows 0 points selected.
>
> Can anyone come up with a small example, for this?
>
> Thanks
>
> Warm Regards
> Rakesh Patil
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
PhD Student
Dept. of Medical Physics
Clatterbridge Centre for Oncology
UK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100929/645980bc/attachment.htm>


More information about the vtkusers mailing list