Removed duplicated definitions of verticesBegin(), verticesEnd(),
pointsBegin(), and pointsEnd(). All these methods are inherited from the Interface1D class.
This commit is contained in:
@@ -36,10 +36,6 @@ static PyObject * ViewEdge_setId( BPy_ViewEdge *self, PyObject *args ) ;
|
||||
static PyObject * ViewEdge_UpdateFEdges( BPy_ViewEdge *self );
|
||||
static PyObject * ViewEdge_setaShape( BPy_ViewEdge *self, PyObject *args );
|
||||
static PyObject * ViewEdge_setQI( BPy_ViewEdge *self, PyObject *args );
|
||||
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 );
|
||||
|
||||
|
||||
@@ -64,10 +60,6 @@ static PyMethodDef BPy_ViewEdge_methods[] = {
|
||||
{"UpdateFEdges", ( PyCFunction ) ViewEdge_UpdateFEdges, METH_NOARGS, "() Sets ViewEdge to this for all embedded fedges"},
|
||||
{"setaShape", ( PyCFunction ) ViewEdge_setaShape, METH_VARARGS, "(ViewShape vs) Sets the occluded ViewShape"},
|
||||
{"setQI", ( PyCFunction ) ViewEdge_setQI, METH_VARARGS, "(int qi) Sets the quantitative invisibility value."},
|
||||
{"verticesBegin", ( PyCFunction ) ViewEdge_verticesBegin, METH_NOARGS, "() Returns an Interface0DIterator to iterate over the SVertex constituing the embedding of this ViewEdge. The returned Interface0DIterator points to the first SVertex of the ViewEdge."},
|
||||
{"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}
|
||||
};
|
||||
@@ -310,37 +302,6 @@ PyObject * ViewEdge_setQI( BPy_ViewEdge *self, PyObject *args ) {
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
PyObject * ViewEdge_verticesBegin( BPy_ViewEdge *self ) {
|
||||
Interface0DIterator if0D_it( self->ve->verticesBegin() );
|
||||
return BPy_Interface0DIterator_from_Interface0DIterator( if0D_it, 0 );
|
||||
}
|
||||
|
||||
PyObject * ViewEdge_verticesEnd( BPy_ViewEdge *self ) {
|
||||
Interface0DIterator if0D_it( self->ve->verticesEnd() );
|
||||
return BPy_Interface0DIterator_from_Interface0DIterator( if0D_it, 1 );
|
||||
}
|
||||
|
||||
|
||||
PyObject * ViewEdge_pointsBegin( BPy_ViewEdge *self, PyObject *args ) {
|
||||
float f = 0;
|
||||
|
||||
if(!( PyArg_ParseTuple(args, "|f", &f) ))
|
||||
return NULL;
|
||||
|
||||
Interface0DIterator if0D_it( self->ve->pointsBegin(f) );
|
||||
return BPy_Interface0DIterator_from_Interface0DIterator( if0D_it, 0 );
|
||||
}
|
||||
|
||||
PyObject * ViewEdge_pointsEnd( BPy_ViewEdge *self, PyObject *args ) {
|
||||
float f = 0;
|
||||
|
||||
if(!( PyArg_ParseTuple(args, "|f", &f) ))
|
||||
return NULL;
|
||||
|
||||
Interface0DIterator if0D_it( self->ve->pointsEnd(f) );
|
||||
return BPy_Interface0DIterator_from_Interface0DIterator( if0D_it, 1 );
|
||||
}
|
||||
|
||||
PyObject * ViewEdge_qi( BPy_ViewEdge *self ) {
|
||||
return PyLong_FromLong( self->ve->qi() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user