From 5bdbe2db6115618dce849902de5e9cbc7b59290f Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Sun, 28 Feb 2016 19:28:35 -0300 Subject: [PATCH] Draft: better docstring for offset - fixes #2199 --- src/Mod/Draft/Draft.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index ab1955ddf6..2db3f59b21 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -1451,13 +1451,15 @@ def scale(objectslist,delta=Vector(1,1,1),center=Vector(0,0,0),copy=False,legacy return obj def offset(obj,delta,copy=False,bind=False,sym=False,occ=False): - '''offset(object,Vector,[copymode],[bind]): offsets the given wire by - applying the given Vector to its first vertex. If copymode is + '''offset(object,delta,[copymode],[bind]): offsets the given wire by + applying the given delta Vector to its first vertex. If copymode is True, another object is created, otherwise the same object gets offsetted. If bind is True, and provided the wire is open, the original and the offsetted wires will be bound by their endpoints, forming a face if sym is True, bind must be true too, and the offset is made on both - sides, the total width being the given delta length.''' + sides, the total width being the given delta length. If offsetting a + BSpline, the delta must not be a Vector but a list of Vectors, one for + each node of the spline.''' import Part, DraftGeomUtils newwire = None delete = None