Generating a square grid on a freeform shape / brep

I need to generate a square grid on a list of freeform surfaces. I managed to do it on previous surfaces as they were close to planar. I used a projection of a 2D square grid on the geometry. This method is present in the file I attached.

The issue with the attached shape (see screenshot below) is that it is folding back on itself, meaning a simple projection will not work. This shape is a brep (polysurface) composed by 59 surfaces.

I was thinking to unroll this brep and/or maybe roll a 2D grid onto it but I haven’t had any success so far.

Some pointers:

  • It’s ok if the squares are not really squares as long as they look square and regular from afar.
  • This grid should ideally be composed of lines shorter than a specific value (maximum member length for structural purposes).

Square grid.gh (225.9 KB)

Thanks!

You may give it a try with ShapeMap, and for your reference.

ShapeMap_Panel.gh (118.3 KB)

Hi Jessesn, thanks for your answer, this looks like an amazing tool!

I managed to get something that I will further refine on my own.

Hello Jessen.

Why does the geometry input of my MapToshape component only accept points or curves?

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

Very thanks