###############################################################################

# #
# This file is part of a style sheet example from the Freestyle application #
# Copyright (C) 2001-2005 Stephane Grabli #
# #
# http://freestyle.sourceforge.net #
# #
###############################################################################


from Freestyle import * from logical_operators import * from PredicatesU1D import * from shaders import * from ChainingIterators import *
id_list = [Id(2,0)]
upred = AndUP1D(OrUP1D(QuantitativeInvisibilityUP1D(0), NotUP1D(pyIsOccludedByItselfUP1D())), pyNatureUP1D(SILHOUETTE))
upred2 = AndUP1D(upred, pyShapeIdUP1D(id_list))
bpred = SameShapeIdBP1D()
Operators.select(upred2)
Operators.select(upred)
Operators.bidirectionalChain(pyChainSilhouetteIterator())
shaders_list = [
IncreasingColorShader(1, 0, 0, 0.9, 0.1, 0.1, 0.1, 0.9),
SamplingShader(4),
TextureAssignerShader(7),
pyZDependingThicknessShader(2, 5),
SmoothingShader(20, 0.1, 0, 0.2, 0, 0, 0, 1)
]
Operators.create(TrueUP1D(), shaders_list)