×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Hexagonal Grid Boundary

Hexagonal Grid Boundary

Hexagonal Grid Boundary

(OP)
Hey Guys

I have drawn in MatLab a hexagonal grid, with a central cell and a number of  tiers, which could be one tier =7 hexagons in total or two tiers =19 hexagons in total...etc.

The major problem that I have been facing for the
past two days is that I want to check wether a cetain point is lying  nside this grid of hexagons or not. Note that I cannt use the "inpolygon" function since the external vertices of the grid do not form a regular ploygon.

Please I would be glad to hear any suggestions.I have heard some suggestions, but the problem is that they only work for a fixed and not generic number of tiers, so practically they are useless.


Thank You for your help.

I would really appreciate it.


RE: Hexagonal Grid Boundary

Could you please send me your codes for the Hexagonal grid ( 7 hexagons.Thanx

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources