diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-07-07 00:07:07 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2010-07-07 00:07:07 +0400 |
commit | d347a27a977db20c0437578f6505432cec3775fb (patch) | |
tree | 18770d596c0ce21824c02860879c935a2fa8c3a7 /release/scripts/freestyle/style_modules/Functions0D.py | |
parent | ae9b9b43e6a82e8fa88408756b072cb7d9f35220 (diff) |
* Bug fixes by Stéphane Grabli with respect to pyZDependingThicknessShader,
pyMaterialColorShader, pyBluePrintEllipsesShader and pyBluePrintSquaresShader.
* Fixes for Vector instantiation that now takes only a sequence object of
2, 3, or 4 elements -- an API change in revision 28417.
* Deleted vector.py that is no longer used.
Diffstat (limited to 'release/scripts/freestyle/style_modules/Functions0D.py')
-rwxr-xr-x | release/scripts/freestyle/style_modules/Functions0D.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/freestyle/style_modules/Functions0D.py b/release/scripts/freestyle/style_modules/Functions0D.py index fd7346df7df..2881a80c386 100755 --- a/release/scripts/freestyle/style_modules/Functions0D.py +++ b/release/scripts/freestyle/style_modules/Functions0D.py @@ -62,7 +62,7 @@ class pyViewMapGradientVectorF0D(UnaryFunction0DVec2f): p = iter.getObject().getPoint2D() gx = ReadCompleteViewMapPixelCF(self._l, int(p.x()+self._step), int(p.y()))- ReadCompleteViewMapPixelCF(self._l, int(p.x()), int(p.y())) gy = ReadCompleteViewMapPixelCF(self._l, int(p.x()), int(p.y()+self._step))- ReadCompleteViewMapPixelCF(self._l, int(p.x()), int(p.y())) - return Vector(gx, gy) + return Vector([gx, gy]) class pyViewMapGradientNormF0D(UnaryFunction0DDouble): def __init__(self, l): @@ -75,7 +75,7 @@ class pyViewMapGradientNormF0D(UnaryFunction0DDouble): p = iter.getObject().getPoint2D() gx = ReadCompleteViewMapPixelCF(self._l, int(p.x()+self._step), int(p.y()))- ReadCompleteViewMapPixelCF(self._l, int(p.x()), int(p.y())) gy = ReadCompleteViewMapPixelCF(self._l, int(p.x()), int(p.y()+self._step))- ReadCompleteViewMapPixelCF(self._l, int(p.x()), int(p.y())) - grad = Vector(gx, gy) + grad = Vector([gx, gy]) return grad.length |