Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
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