How to create a grid in geo nodes inside an object

how can I make a grid inside an object ? the stack should be with the correct one, without bends. I tried to create it, but it’s smooth.