Skip to main content

evaluate_deform

Function evaluate_deform 

Source
pub fn evaluate_deform(
    keys: &KeyColumns<'_>,
    run: &KeyRun,
    frame_no: f32,
    hint: &mut u32,
    start_workspace: &mut Vec<f32>,
    end_workspace: &mut Vec<f32>,
    out_workspace: &mut Vec<f32>,
    coord_out: &mut Vec<Vec2>,
    index_out: &mut Vec<i16>,
) -> bool
Expand description

Evaluates a deform attribute at frame_no, writing the interpolated coordinates into coord_out and the (non-interpolated) indices into index_out. Both output buffers are cleared at entry, so the caller can reuse them across parts without manual reset.

Returns false only for a run with no keys; a frame before the first key reads the first key, as search_prev_next does.