Viewer provides OccViewer.Subview interface for displaying several views in one canvas. In this mode you can chose different display modes, camera parameters for each view and display different objects in each view.

  ...
let aSubviewSize = { x: 0.5, y: 0.5 };
let aSubviewMargins = { x: 1.0, y: 1.0 };
let aSubviewOffset = { x: 0.0, y: 0.0 };
aSubview3d = new Subview();
aSubview3d.create (OccViewerModule, aSubviewSize);
aSubview3d.subviewOffset = aSubviewOffset;
aSubview3d.subviewMargins = aSubviewMargins;
aSubview3d.subviewCorner = ViewCorner.RightLower;
aSubview3d.camera.setOrientation (V3d_TypeOfOrientation.AXOLEFT);
aSubview3d.camera.fitAllAuto (true);
...

image