Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-02-25 03:43:40 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2013-02-25 03:43:40 +0400
commit21c10788d720b9088794ebf1b2578221deeb6eaf (patch)
tree4e3f0eb00da5c76b57f09430f82dc8f7a210adb4 /release/scripts/freestyle/style_modules/sketchy_topology_preserved.py
parentd120ec146d3c28b7243371b0de1edf4ba590470c (diff)
Freestyle Python API improvements - part 9.
* Fix for wild card import statements (e.g., "from Freestyle import *") was done. Now import statements are either without using "from" or with all imported names explicitly listed. * GNU GPL header blocks were added to Python programs. Additional code clean-up was also made. * Removed freestyle_init.py and extra-lines.sml that were no longer used.
Diffstat (limited to 'release/scripts/freestyle/style_modules/sketchy_topology_preserved.py')
-rw-r--r--release/scripts/freestyle/style_modules/sketchy_topology_preserved.py55
1 files changed, 24 insertions, 31 deletions
diff --git a/release/scripts/freestyle/style_modules/sketchy_topology_preserved.py b/release/scripts/freestyle/style_modules/sketchy_topology_preserved.py
index 8111f449bb3..4b525b97f04 100644
--- a/release/scripts/freestyle/style_modules/sketchy_topology_preserved.py
+++ b/release/scripts/freestyle/style_modules/sketchy_topology_preserved.py
@@ -1,15 +1,4 @@
-#
-# Filename : sketchy_topology_preserved.py
-# Author : Stephane Grabli
-# Date : 04/08/2005
-# Purpose : The topology of the strokes is built
-# so as to chain several times the same ViewEdge.
-# The topology of the objects is preserved
-#
-#############################################################################
-#
-# Copyright (C) : Please refer to the COPYRIGHT file distributed
-# with this source distribution.
+# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -22,28 +11,32 @@
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
-#############################################################################
+# ##### END GPL LICENSE BLOCK #####
-from freestyle_init import *
-from logical_operators import *
-from ChainingIterators import *
-from PredicatesU1D import *
-from shaders import *
+# Filename : sketchy_topology_preserved.py
+# Author : Stephane Grabli
+# Date : 04/08/2005
+# Purpose : The topology of the strokes is built
+# so as to chain several times the same ViewEdge.
+# The topology of the objects is preserved
+
+from ChainingIterators import pySketchyChainSilhouetteIterator
+from Freestyle import ConstantColorShader, IncreasingThicknessShader, Operators, \
+ QuantitativeInvisibilityUP1D, SamplingShader, SmoothingShader, SpatialNoiseShader, \
+ TextureAssignerShader, TrueUP1D
upred = QuantitativeInvisibilityUP1D(0)
Operators.select(upred)
-Operators.bidirectional_chain(pySketchyChainSilhouetteIterator(3,1))
-shaders_list = [
- SamplingShader(4),
- SpatialNoiseShader(20, 220, 2, True, True),
- IncreasingThicknessShader(4, 8),
- SmoothingShader(300, 0.05, 0, 0.2, 0, 0, 0, 0.5),
- ConstantColorShader(0.6,0.2,0.0),
- TextureAssignerShader(4),
- ]
-
+Operators.bidirectional_chain(pySketchyChainSilhouetteIterator(3, True))
+shaders_list = [
+ SamplingShader(4),
+ SpatialNoiseShader(20, 220, 2, True, True),
+ IncreasingThicknessShader(4, 8),
+ SmoothingShader(300, 0.05, 0, 0.2, 0, 0, 0, 0.5),
+ ConstantColorShader(0.6, 0.2, 0.0),
+ TextureAssignerShader(4),
+ ]
Operators.create(TrueUP1D(), shaders_list)
-