Manifold WASM Developer Guide
    Preparing search index...

    Module lib/animation

    Allow manifoldCAD models to specify glTF animations and morphs.

    Interfaces

    Morph

    Functions

    addAnimationToDoc
    addMotion
    cleanup
    cleanupAnimationInDoc
    getAnimationDuration

    Get the current duruation of the animation, in seconds.

    getAnimationFPS

    Get the current animation frame rate.

    getAnimationMode

    Get the current animation repeat mode.

    getMorph
    morphEnd
    morphStart
    setAnimationDuration

    Set the duration of the animation, in seconds.

    setAnimationFPS

    Set the animation frame rate.

    setAnimationMode

    Set the animation repeat mode.

    setMorph
    setMorphEnd

    Apply a morphing animation to the input manifold. Specify the end function which will be applied to the vertex positions of the last frame and linearly interpolated across the length of the overall animation. This animation will only be shown if this manifold is used directly on a GLTFNode.

    setMorphStart

    Apply a morphing animation to the input manifold. Specify the start function which will be applied to the vertex positions of the first frame and linearly interpolated across the length of the overall animation. This animation will only be shown if this manifold is used directly on a GLTFNode.