Finding the intersection of a line (2 points) and plane (point + vectors)

thomasa88
Advocate

Finding the intersection of a line (2 points) and plane (point + vectors)

thomasa88
Advocate
Advocate

I'm messing around with the Camera object and I want to rotate it about a point. The problem is that I don't have the point coordinates.

 

I have the origin point, x vector and y vector for a plane (actually a Sketch in this case) - so I can also easily calculate the normal. I also have the points eye and target for the camera.

 

I figured I need to find plane/line intersection formula. However, before I start digging through the Internet to understand how to apply it to my inputs, I just want to ask if there are accessible built-in functions in Fusion or if someone knows it off the top of their head. I don't want to create intermediate features to access their functions (like Surface or Line), as I don't want to interrupt any user commands or selections.

 

The Vector3D class has functions for dot and cross product. A point can be converted to a vector and vice versa.

 

Any ideas how to go about this with the Fusion API?

 

thomasa88_0-1600667757023.png

 

0 Likes
Reply
Accepted solutions (1)
1,023 Views
2 Replies
Replies (2)

KrisKaplan
Autodesk
Autodesk
Accepted solution

What you would be looking for is Plane.intersectWithLine.

 

http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-f9008147-d002-420e-8c0e-88bc3a415a43

 

Kris



Kris Kaplan
1 Like

thomasa88
Advocate
Advocate

It works perfectly. Thanks!

0 Likes