This PR fixes https://github.com/gumyr/build123d/issues/633 by adding a major_radius: bool to HexLocations that defaults to False (to preserve current behavior). This PR is technically breaking because the prior apothem parameter had to be named to a more generic radius which can be either a major radius or minor radius (aka apothem).
Here is an example of the new functionality:
hex = RegularPolygon(1, 6)
with BuildSketch() as s:
with HexLocations(1, 3, 3, False) as hloc:
add(hex)
with Locations((6,0)):
with HexLocations(1, 3, 3, True) as hloc2:
add(hex)
This PR fixes https://github.com/gumyr/build123d/issues/633 by adding a major_radius: bool to HexLocations that defaults to False (to preserve current behavior). This PR is technically breaking because the prior
apothem
parameter had to be named to a more genericradius
which can be either a major radius or minor radius (aka apothem).Here is an example of the new functionality: