Generating a square grid on a freeform shape / brep

If you are using the ShapeMap in Rhino 8, it indeed only supports points and curves as input. The built-in ShapeMap in Rhino WIP supports points, curves, meshes, SubD, and even Breps. For more details, please check here

Rhino WIP Feature: ShapeMap for GH1