FPGA-Research-Manchester / FABulous

Fabric generator and CAD tools
https://fabulous.readthedocs.io/en/latest/
Apache License 2.0
147 stars 33 forks source link

Dim calculation fix + small fixes #119

Closed JakobTernes closed 12 months ago

JakobTernes commented 1 year ago

Fix of width/height calculation of the fabrics geometry, plus some tiny fixes

To calculate the fabrics width/height, the bottom right tile was used - tile generation starts at (0, 0), thus the location and dimensions of this tile was used to determine the overall width and height of the fabric by using its location and width/height. However, the tile can be a NULL-Tile, rendering it useless for determining the dimensions of the fabric. This fix should resolve the issue.