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>2009-07-27 23:34:52 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-07-27 23:34:52 +0400
commitfe5b6a556c23159a42eaaa90609cbf0e9a0e1128 (patch)
treea440e5ded8609767ef26c0b2ccf64aedd1640159 /source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp
parentfcba277a836fc9bbc5543525df3d8564367c7443 (diff)
* Fixed compiler errors in UnaryFunction0DVectorViewShape::__call__()
and UnaryFunction1DVectorViewShape::__call__(). * Added a Python wrapper of ViewEdge::qi().
Diffstat (limited to 'source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp')
-rw-r--r--source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp b/source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp
index 8ac65edde89..28280a0723f 100644
--- a/source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp
+++ b/source/blender/freestyle/intern/python/Interface1D/BPy_ViewEdge.cpp
@@ -40,6 +40,7 @@ static PyObject * ViewEdge_verticesBegin( BPy_ViewEdge *self );
static PyObject * ViewEdge_verticesEnd( BPy_ViewEdge *self );
static PyObject * ViewEdge_pointsBegin( BPy_ViewEdge *self, PyObject *args );
static PyObject * ViewEdge_pointsEnd( BPy_ViewEdge *self, PyObject *args );
+static PyObject * ViewEdge_qi( BPy_ViewEdge *self );
/*----------------------ViewEdge instance definitions ----------------------------*/
@@ -67,6 +68,7 @@ static PyMethodDef BPy_ViewEdge_methods[] = {
{"verticesEnd", ( PyCFunction ) ViewEdge_verticesEnd, METH_NOARGS, "() Returns an Interface0DIterator to iterate over the SVertex constituing the embedding of this ViewEdge. The returned Interface0DIterator points after the last SVertex of the ViewEdge."},
{"pointsBegin", ( PyCFunction ) ViewEdge_pointsBegin, METH_VARARGS, "(float t=0) Returns an Interface0DIterator to iterate over the points of this ViewEdge at a given resolution t. The returned Interface0DIterator points on the first Point of the ViewEdge."},
{"pointsEnd", ( PyCFunction ) ViewEdge_pointsEnd, METH_VARARGS, "(float t=0) Returns an Interface0DIterator to iterate over the points of this ViewEdge at a given resolution t. The returned Interface0DIterator points after the last Point of the ViewEdge."},
+ {"qi", ( PyCFunction ) ViewEdge_qi, METH_NOARGS, "() Returns the quantitative invisibility of the ViewEdge."},
{NULL, NULL, 0, NULL}
};
@@ -372,6 +374,10 @@ PyObject * ViewEdge_pointsEnd( BPy_ViewEdge *self, PyObject *args ) {
return BPy_Interface0DIterator_from_Interface0DIterator( if0D_it );
}
+PyObject * ViewEdge_qi( BPy_ViewEdge *self ) {
+ return PyInt_FromLong( self->ve->qi() );
+}
+
///////////////////////////////////////////////////////////////////////////////////////////
#ifdef __cplusplus