Hi! I’m a beginner on grasshopper, and I wonder how to do a trick…

I want to subdivide a triangle in a squared mesh. And be able to specify the length of the squares.
I would like to make something like that, taking one of the edge of the triangle as a base for the squared mesh… Any idea?

Thanks a lot for that!! Appreciate your help
Well… I’m really a beginner on GH so I’m a bit lost.
Maybe it’s because I don’t have the last version (only the one for r5) but it doesn’t work for me…

For the first one, I have a single dimension array like that:

Anyway, I was talking about a mesh grid in order to use the curves afterwards to represent a metal squared grid, so it can be polysurface, not necessary a mesh “mesh” !
And actually, yes I would like to trim the squares at the end so we see only the squares within the triangle surface and not outside. (like you did on the last test), but would like to avoid having some small triangles in the border squares… only squares and trimmed squares!