From a482f644242456ad6ddf0306e1b37d8855342103 Mon Sep 17 00:00:00 2001 From: Maxime Curioni Date: Wed, 30 Jul 2008 01:51:40 +0000 Subject: =?UTF-8?q?soc-2008-mxcurioni:=20Tested=20SWIG-less=20environment?= =?UTF-8?q?=20more=20and=20understood=20why=20the=20former=20predicate=20m?= =?UTF-8?q?ethods=20were=20not=20working.=20As=20St=C3=A9phane=20had=20men?= =?UTF-8?q?tioned=20a=20few=20months=20ago,=20Freestyle=20uses=20SWIG=20di?= =?UTF-8?q?rectors=20to=20provide=20cross-language=20polymorphism.=20The?= =?UTF-8?q?=20API=20and=20the=20system=20I=20had=20provided=20did=20not=20?= =?UTF-8?q?support=20that=20feature=20and=20only=20implementations=20in=20?= =?UTF-8?q?C++=20were=20supported.=20To=20correct=20the=20problem,=20after?= =?UTF-8?q?=20researching=20how=20directors=20are=20implemented=20in=20SWI?= =?UTF-8?q?G,=20I=20provided=20the=20same=20functionality.=20So=20far,=20I?= =?UTF-8?q?=20only=20provided=20the=20code=20for=20the=20UnaryPredicate1D?= =?UTF-8?q?=20class=20and=20it=20works.=20The=20implementation=20is=20in?= =?UTF-8?q?=20intern/python/Director.cpp=20and=20Operators.cpp.=20I=20will?= =?UTF-8?q?=20port=20the=20remaining=20directors=20tonight=20and=20continu?= =?UTF-8?q?e=20to=20test=20it.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To prevent strokes from piling up after each render, I clear the canvas at each render now (as it should have been all along) --- source/blender/freestyle/intern/python/BPy_Convert.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/freestyle/intern/python/BPy_Convert.h') diff --git a/source/blender/freestyle/intern/python/BPy_Convert.h b/source/blender/freestyle/intern/python/BPy_Convert.h index 5b613b3c4c3..9e743f4b233 100644 --- a/source/blender/freestyle/intern/python/BPy_Convert.h +++ b/source/blender/freestyle/intern/python/BPy_Convert.h @@ -17,6 +17,9 @@ using namespace Geometry; // Interface0D, Interface0DIteratorNested, Interface0DIterator #include "../view_map/Interface0D.h" +// Interface1D +#include "../view_map/Interface1D.h" + // Material #include "../scene_graph/Material.h" @@ -71,6 +74,7 @@ PyObject * BPy_directedViewEdge_from_directedViewEdge( ViewVertex::directedViewE PyObject * BPy_FEdge_from_FEdge( FEdge& fe ); PyObject * BPy_Id_from_Id( Id& id ); PyObject * BPy_Interface0D_from_Interface0D( Interface0D& if0D ); +PyObject * BPy_Interface1D_from_Interface1D( Interface1D& if1D ); PyObject * BPy_IntegrationType_from_IntegrationType( int i ); PyObject * BPy_FrsMaterial_from_Material( Material& m ); PyObject * BPy_Nature_from_Nature( unsigned short n ); -- cgit v1.2.3