diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-28 19:16:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-28 19:20:59 +0400 |
commit | a283b099b13a24b0361f9c063caa9426a70de1e4 (patch) | |
tree | 54fbe71e5d7837a4fc782e83e0bfb3aa95efd38a /release/scripts/freestyle/styles | |
parent | deab0d10402b59652ec5e19836856eb238af863e (diff) |
Code cleanup: pep8
Diffstat (limited to 'release/scripts/freestyle/styles')
3 files changed, 5 insertions, 4 deletions
diff --git a/release/scripts/freestyle/styles/apriori_density.py b/release/scripts/freestyle/styles/apriori_density.py index 22f924d8e98..b52bcfbeb4e 100644 --- a/release/scripts/freestyle/styles/apriori_density.py +++ b/release/scripts/freestyle/styles/apriori_density.py @@ -42,7 +42,7 @@ bpred = TrueBP1D() upred = AndUP1D(QuantitativeInvisibilityUP1D(0), pyHighViewMapDensityUP1D(0.0007,5)) Operators.bidirectional_chain(ChainPredicateIterator(upred, bpred), NotUP1D(QuantitativeInvisibilityUP1D(0))) shaders_list = [ - ConstantThicknessShader(2), - ConstantColorShader(0.0, 0.0, 0.0,1) - ] + ConstantThicknessShader(2), + ConstantColorShader(0.0, 0.0, 0.0, 1.0) + ] Operators.create(TrueUP1D(), shaders_list) diff --git a/release/scripts/freestyle/styles/long_anisotropically_dense.py b/release/scripts/freestyle/styles/long_anisotropically_dense.py index 890696d7779..50bec4f1a79 100644 --- a/release/scripts/freestyle/styles/long_anisotropically_dense.py +++ b/release/scripts/freestyle/styles/long_anisotropically_dense.py @@ -55,6 +55,7 @@ class pyDensityUP1D(UnaryPredicate1D): self._integration = integration self._func = DensityF1D(self._wsize, self._integration, sampling) self._func2 = DensityF1D(self._wsize, IntegrationType.MAX, sampling) + def __call__(self, inter): c = self._func(inter) m = self._func2(inter) diff --git a/release/scripts/freestyle/styles/multiple_parameterization.py b/release/scripts/freestyle/styles/multiple_parameterization.py index 482d8bd94f7..bf0691f2ce1 100644 --- a/release/scripts/freestyle/styles/multiple_parameterization.py +++ b/release/scripts/freestyle/styles/multiple_parameterization.py @@ -53,6 +53,6 @@ shaders_list = [ ConstantColorShader(0.0, 0.0, 0.0), IncreasingColorShader(1, 0, 0, 1, 0, 1, 0, 1), TextureAssignerShader(-1), - pyHLRShader(), ## this shader draws only visible portions + pyHLRShader(), ## this shader draws only visible portions ] Operators.create(TrueUP1D(), shaders_list) |