Intersection of line and face when parallel

Hi there,

acting in a 2D environment I need to check if a given edge passes through a face.
I also need to differentiate these cases:

a) the edge crosses the face -> this means a hit
b) the edge is only touching the face's boundary (e.g. it is contained in the boundary wire) -> this means not hit

I am working with IntCurvesFace_ShapeIntersector but it gives no intersections. I also tried setting the boundary parameter to +/-INF (see https://www.opencascade.com/content/line-face-intersection).
Could it be a problem that the face and the edge are parallel in my 2d world?

Thanks for your help, Elio

Forum supervisor's picture

Dear Elio,

We have sent to you a personal reply - please, check your mailbox.

Best regards,

Forum supervisor

Sathiya nathan's picture

Hi, I too facing same problem. Shape is a 2D polygon and try to find intersection with 2D line using IntCurvesFace_ShapeIntersector. it does not work. Can you please let me know the way to find the intersection on 2D shapes?

Michael Jäger's picture

I have the same problem, any update on this case?