library-mesh

The shared "instantiate a model from a <tosi-b3d-library>" loader. One implementation, used by b3d-prop and b3d-destroyable.

Why it is shared rather than copied

It was copied first, and the copy was the problem. Three bugs arrived against the one in b3d-destroyable — rotation dropped, no scale, and a node orphaned when the element was removed mid-load (#47/#48/#49) — and a second element with its own copy would have inherited all three, silently, because a fix in one place cannot reach a policy that was duplicated.

That is not hypothetical here: the panel-sizing formula in this repo was copied to three sites, fixed in one, and the two survivors were found by a review rather than by anything failing. So this loader lives in exactly one place.

What it handles, and why each part exists