add doc and a couple of new methods to MakePipeShell

This commit is contained in:
tomate44
2017-03-28 17:09:06 +02:00
committed by wmayer
parent 7667875e0d
commit 3b6020cda8
2 changed files with 155 additions and 16 deletions

View File

@@ -277,6 +277,49 @@ PyObject* BRepOffsetAPI_MakePipeShellPy::setTransitionMode(PyObject *args)
Py_Return;
}
PyObject* BRepOffsetAPI_MakePipeShellPy::setMaxDegree(PyObject *args)
{
#if OCC_VERSION_HEX >= 0x060800
int degree;
if (!PyArg_ParseTuple(args, "i",&degree))
return 0;
this->getBRepOffsetAPI_MakePipeShellPtr()->SetMaxDegree(degree);
Py_Return;
#else
PyErr_SetString(PyExc_RuntimeError, "requires OCC >= 6.8");
return 0;
#endif
}
PyObject* BRepOffsetAPI_MakePipeShellPy::setMaxSegments(PyObject *args)
{
#if OCC_VERSION_HEX >= 0x060800
int nbseg;
if (!PyArg_ParseTuple(args, "i",&nbseg))
return 0;
this->getBRepOffsetAPI_MakePipeShellPtr()->SetMaxSegments(nbseg);
Py_Return;
#else
PyErr_SetString(PyExc_RuntimeError, "requires OCC >= 6.8");
return 0;
#endif
}
PyObject* BRepOffsetAPI_MakePipeShellPy::setForceApproxC1(PyObject *args)
{
#if OCC_VERSION_HEX >= 0x060700
PyObject *obj;
if (!PyArg_ParseTuple(args, "O!",&PyBool_Type,&obj))
return 0;
this->getBRepOffsetAPI_MakePipeShellPtr()->SetForceApproxC1(PyObject_IsTrue(obj) ? Standard_True : Standard_False);
Py_Return;
#else
PyErr_SetString(PyExc_RuntimeError, "requires OCC >= 6.7");
return 0;
#endif
}
PyObject *BRepOffsetAPI_MakePipeShellPy::getCustomAttributes(const char* ) const
{
return 0;