[vtkusers] Can vtkSelectEnclosedPoints->IsInside work for concave surfaces?

Jothy jothybasu at gmail.com
Tue Mar 1 05:56:25 EST 2011


Why don't you use vtkPolygon::PointInPolygon?

Jothy

On Tue, Mar 1, 2011 at 3:15 AM, Sam <sistephan at gmail.com> wrote:

> Lynx ,
>
> I am trying to do exactly this.  Cast a ray from my point and count how
> many
> intersections with the model take place to determine whether the point is
> inside.  Do you have a code sample on how to do this?  Or can you point me
> to what classes to use?
>
> Thanks,
> Sam
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Can-vtkSelectEnclosedPoints-IsInside-work-for-concave-surfaces-tp2265116p3404351.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110301/7dcffe08/attachment.htm>


More information about the vtkusers mailing list