From ee09fc323af0a8915688c4f63bce87a95ba0134a Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Thu, 8 Aug 2019 16:34:17 -0500 Subject: [PATCH] Draft: WorkingPlane, Pythonic style, improved the docstrings --- src/Mod/Draft/WorkingPlane.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Mod/Draft/WorkingPlane.py b/src/Mod/Draft/WorkingPlane.py index 10f2a0fdcd..49777844ac 100644 --- a/src/Mod/Draft/WorkingPlane.py +++ b/src/Mod/Draft/WorkingPlane.py @@ -795,14 +795,21 @@ class plane: self.axis = rot.multVec(FreeCAD.Vector(0, 0, 1)) if rebase: self.position = pl.Base - + def inverse(self): - "inverts the direction of the working plane" + """Invert the direction of the plane. + + It inverts the `u` and `axis` vectors. + """ self.u = self.u.negative() self.axis = self.axis.negative() def save(self): - "stores the current plane state" + """Store the plane attributes. + + Store `u`, `v`, `axis`, `position` and `weak` + in a list in `stored`. + """ self.stored = [self.u, self.v, self.axis, self.position, self.weak] def restore(self):