You can specify the max number of triangles per grid rectangle and rdgrid will create the dynamic grid. We use quad-trees to the the grid refinement. The image bellow is a simple example of a dynamic grid with a max number of triangles of 2.
See the example for further deitails on how to use rdgrid.