From 0e10173ca92b8a12b37bf95cbb672889951636de Mon Sep 17 00:00:00 2001 From: Thomas Morley Date: Wed, 6 Jan 2016 19:01:09 +0100 Subject: Issue 4725 apply sign on orientation in make-bow-stencil This avoids ambiguity with bow-height and thickness --- scm/stencil.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'scm') diff --git a/scm/stencil.scm b/scm/stencil.scm index 5490e01c9c..bda7e29a8f 100644 --- a/scm/stencil.scm +++ b/scm/stencil.scm @@ -49,8 +49,6 @@ The higher the value of number @var{angularity}, the more angular the shape of the bow. @var{bow-height} determines the height of the bow. @var{orientation} determines, whether the bow is concave or convex. -@var{orientation} should be set to @val{-1} or @val{1}, other values are -possible but will affect the bow's height as well. Both variables are supplied to support independent usage. Done by calculating a horizontal unit-bow first, then moving all control-points @@ -77,9 +75,9 @@ Limitation: s-curves are currently not supported. ;;;; (1) calculate control-points for the horizontal unit-bow, ;; y-values for 2nd/3rd control-points (outer-control - (* 4/3 orientation (/ bow-height length-to-print))) + (* 4/3 (sign orientation) (/ bow-height length-to-print))) (inner-control - (* orientation + (* (sign orientation) (- (abs outer-control) (/ thickness length-to-print)))) ;; x-values for 2nd/3rd control-points depending on `angularity' (offset-index -- cgit v1.2.3