How to update ground from HeightMap?

const ground = MeshBuilder.CreateGroundFromHeightMap("gdhm", canvas.toDataURL(), {
            subdivisions: 500, 
            maxHeight: 10,
        } );

The ground mesh was created and its options.updatable = true. Ground got height map data from canvas. How can ground update dynamically from canvas? The canvas could update once every 2 second. I don’t think so it’s a good idea to dispose and recreate ground.

Can you provide a repro in the PG please?

I got the code from source code

const vertexData = CreateGroundVertexData(canvas);
vertexData.applyToMesh(ground, true);