            geometryScene.addMesh(mesh);
                    if (drawingState === 'area') {
                        const lineMesh = new reshader.Mesh(lineGeometry);
                        lineScene.addMesh(lineMesh);
                    }
                }
                prepareMoving = true;
            }
        }

        function handleMouseUp(ev) {
            mouseDown = false;
        }

        function handleMouseMove(ev) {
            if (!mouseDown) {
                return;
            }
    