Add BoundBox property to Path, usable without a gui.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user