fix precision computation

This commit is contained in:
David Kaufman
2024-01-07 16:53:45 -05:00
parent f68066a219
commit 73e8b5ec87
3 changed files with 79 additions and 46 deletions

View File

@@ -464,6 +464,9 @@ PyObject* AreaPy::getRestArea(PyObject *args)
}
std::shared_ptr<Area> restArea = getAreaPtr()->getRestArea(clearedAreas, diameter);
if (!restArea) {
return Py_None;
}
auto pyRestArea = Py::asObject(new AreaPy(new Area(*restArea, true)));
return Py::new_reference_to(pyRestArea);
} PY_CATCH_OCC