add doc and a couple of new methods to MakePipeShell
This commit is contained in:
@@ -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",°ree))
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user