This (commercial) utility I wrote draws a grid of them that fit
inside a polygon.
http://www.ctmap.com/gisnet/catalog/sw/hexgrid.html.

But the dead easy way to draw one hexagon at a point (if you
don't care about its orientation) is to create a buffer with only
6 sides: 
objHex = buffer (objPnt, 6, 100, "ft")
which creates a hexagon with a 100 ft radius.

To create a region object with any rotational orientation is a
bit harder, especially if you want to use spherical trig to get
the distances and areas right. 

- Bill Thoen
------------------------------------------------------------ 
GISnet, 1401 Walnut St., Suite C, Boulder, CO  80302
tel: 303-786-9961, fax: 303-443-4856
mailto:[EMAIL PROTECTED], http://www.ctmap.com/gisnet
------------------------------------------------------------


Colin Henderson wrote:
> 
> Does anyone know how I can make a mapbasic program to draw hexagons? I have
> been trying in vain to calculate angles etc.  The idea is that the user will
> click a location on a map and the program will ask for a cell size, then
> draw a hexagon with a centroid at the place where the user clicked.  I can
> get everything to work, except the drawing of a hexagon!!! Any help anyone
> can give would be greatly appreciated!



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to