From 62a9b28e4c772be9bc1afa30c70dccb319b80160 Mon Sep 17 00:00:00 2001 From: josch Date: Mon, 21 May 2012 11:42:57 +0200 Subject: [PATCH] give credit to Jake Gordon and Jim Scott --- arrange_spread2.py | 6 ++++++ legacy/arrange_spread.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/arrange_spread2.py b/arrange_spread2.py index 7b6b5df..8c1861e 100644 --- a/arrange_spread2.py +++ b/arrange_spread2.py @@ -17,6 +17,12 @@ # You should have received a copy of the GNU General Public License # along with Sisyphus. If not, see . +# inspired by Jake Gordon's bin-packing algorithm +# https://github.com/jakesgordon/bin-packing/blob/master/js/packer.js +# http://codeincomplete.com/posts/2011/5/7/bin_packing/ +# Jake Gordon was inspired by Jim Scott's solution on how to pack lightmaps +# http://www.blackpawn.com/texts/lightmaps/default.html + import random # rounds to the next biggest even number diff --git a/legacy/arrange_spread.py b/legacy/arrange_spread.py index 7208b92..176a74f 100644 --- a/legacy/arrange_spread.py +++ b/legacy/arrange_spread.py @@ -17,6 +17,12 @@ # You should have received a copy of the GNU General Public License # along with Sisyphus. If not, see . +# inspired by Jake Gordon's bin-packing algorithm +# https://github.com/jakesgordon/bin-packing/blob/master/js/packer.js +# http://codeincomplete.com/posts/2011/5/7/bin_packing/ +# Jake Gordon was inspired by Jim Scott's solution on how to pack lightmaps +# http://www.blackpawn.com/texts/lightmaps/default.html + import svg import random