Friday, April 24, 2009

Cell identification in an hexagonal mesh

 


 

This C++ application is used to demonstrate how to quicly identify a cell in an hexagonal mesh.

The algorithm is only based on line equations which describe the hexagonal mesh. It is fast and simple.

The attached package contains the source code for two different graphical implementations. The first one is made with the Gtk library and the other with my own small library (Gfx).

The "Schemas" directory contains few quick draws to illustrate how it is done.

Enjoy !

Buzz

Package 

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Expansion shield for Arduino UNO

  Expansion shield for Arduino UNO Version : 14/04/2023 This little board and the source code are part of a CS Bomb-like project to be us...