         // mesh was removed
            allMeshes.delete(mesh);
            console.debug("Mesh no longer tracked, id=" + meshContext.id);

            scene.remove(meshContext.mesh);
            scene.remove(meshContext.wireframe);
            scene.remove(meshContext.text);
          }
        });

        // compare all incoming meshes with our internal state
        frame.detectedMeshes.forEach(mesh => {
          const meshPose = frame.getPose(mesh.meshSpace, referenceSpace);
          let meshMesh;
 