blender/release/scripts/freestyle/style_modules
Tamito Kajiyama 731d08d497 Freestyle Python API improvements - part 3.
Major API updates were made to address code review comments.
This revision mostly focuses on Python wrappers of C++ 0D and 1D elements (i.e.,
Interface0D and Interface1D, as well as their subclasses).

* Most getter/setter methods were reimplemented as attributes using PyGetSetDef.
Vector attributes are now implemented based on mathutils callbacks.  Boolean
attributes now only accept boolean values.

* The __getitem__ method was removed and the Sequence protocol was used instead.

* The naming of methods and attributes was fixed to follow the naming conventions
of the Blender Python API (i.e., lower case + underscores for methods and attributes,
and CamelCase for classes).  Some naming inconsistency within the Freestyle Python
API was also addressed.

* The Freestyle API had a number of method names including prefix/suffix "A" and
"B", and their meanings were inconsistent (i.e., referring to different things
depending on the classes).  The names with these two letters were replaced with
more straightforward names.  Also some attribute names were changed so as to indicate
the type of the value (e.g., FEdge.next_fedge instead of FEdge.next_edge) in line
with other names explicitly indicating what the value is (e.g., SVertex.viewvertex).

* In addition, some code clean-up was done in both C++ and Python.

Notes:

In summary, the following irregular naming changes were made through this revision
(those resulting from regular changes of naming conventions are not listed):

- CurvePoint: {A,B} --> {first,second}_svertex
- FEdge: vertex{A,B} --> {first,second}_svertex
- FEdge: {next,previous}Edge --> {next,previous}_fedge
- FEdgeSharp: normal{A,B} --> normal_{right,left}
- FEdgeSharp: {a,b}FaceMark --> face_mark_{right,left}
- FEdgeSharp: {a,b}Material --> material_{right,left}
- FEdgeSharp: {a,b}MaterialIndex --> material_index_{right,left}
- FrsCurve: empty --> is_empty
- FrsCurve: nSegments --> segments_size
- TVertex: mate() --> get_mate()
- ViewEdge: fedge{A,B} --> {first,last}_fedge
- ViewEdge: setaShape, aShape --> occlude
- ViewEdge: {A,B} --> {first,last}_viewvertex
- ViewMap: getScene3dBBox --> scene_bbox
2013-02-14 23:48:34 +00:00
..
anisotropic_diffusion.py Freestyle Python API improvements - part 1. 2013-01-27 20:17:49 +00:00
apriori_and_causal_density.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
apriori_density.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
backbone_stretcher.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
blueprint_circles.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
blueprint_ellipses.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
blueprint_squares.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
cartoon.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
ChainingIterators.py Freestyle Python API improvements - part 3. 2013-02-14 23:48:34 +00:00
contour.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
curvature2d.py Freestyle Python API improvements - part 1. 2013-01-27 20:17:49 +00:00
external_contour_sketchy.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
external_contour_smooth.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
external_contour.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
extra-lines.sml Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
freestyle_init.py Merged changes in the trunk up to revision 28247. 2010-04-18 02:03:19 +00:00
Functions0D.py Freestyle Python API improvements - part 3. 2013-02-14 23:48:34 +00:00
Functions1D.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
haloing.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
ignore_small_occlusions.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
invisible_lines.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
japanese_bigbrush.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
logical_operators.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
long_anisotropically_dense.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
multiple_parameterization.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
nature.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
near_lines.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
occluded_by_specific_object.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
parameter_editor.py Freestyle Python API improvements - part 3. 2013-02-14 23:48:34 +00:00
polygonalize.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
PredicatesB1D.py Freestyle Python API improvements - part 3. 2013-02-14 23:48:34 +00:00
PredicatesU0D.py Freestyle Python API improvements - part 3. 2013-02-14 23:48:34 +00:00
PredicatesU1D.py Freestyle Python API improvements - part 3. 2013-02-14 23:48:34 +00:00
qi0_not_external_contour.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
qi0.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
qi1.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
qi2.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
sequentialsplit_sketchy.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
shaders.py Freestyle Python API improvements - part 3. 2013-02-14 23:48:34 +00:00
sketchy_multiple_parameterization.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
sketchy_topology_broken.py Freestyle Python API improvements - part 1. 2013-01-27 20:17:49 +00:00
sketchy_topology_preserved.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
split_at_highest_2d_curvatures.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
split_at_tvertices.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
stroke_texture.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
suggestive.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
thickness_fof_depth_discontinuity.py Freestyle Python API improvements - part 1. 2013-01-27 20:17:49 +00:00
tipremover.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
tvertex_remover.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00
uniformpruning_zsort.py Further fix for svn:executable. 2012-12-11 23:05:04 +00:00