lts } from '../js/hit-test.js';

    const showMeshTriangles = document.getElementById('showMeshTriangles');

    const allMeshOrigins = [];

    function updateState() {
      const createMeshMaterial = (params) =>
        new THREE.MeshBasicMaterial(Object.assign(params, {
          opacity: 0.15,
          transparent: true,
        }));

      meshMaterials.splice(0, meshMaterials.length)
      if (showMeshTriangles.checked) {
        // preallocate colors for various meshes  
        meshMaterials.push