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.
positions
indices
indices.length
Optional
Output texture resolution. Either a single number (cube) or per-axis. Default 64.
Fractional bounding-box padding along each axis (0.1 = 10% of axis length). Default 0.1.
Inputs to SdfVolume.bakeFromMesh.
positionsis a tightly packed vec3 array (3 floats per vertex);indicesis a triangle list. The bake runs a single compute dispatch over all triangles per texel, so cost scales linearly withindices.length.