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

# #
# This file is part of a style sheet example from the Freestyle application #
# Copyright (C) 2001-2004 Stephane Grabli (Stephane.Grabli@imag.fr) #
# #
# http://artis.imag.fr/Software/Freestyle #
# #
###############################################################################


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