• Smooths a polygon formed by input points. Works with points of any dimension count, for example 2 for 2D points or 3 for 3D points. Results are written to outTensor.

    inTensor - Float32Array of size (point dimension count * point count). Points of polygon to smooth out

    tensorShape - Should be {point dimension count, point count, 1}

    step - Smoothing value, higher value meaning higher smoothness

    outTensor - Float32Array of size (point dimension count * point count). Smoothed points are written to this array

    Parameters

    • inTensor: Float32Array
    • tensorShape: vec3
    • step: number
    • outTensor: Float32Array

    Returns void