cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Translate CATIA cameras to creo view web toolkit

sperezoses
1-Newbie

Translate CATIA cameras to creo view web toolkit

We are working in a project that need to translate the CATIA cameras (origin point, target point and up vector) to orientation in creo view using the web toolkit in Javascript, the problem is that we have converted the position of the camera, but we don`t know how to translate the distance (zoom) using ortographic width parameter. I attacha an example:

 

 

OriginX OriginY OriginZ TargetX TargetY TargetZ UpX UpY UpZ
-10302,0751953125 -11608,8369140625 16233,501953125 11389,7900390625 -6727,7900390625 3767,3779296875 0,476548403501511 0,109892398118973 0,872253060340881

 

With these coordinates we calculate the coordinatio matrix (4x4):

 

 

LOCATION
0.220771 -0.975323 0.00226143 0 0.476548 0.109892 0.872253 0 -0.850971 -0.191489 0.48906 0 5.78144 -7.92774 6.9559 1

 

But we don´t know how to get the ortographic width. Is there a way to do it in an easy way?

 

 

Regards


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
0 REPLIES 0
Top Tags