[vtkusers] Line polygon intersection

David Doria daviddoria at gmail.com
Mon Feb 13 09:27:32 EST 2012


On Mon, Feb 13, 2012 at 9:25 AM, Jothybasu Selvaraj <jothybasu at gmail.com> wrote:
> Thanks David,
>
> But vtkPolygon::PointInPolygon, I can only define the point of interest, to
> check whether it is inside the given polygon or not. I want to define the
> starting and end points of the ray and find whether it intersects a 2D
> polygon, the ray will pass through the polygon in any 3D angle.
>
> I will try the BSP tree.
>
> Jothy

The link I sent was to int vtkPolygon::IntersectWithLine, which should
do exactly what you are asking.



More information about the vtkusers mailing list