ManevilleF / hexx

Hexagonal tools lib in rust
Apache License 2.0
276 stars 22 forks source link

Adds OutlineMeshBuilder. #151

Closed targrub closed 4 months ago

targrub commented 5 months ago

A quick-and-dirty implementation of mesh building for outlines around hexes. Probably visibly good only with ColorMaterials.

ManevilleF commented 4 months ago

Thanks for submitting this PR, this is a very interesting approach but I'm not a fan of using two HexLayouts with positive scale (here a hardcoded 1.1 scale factor) or having a separate builder.

I took some time to make a more generic approach, #152, through mesh insetting. Could you review it and try it out ? See if it can handle your outline use case ?