    }
      
        function drawAll() {
            regl.clear({
                color: [0, 0, 0, 1]
            });
            drawScene();
            drawGeometryScene();
            if (drawingState === 'area') {
                //测面时绘制outline
                drawLineScene();
            }
            //右侧打印结果
            logResult();
            requestAnimationFrame(drawAll);
        }

        //主绘制方法
        function render() {
            const scenePromise = getS