Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get target point from Viewpoint3D

Status
Not open for further replies.

iscariot

Mechanical
Oct 15, 2009
154
DE
How can I get the target point as array from Viewpoint3D? does Catia automation already have a method for this? I don't find it :(
Having GetOrigin, GetSightDirection , FocusDistance I should be able to get the target point but I forgot all my algebra from a long time ago :) Any mathematician around? :)


Viewpoint3D
 
Replies continue below

Recommended for you

With other words, having a point P1 coordinates, a vector pointing to a second point P2 and the distance between P1 and P2, how can I calculate the coordinates of point P2?
 

xTarget = xOrigin + dFocusDistance*xSightDirection
yTarget = yOrigin + dFocusDistance*ySightDirection
zTarget = zOrigin + dFocusDistance*zSightDirection

Is it like this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top