Blender Git Loki

Git Commits -> Revision 3ca0870

Revision 3ca0870 by Tamito Kajiyama (master)
May 31, 2015, 14:16 (GMT)
Improvements to the Freestyle Python API (needed by the SVG Exporter)

This patch adds some new functionality to the Freestyle Python API, notably:

- MaterialBP1D, checks whether the supplied arguments have the same material
- Fixes a potential crash in CurvePoint.fedge (due to NULL pointer)
- Makes (error handling in) boolean predicates more robust
- Adds a BoundingBox type, to make working with bounding boxes easier
- Adds several new functions (get_object_name, get_strokes, is_poly_clockwise, material_from_fedge)
- Adds a StrokeCollector StrokeShader, that collects all the strokes from a specific call to Operators.create()
- Adds hashing and rich comparison to the FrsMaterial type

These new features (most of them, anyway) are needed for making a more robust SVG exporter that supports holes in fills.

Reviewers: kjym3, campbellbarton

Subscribers: campbellbarton

Projects: #bf_blender

Differential Revision: https://developer.blender.org/D1245

Commit Details:

Full Hash: 3ca0870023bb71bc929925a8fc8d172c09df710f
Parent Commit: 3100fbe
Lines Changed: +190, -41

6 Modified Paths:

/release/scripts/freestyle/modules/freestyle/functions.py (+4, -2) (Diff)
/release/scripts/freestyle/modules/freestyle/predicates.py (+34, -19) (Diff)
/release/scripts/freestyle/modules/freestyle/shaders.py (+4, -4) (Diff)
/release/scripts/freestyle/modules/freestyle/utils.py (+97, -13) (Diff)
/source/blender/freestyle/intern/python/BPy_FrsMaterial.cpp (+47, -2) (Diff)
/source/blender/freestyle/intern/python/Interface0D/BPy_CurvePoint.cpp (+4, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021