Taos API Reference
    Preparing search index...

    Interface SdfBakeOptions

    Inputs to SdfVolume.bakeFromMesh.

    positions is a tightly packed vec3 array (3 floats per vertex); indices is a triangle list. The bake runs a single compute dispatch over all triangles per texel, so cost scales linearly with indices.length.

    interface SdfBakeOptions {
        positions: Float32Array;
        indices: Uint32Array;
        resolution?: number | [number, number, number];
        padding?: number;
    }
    Index

    Properties

    positions: Float32Array
    indices: Uint32Array
    resolution?: number | [number, number, number]

    Output texture resolution. Either a single number (cube) or per-axis. Default 64.

    padding?: number

    Fractional bounding-box padding along each axis (0.1 = 10% of axis length). Default 0.1.