 return mesh;
        }
        document.addEventListener("DOMContentLoaded", function() {
            const viewerElement = document.getElementById("meshcat-viewer");
            const viewer = new MeshCat.Viewer(viewerElement);
            const renderer = viewer.renderer
            const scene = viewer.scene;
            const camera = viewer.camera;
            // Add a trio of boxes so we can see recognize alignment and
            // consistency as we being/end XR sessions.
            viewer.scene.a