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