py3: ported Measure and TechDraw
This commit is contained in:
@@ -80,8 +80,16 @@ PyObject* DrawParametricTemplatePy::drawLine(PyObject *args)
|
||||
|
||||
}
|
||||
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
Py::Int DrawParametricTemplatePy::getGeometryCount(void) const
|
||||
{
|
||||
int size = getDrawParametricTemplatePtr()->getGeometry().size();
|
||||
return Py::Int(size);
|
||||
}
|
||||
#else
|
||||
Py::Long DrawParametricTemplatePy::getGeometryCount(void) const
|
||||
{
|
||||
int size = getDrawParametricTemplatePtr()->getGeometry().size();
|
||||
return Py::Long(size);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user