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

# #
# 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 ChainingIterators import * from shaders import * #import timing

print "select"
#timing.start()
Operators.select(QuantitativeInvisibilityUP1D(0))
#timing.finish()
#print "select time out : ", timing.milli(), "ms."

#Operators.select(QuantitativeInvisibilityUP1D(0))
#Operators.bidirectionalChain(ChainSilhouetteIterator(), NotUP1D(QuantitativeInvisibilityUP1D(0)))
print "chain"
#timing.start()
Operators.bidirectionalChain(ChainSilhouetteIterator())
#timing.finish()
#print "chain time out : ", timing.milli(), "ms."

shaders_list = [
SamplingShader(2),
#pyNonLinearVaryingThicknessShader(4,25,0.6),
#SmoothingShader(100, 0.05, 0, 0.2, 0, 0, 0, 1),
#pyBackboneStretcherNoCuspShader(30),
ConstantThicknessShader(8),
ConstantColorShader(0.0,0.0,0.0)
#pySinusDisplacementShader(10,11),
#IncreasingColorShader(1,0,0,1,0,1,0,1)
]
print "shade"
#timing.start()
Operators.create(TrueUP1D(), shaders_list)
#timing.finish()
#print "shade time out : ", timing.milli(), "ms."