Is there any function to find the intersect point between line and plane?

Dear OCCT,

Now I'm looking for the way to find the intersect point between line and plane.

The line could be described by gp_Vec,

and the plane could be described by gp_Pln.

If there is no any function related to them, I need to implement it myself.

Please help me!

Artem Zhidkov's picture

Hi David,

You should define a line by gp_Lin object, because gp_Vec is a data structure to store the direction only without any origin point.

After that, you may use IntAna_IntConicQuad algorithm to intersect a line and a plane.

Best regards,

Artem

David Coverdale's picture

Dear Artem,

You saved my time!! Thank you so much :)