diff options
Diffstat (limited to 'release/scripts/freestyle/styles/split_at_tvertices.py')
-rw-r--r-- | release/scripts/freestyle/styles/split_at_tvertices.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/release/scripts/freestyle/styles/split_at_tvertices.py b/release/scripts/freestyle/styles/split_at_tvertices.py index 8978b98f56b..84a51eb936b 100644 --- a/release/scripts/freestyle/styles/split_at_tvertices.py +++ b/release/scripts/freestyle/styles/split_at_tvertices.py @@ -27,22 +27,22 @@ from freestyle.predicates import ( QuantitativeInvisibilityUP1D, TrueUP1D, pyVertexNatureUP0D, - ) +) from freestyle.shaders import ( ConstantThicknessShader, IncreasingColorShader, - ) +) from freestyle.types import Nature, Operators Operators.select(QuantitativeInvisibilityUP1D(0)) Operators.bidirectional_chain(ChainSilhouetteIterator(), NotUP1D(QuantitativeInvisibilityUP1D(0))) start = pyVertexNatureUP0D(Nature.T_VERTEX) -## use the same predicate to decide where to start and where to stop -## the strokes: +# use the same predicate to decide where to start and where to stop +# the strokes: Operators.sequential_split(start, start, 10) shaders_list = [ ConstantThicknessShader(5), IncreasingColorShader(1, 0, 0, 1, 0, 1, 0, 1), - ] +] Operators.create(TrueUP1D(), shaders_list) |