Draft: WorkingPlane, Pythonic style, improved the docstrings

This commit is contained in:
vocx-fc
2019-08-08 16:38:01 -05:00
committed by Yorik van Havre
parent ee09fc323a
commit ad74402d9f

View File

@@ -813,6 +813,11 @@ class plane:
self.stored = [self.u, self.v, self.axis, self.position, self.weak]
def restore(self):
"""Restore the plane attributes that were saved.
Restores the attributes `u`, `v`, `axis`, `position` and `weak`
from `stored`, and set `stored` to `None`.
"""
"restores a previously saved plane state, if exists"
if self.stored:
self.u = self.stored[0]