Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Hexagonal Distribution #1706

Open
Gerstmann-Bradley opened this issue Apr 27, 2021 · 7 comments
Open

Proposal: Hexagonal Distribution #1706

Gerstmann-Bradley opened this issue Apr 27, 2021 · 7 comments
Labels
good first contribution New developers can implement this task. help wanted Developers from the community are welcome to implement this. to-do Accepted proposal that needs to be implemented.

Comments

@Gerstmann-Bradley
Copy link

There's a reference from Sverchok "Polygon Grid" node. I'm not sure how far we need this. because its' a much more complex node in reality.
Another thing is that I think both vertices of hexagon or Centers of a hexagon are important information that's needed.
Current workaround is to Replicate "Circle Mesh" Node so we may potentially get vertices and centers of a hexagon, but it's difficult to make it mathematically correct.
Considering the fact we may need both vertices and centers of a hexagon as output. I think we need to make a separate node besides distribution matrices node?
What do you think?
image
image

@OmarEmaraDev
Copy link
Collaborator

So a Hexagonal Grid Mesh node?

@Gerstmann-Bradley
Copy link
Author

So a Hexagonal Grid Mesh node?

Yes, I think that's acceptable.

@OmarEmaraDev OmarEmaraDev added good first contribution New developers can implement this task. help wanted Developers from the community are welcome to implement this. to-do Accepted proposal that needs to be implemented. labels Apr 27, 2021
@dapa5900
Copy link

dapa5900 commented May 3, 2021

@OmarEmaraDev and @Gerstmann-Bradley

I built a setup for this a while ago and think I got the math right based on some algorithm I found online. You can check it out here, maybe it helps:

https://p7s1-my.sharepoint.com/:f:/g/personal/par0001d_belgium_fhm_de/Eq0yQVSYfZNHrVcE-YQ6pTIBZ_zEucGlNTBfCD39bn1zBw?e=iO5ozS

It would be cool, if this can be implemented natively. Thank you

@OmarEmaraDev
Copy link
Collaborator

@dapa5900 Seems to be similar to @harisreedhar's implementation in #1707. I want to merge a more general implementation though as I described there.

@harisreedhar
Copy link
Contributor

@OmarEmaraDev I have a patch for Hexagon distribution in Distribute Matrix node. Do you think it worth adding to master?

hexagon_preview.mp4

@OmarEmaraDev
Copy link
Collaborator

@harisreedhar Sure.

@lgmventura
Copy link

I consulted this reference when programming my music visualization software. It is a very helpful, exciting and interactive reference for understanding and programming hexagonal grids. I strongly recommend it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first contribution New developers can implement this task. help wanted Developers from the community are welcome to implement this. to-do Accepted proposal that needs to be implemented.
Projects
None yet
Development

No branches or pull requests

5 participants