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.

GPS 4 car

Version: 25/04/2024 This application, recently installed in my NISSAN Patrol, can display: Speed, Cap, Altitude, Time and Date. It is based ...