Add BoundBox property to Path, usable without a gui.

This commit is contained in:
Markus Lampert
2019-09-30 16:24:59 -07:00
parent 2520a5e159
commit 2ba54fe4cc
4 changed files with 87 additions and 0 deletions

View File

@@ -29,6 +29,7 @@
#include "PathPy.h"
#include "PathPy.cpp"
#include "Base/BoundBoxPy.h"
#include "Base/GeometryPyCXX.h"
#include "CommandPy.h"
@@ -128,6 +129,11 @@ Py::Long PathPy::getSize(void) const
return Py::Long((long)getToolpathPtr()->getSize());
}
Py::Object PathPy::getBoundBox(void) const
{
return Py::BoundingBox(getToolpathPtr()->getBoundBox());
}
// specific methods
PyObject* PathPy::copy(PyObject * args)