I’m not sure if this has been asked before but,
How do you turn the grid plane (left) into the ‘diamond’ mesh (right) in Geometry Nodes?
It doesn’t need to be precisely like that, essentially just (what I can only describe as) collapsing the vertices in an alternating fashion
In this example, I used the Un-Subdivide option with the value 1
My current solution is to just delete the points and it works fine for what I need since I don’t really need the edges and faces but I feel like it would be great to have those elements around
Here’s a different approach using two Triangulate nodes to create the diamond structure and a Dual Mesh and Scale Elements node to “dissolve” the unwanted edges:
another approach would be just turn the square grid 45degrees … removing any geometry “out of bounds” either via math/location, or just a simple quick boolean.
Tested this, and it works well for a simple grid although I couldn’t integrate it with the setup I’ve got going on; in which my grid size is driven by another object, and sometimes it will get deformed beforehand.
Tested this and I found it works really well with both setups that I have
I had a vague idea about using the triangulate and dual mesh nodes but I couldn’t work out the math in my head so this was very nice to see
You also nicely tackled that odd/even point count issue (I don’t know the correct term) that I stumbled upon in my initial solution that I wasn’t even aware of so thank you so much! This is the best answer I’ve found so far…
So, I have these two setups that I’ve got going on and this works well with the first one which is a simple flat grid but not so much with the second one since the grid will get deformed beforehand and the merge by distance node doesn’t do very well
Thank you for the input!
I’m so sorry that was a mistake on my part, I should’ve explained thoroughly. my setup was indeed very simple at the beginning and I thought to keep the question as broad to get different input from the community and yours was very helpful, thank you!
Thank you! this was very simple and and works very well with my setup.
If I were to use this in my setup and share them with others, how should I properly credit you?
I think I’m going to use it in my setup and then maybe share it with other people, how should I properly credit you?
I think I’ve found what I was looking for and I will keep all the answer for my later projects. All the respones have been helpful, thank you!
I will now mark this topic as solved
No need for credits from my side. Use it wherever you like.
But if i would have to choose between these solutions, i would totally take @Benny_G 's one! That’s really smart with the face inset and face neighbors comparison!
both answers are equally great, I couldn’t decide which one is better so I just had to pick one. if only I can pin multiple answer as the solution… maybe i’ll edit the question to add both answers, is it a good idea?