summaryrefslogtreecommitdiff
path: root/scm
diff options
context:
space:
mode:
authorThomas Morley <thomasmorley65@gmail.com>2016-01-06 19:01:09 +0100
committerThomas Morley <thomasmorley65@gmail.com>2016-01-15 22:45:23 +0100
commit0e10173ca92b8a12b37bf95cbb672889951636de (patch)
tree8146e9b07f4cd9ba9b241224f59d5d84b753518b /scm
parentc27954a2ec2c13e14666408982e156bea20e806a (diff)
Issue 4725 apply sign on orientation in make-bow-stencil
This avoids ambiguity with bow-height and thickness
Diffstat (limited to 'scm')
-rw-r--r--scm/stencil.scm6
1 files changed, 2 insertions, 4 deletions
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