Repository navigation
3D animation, exploded view and cross-sections
Tools for interactive 3D learning material.
model3dtools.js
getAnimations(id)andplayAnimation(id, nameOrIndex, options)play the animations stored in a glTF file (node translation/rotation/scale; STEP, LINEAR and CUBICSPLINE), withplay,pause,stop,seek(seconds)andsetSpeed.seekworks while paused, for a time slider.explodeModel(id, amount, options)pulls parts away from their center like an assembly drawing;amount0 to 1 works directly from a slider and 0 restores the exact positions.addSection(id, options)slices the model with a plane (axis,position,flip,color) to show the inside; the cut side cannot be clicked, and the cut face is drawn solid.
model3d.js - clip plane support in the shader and in picking; fitView accepts an array of part names.