By @ShiyaLuo
This is a question we've gotten from partners pretty often. How to programmatically rotate the View Cube?
If you don't want to use THREE.js camera transformations, and just want to call functions to turn the "View Cube" like in a traditional CAD software, there's a function you can call.
In the current version (2.9) of viewer3D, you can call the viewer.setViewCube(face)
where viewer
is your - DOH - viewer.
The options for face
are strings front
, back
, top
, bottom
, left
, right
. Calling this function does exactly the same as clicking on the different surface of a View Cube.
Enjoy!
Comments