Add x_offset, y_offset for making small alignment tweaks.

A bit hacky, but sometimes the honeycombs make an ugly pattern
along the perimeter and you'd like to nudge it a little.
This commit is contained in:
voussoir 2021-08-17 14:12:40 -07:00
parent 35113c9a79
commit 244ae02c41
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -84,6 +84,8 @@ module interior_honeycomb(
x_span,
y_span,
perimeter,
x_offset=0,
y_offset=0,
rotate=0,
center=false
)
@ -98,6 +100,7 @@ module interior_honeycomb(
intersection()
{
rotate([0, 0, rotate])
translate([x_offset, y_offset])
honeycomb_mesh(outer_radius, inner_radius, x_span, y_span, center=center);
children();
}