diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-11-25 02:18:38 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-01-28 18:33:58 +0400 |
commit | 54e90167704072f0105eb279e7431caa6c4d8e20 (patch) | |
tree | ce17a581373aa05cd040b3423b4c112d47ba7e57 /release/scripts/freestyle/styles/sketchy_topology_broken.py | |
parent | 6498b96ce7081db039354228213d72e8c70bd3aa (diff) |
Updated Freestyle API modules according to the new hierarchical package structure.
Additional bug fixes were also done along with the code updates:
* Fix for the use of old Interface1D.pointsBegin() and .pointsEnd() method names
in the definition of pyDensityAnisotropyF1D and pyViewMapGradientNormF1D.
* Fix for wrong data types (int instead of bool) for:
- pyChainSilhouetteGenericIterator constructor and its .orientation property in
modules/freestyle/chainingiterators.py.
- SpatialNoiseShader constructor in styles/external_contour_sketchy.py.
- ChainSilhouetteIterator constructor in styles/multiple_parameterization.py.
Diffstat (limited to 'release/scripts/freestyle/styles/sketchy_topology_broken.py')
-rw-r--r-- | release/scripts/freestyle/styles/sketchy_topology_broken.py | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/release/scripts/freestyle/styles/sketchy_topology_broken.py b/release/scripts/freestyle/styles/sketchy_topology_broken.py index 27669d20a4e..9b450f62f1d 100644 --- a/release/scripts/freestyle/styles/sketchy_topology_broken.py +++ b/release/scripts/freestyle/styles/sketchy_topology_broken.py @@ -23,11 +23,21 @@ # independantly from the 3D topology of objects, # and, second, so as to chain several times the same ViewEdge. -from ChainingIterators import pySketchyChainingIterator -from freestyle import IncreasingColorShader, IncreasingThicknessShader, Operators, \ - QuantitativeInvisibilityUP1D, SamplingShader, SmoothingShader, SpatialNoiseShader, \ - TextureAssignerShader, TrueUP1D -from shaders import pyBackboneStretcherNoCuspShader +from freestyle import Operators +from freestyle.chainingiterators import pySketchyChainingIterator +from freestyle.predicates import ( + QuantitativeInvisibilityUP1D, + TrueUP1D, + ) +from freestyle.shaders import ( + IncreasingColorShader, + IncreasingThicknessShader, + SamplingShader, + SmoothingShader, + SpatialNoiseShader, + TextureAssignerShader, + pyBackboneStretcherNoCuspShader + ) Operators.select(QuantitativeInvisibilityUP1D(0)) ## Chain 3 times each ViewEdge indpendantly from the |