Changing View Directions

Scripts on this page are available here:

AlongXAxis.js

AlongYAxis.js

AlongZAxis.js

AnotherDiagonalView.js

DiagonalView.js

TowardsXAxis.js

TowardsYAxis.js

TowardsZAxis.js

The following pieces of code changes the viewing angle of the model and fits it on the screen in the same manner as these buttons:

(Iso view (F5), View from X (F6), View from Y (F7), View from Z (F8)).

The code pieces can be used if you are making an illustrated report, or for other purposes. They change the view direction and make a new ModelView.

Diagonal View: DiagonalView.js

Another diagonal View: AnotherDiagonalView.js

Along X-Axis: AlongXAxis.js

Towards X-Axis: TowardsXAxis.js

Along Y-Axis: AlongYAxis.js

Towards Y-Axis: TowardsYAxis.js

Along Z-Axis: AlongZAxis.js

Towards Z-Axis: TowardsZAxis.js