Added Index as attribute of all voronoi objects for easier debugging
This commit is contained in:
committed by
sliptonic
parent
e3adbc0bf9
commit
3a50f84ba4
@@ -111,6 +111,14 @@ VoronoiCell* getVoronoiCellFromPy(const VoronoiCellPy *c, PyObject *args = 0) {
|
||||
return self;
|
||||
}
|
||||
|
||||
Py::Int VoronoiCellPy::getIndex(void) const {
|
||||
VoronoiCell *c = getVoronoiCellPtr();
|
||||
if (c->isBound()) {
|
||||
return Py::Int(c->dia->index(c->ptr));
|
||||
}
|
||||
return Py::Int(-1);
|
||||
}
|
||||
|
||||
Py::Long VoronoiCellPy::getColor(void) const {
|
||||
VoronoiCell *c = getVoronoiCellPtr();
|
||||
if (c->isBound()) {
|
||||
|
||||
Reference in New Issue
Block a user