Home > three_d.js > Examples

Two surfaces

At least for now, there's no natural way to create multiple surfaces on the same plot in three_d.js. But you are allowed to repeat co-ordinates in the mesh grid, so you can make pseudo-multiple surfaces. A toggle to switch on and off the layers is below the plot.

Mouse controls: Left-click and drag to rotate; alt (Mac)- or ctrl (Windows)-click-drag or middle-click-drag to pan; scroll or shift-click-drag to zoom. Touch screen controls: one finger to rotate; two-finger scroll to pan; pinch to zoom. Click/tap on the cube icons to snap to a side-on view.

You can see how the plot is constructed in the HTML source:

Posted 2016-12-22.


Home > three_d.js > Examples