[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [15727] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/python: soc-2008-mxcurioni: Added first batch of Iterators: AdjacencyIterator, Interface0DIterator, CurvePointIterator, StrokeVertexIterator, SVertexIterator, orientedViewEdgeIterator.
Maxime Curioni
maxime.curioni at gmail.com
Thu Jul 24 06:49:12 CEST 2008
Revision: 15727
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=15727
Author: mxcurioni
Date: 2008-07-24 06:48:34 +0200 (Thu, 24 Jul 2008)
Log Message:
-----------
soc-2008-mxcurioni: Added first batch of Iterators: AdjacencyIterator, Interface0DIterator, CurvePointIterator, StrokeVertexIterator, SVertexIterator, orientedViewEdgeIterator.
Modified Paths:
--------------
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Convert.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Convert.h
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Iterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Interface0D/BPy_ViewVertex.h
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Interface1D/BPy_Stroke.cpp
Added Paths:
-----------
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.h
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_ChainingPredicateIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_ChainingSilhouetteIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.h
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.h
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_SVertexIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_SVertexIterator.h
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.h
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_ViewEdgeIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_ViewEdgeIterator.h
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.h
Removed Paths:
-------------
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_CurvePointIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Interface0DIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_StrokeVertexIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_ViewEdgeIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_orientedViewEdgeIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/ViewEdgeIterator/BPy_ChainingIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/ViewEdgeIterator/ChainingIterator/BPy_ChainPredicateIterator.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/ViewEdgeIterator/ChainingIterator/BPy_ChainSilhouetteIterator.cpp
Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Convert.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Convert.cpp 2008-07-24 02:09:44 UTC (rev 15726)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Convert.cpp 2008-07-24 04:48:34 UTC (rev 15727)
@@ -12,6 +12,9 @@
return PyBool_FromLong( b ? 1 : 0);
}
+bool bool_from_PyBool( PyObject *b ) {
+ return b == Py_True;
+}
PyObject * Vector_from_Vec2f( Vec2f& vec ) {
float vec_data[2]; // because vec->_coord is protected
Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Convert.h
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Convert.h 2008-07-24 02:09:44 UTC (rev 15726)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Convert.h 2008-07-24 04:48:34 UTC (rev 15727)
@@ -25,6 +25,7 @@
#include "api2_2x/gen_utils.h"
PyObject * PyBool_from_bool( bool b );
+bool bool_from_PyBool( PyObject *b );
PyObject * Vector_from_Vec2f( Vec2f& v );
PyObject * Vector_from_Vec3f( Vec3f& v );
Deleted: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_CurvePointIterator.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_CurvePointIterator.cpp 2008-07-24 02:09:44 UTC (rev 15726)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_CurvePointIterator.cpp 2008-07-24 04:48:34 UTC (rev 15727)
@@ -1,284 +0,0 @@
- PyObject *_wrap_CurvePointIterator__CurvilinearLength_set(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__CurvilinearLength_get(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__step_set(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__step_get(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator___A_set(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator___A_get(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator___B_set(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator___B_get(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__begin_set(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__begin_get(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__end_set(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__end_get(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__n_set(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__n_get(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__currentn_set(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__currentn_get(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__t_set(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__t_get(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__Point_set(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__Point_get(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__CurveLength_set(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator__CurveLength_get(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_new_CurvePointIterator__SWIG_0(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_new_CurvePointIterator__SWIG_1(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_new_CurvePointIterator__SWIG_2(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_new_CurvePointIterator(PyObject *self, PyObject *args) {
-}
-
-
- PyObject *_wrap_delete_CurvePointIterator(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_copy(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_CastToInterface0DIterator(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_getExactTypeName(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator___eq__(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_getObject(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator___deref__(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_isBegin(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_isEnd(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_getX(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_getY(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_getZ(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_getPoint3D(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_getProjectedX(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_getProjectedY(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_getProjectedZ(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_getPoint2D(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_getFEdge(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_getId(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_getNature(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_castToSVertex(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_castToViewVertex(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_castToNonTVertex(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_castToTVertex(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_A(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_B(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_t2d(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_SetA(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_SetB(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_SetT2d(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_fedge(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_point2d(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_point3d(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_normal(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_shape(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_occluders_begin(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_occluders_end(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_occluders_empty(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_occluders_size(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_occludee(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_occluded_shape(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_occludee_empty(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_z_discontinuity(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_curvatureFredo(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_CurvePointIterator_directionFredo(PyObject *self , PyObject *args) {
-}
-
-
Deleted: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Interface0DIterator.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Interface0DIterator.cpp 2008-07-24 02:09:44 UTC (rev 15726)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_Interface0DIterator.cpp 2008-07-24 04:48:34 UTC (rev 15727)
@@ -1,104 +0,0 @@
- PyObject *_wrap_Interface0DIterator_getExactTypeName(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_getObject(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator___deref__(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_increment(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_decrement(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_isBegin(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_isEnd(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator___eq__(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator___ne__(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_t(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_u(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_getX(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_getY(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_getZ(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_getPoint3D(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_getProjectedX(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_getProjectedY(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_getProjectedZ(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_getPoint2D(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_getFEdge(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_getId(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_getNature(PyObject *self , PyObject *args) {
-}
-
-
- PyObject *_wrap_Interface0DIterator_castToSVertex(PyObject *self , PyObject *args) {
-}
-
-
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list