From 897fc230295e59e27edc36d4273d862e13d4ca42 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Thu, 23 Aug 2018 22:35:52 +0200 Subject: [PATCH] Doc string for Boxes.flex2D() --- boxes/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/boxes/__init__.py b/boxes/__init__.py index 8619407..ad7daa7 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -1336,6 +1336,13 @@ class Boxes: self.hole(j * 2 * w + i * w, -i * 2 * dist, r) def flex2D(self, x, y, width=1): + """ + Fill a rectangle with a pattern allowing bending in both axis + + :param x: width + :param y: height + :param width: width between the lines of the pattern in multiples of thickness + """ width *= self.thickness cx = int(x // (5 * width)) wx = x / 5. / cx