Closed mgrider closed 2 years ago
Rectangular generator has been fixed in version 0.4.10.
During implementation of this fix I realized that convertor and generator might need some redesign. At this moment rectangular generator produces rectangular grids for all four possible configurations. But I'm not fully satisfied. Let's keep track in issue no. #14.
Thank you for working on this!
Describe the bug As mentioned in #12, when generating cells using the
.rectangle
GridShape
, the resulting grid appears rotated from what is expected in 3 out of 4 possible combinations ofOrientation
andOffsetLayout
.To Reproduce It is probably easiest to reproduce this behavior by drawing/visualizing the resulting grid. Here are some screenshots generated using the SKHexGrid project. The coordinates shown are Axial.
Orientation:
.pointyOnTop
, OffsetLayout:.even
Orientation:
.pointyOnTop
, OffsetLayout:.odd
Orientation:
.flatOnTop
, OffsetLayout:.even
Orientation:
.flatOnTop
, OffsetLayout:.odd
Expected behavior You can see from the screenshots that only the
.flatOnTop
,.even
layout appears to be correct.