Viewer provides OccViewer.ViewCube interface for displaying View Cube. This auxiliary interactive object is intended to help with navigation in 3D space by displaying XYZ axes and View orientation labels on sides of the cube. The latter could be customized or localized; make sure to upload an appropriate font using OccViewer.OccViewer.registerFontFromUrl function beforehand (e.g. supporting UNICODE characters).

Example of usage View Cube:

// enable view cube
OccViewerModule.viewCube.visible = theVal;
// customize view cube labels (optional)
OccViewerModule.viewCube.labels = {
front: "VORNE", back: "HINTEN", right:"RECHTS", left: "LINKS", top:"OBEN", bottom: "UNTEN",
x:"X", y:"Y", z:"Z"
};
OccViewerModule.updateView();

image