diff options
Diffstat (limited to 'release/scripts/freestyle/styles/polygonalize.py')
-rw-r--r-- | release/scripts/freestyle/styles/polygonalize.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/release/scripts/freestyle/styles/polygonalize.py b/release/scripts/freestyle/styles/polygonalize.py index e570e15ca6c..7291f145047 100644 --- a/release/scripts/freestyle/styles/polygonalize.py +++ b/release/scripts/freestyle/styles/polygonalize.py @@ -21,9 +21,19 @@ # Date : 04/08/2005 # Purpose : Make the strokes more "polygonal" -from freestyle import ChainSilhouetteIterator, ConstantColorShader, ConstantThicknessShader, \ - Operators, PolygonalizationShader, QuantitativeInvisibilityUP1D, SamplingShader, TrueUP1D -from logical_operators import NotUP1D +from freestyle import Operators +from freestyle.chainingiterators import ChainSilhouetteIterator +from freestyle.predicates import ( + NotUP1D, + QuantitativeInvisibilityUP1D, + TrueUP1D, + ) +from freestyle.shaders import ( + ConstantColorShader, + ConstantThicknessShader, + PolygonalizationShader, + SamplingShader, + ) Operators.select(QuantitativeInvisibilityUP1D(0)) Operators.bidirectional_chain(ChainSilhouetteIterator(), NotUP1D(QuantitativeInvisibilityUP1D(0))) |