Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/BPy_SShape.cpp
| Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | int SShape_Init(PyObject *module) | ||||
| Py_INCREF(&SShape_Type); | Py_INCREF(&SShape_Type); | ||||
| PyModule_AddObject(module, "SShape", (PyObject *)&SShape_Type); | PyModule_AddObject(module, "SShape", (PyObject *)&SShape_Type); | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| /*----------------------SShape methods ----------------------------*/ | /*----------------------SShape methods ----------------------------*/ | ||||
| PyDoc_STRVAR(SShape_doc, | PyDoc_STRVAR( | ||||
| SShape_doc, | |||||
| "Class to define a feature shape. It is the gathering of feature\n" | "Class to define a feature shape. It is the gathering of feature\n" | ||||
| "elements from an identified input shape.\n" | "elements from an identified input shape.\n" | ||||
| "\n" | "\n" | ||||
| ".. method:: __init__()\n" | ".. method:: __init__()\n" | ||||
| " __init__(brother)\n" | |||||
| "\n" | "\n" | ||||
| " Default constructor.\n" | " Creates a :class:`SShape` class using either a default constructor or copy constructor.\n" | ||||
| "\n" | |||||
| ".. method:: __init__(brother)\n" | |||||
| "\n" | |||||
| " Copy constructor.\n" | |||||
| "\n" | "\n" | ||||
| " :arg brother: An SShape object.\n" | " :arg brother: An SShape object.\n" | ||||
| " :type brother: :class:`SShape`"); | " :type brother: :class:`SShape`"); | ||||
| static int SShape_init(BPy_SShape *self, PyObject *args, PyObject *kwds) | static int SShape_init(BPy_SShape *self, PyObject *args, PyObject *kwds) | ||||
| { | { | ||||
| static const char *kwlist[] = {"brother", NULL}; | static const char *kwlist[] = {"brother", NULL}; | ||||
| PyObject *brother = 0; | PyObject *brother = 0; | ||||
| if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O!", (char **)kwlist, &SShape_Type, &brother)) { | if (!PyArg_ParseTupleAndKeywords(args, kwds, "|O!", (char **)kwlist, &SShape_Type, &brother)) { | ||||
| return -1; | return -1; | ||||
| ▲ Show 20 Lines • Show All 251 Lines • Show Last 20 Lines | |||||