From 2bdf33478be96160901038115fcfd28bdb35a687 Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Thu, 8 Aug 2019 13:12:51 -0500 Subject: [PATCH] Draft: WorkingPlane, Pythonic style, improved the docstrings --- src/Mod/Draft/WorkingPlane.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Mod/Draft/WorkingPlane.py b/src/Mod/Draft/WorkingPlane.py index bec131414c..f4f298f840 100644 --- a/src/Mod/Draft/WorkingPlane.py +++ b/src/Mod/Draft/WorkingPlane.py @@ -701,8 +701,8 @@ class plane: Returns ------- Base::Placement - A placement, comprised of a basepoint `Base::Vector3`, - and a rotation `Base::Rotation`. + A placement, comprised of a `Base` (`Base::Vector3`), + and a `Rotation` (`Base::Rotation`). """ m = DraftVecUtils.getPlaneRotation(self.u, self.v, self.axis) p = FreeCAD.Placement(m) @@ -723,6 +723,12 @@ class plane: rotated : bool, optional It defaults to `False`. If it is `True`, it switches `axis` with `-v` to produce a rotated placement. + + Returns + ------- + Base::Placement + A placement, comprised of a `Base` (`Base::Vector3`), + and a `Rotation` (`Base::Rotation`). """ if rotated: m = FreeCAD.Matrix(