26 "Class hierarchy: :class:`Interface0D` > :class:`ViewVertex` > :class:`TVertex`\n"
28 "Class to define a T vertex, i.e. an intersection between two edges.\n"
29 "It points towards two SVertex and four ViewEdges. Among the\n"
30 "ViewEdges, two are front and the other two are back. Basically a\n"
31 "front edge hides part of a back edge. So, among the back edges, one\n"
32 "is of invisibility N and the other of invisibility N+1.\n"
34 ".. method:: __init__()\n"
36 " Default constructor.\n");
42 static const char *kwlist[] = {
nullptr};
44 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
50 self->py_vv.py_if0D.borrowed =
false;
56 TVertex_get_svertex_doc,
57 ".. method:: get_svertex(fedge)\n"
59 " Returns the SVertex (among the 2) belonging to the given FEdge.\n"
61 " :arg fedge: An FEdge object.\n"
62 " :type fedge: :class:`FEdge`\n"
63 " :return: The SVertex belonging to the given FEdge.\n"
64 " :rtype: :class:`SVertex`\n");
67 static const char *kwlist[] = {
"fedge",
nullptr};
70 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"O!", (
char **)kwlist, &
FEdge_Type, &py_fe)) {
83 ".. method:: get_mate(viewedge)\n"
85 " Returns the mate edge of the ViewEdge given as argument. If the\n"
86 " ViewEdge is frontEdgeA, frontEdgeB is returned. If the ViewEdge is\n"
87 " frontEdgeB, frontEdgeA is returned. Same for back edges.\n"
89 " :arg viewedge: A ViewEdge object.\n"
90 " :type viewedge: :class:`ViewEdge`\n"
91 " :return: The mate edge of the given ViewEdge.\n"
92 " :rtype: :class:`ViewEdge`\n");
95 static const char *kwlist[] = {
"viewedge",
nullptr};
98 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"O!", (
char **)kwlist, &
ViewEdge_Type, &py_ve)) {
110# pragma clang diagnostic push
111# pragma clang diagnostic ignored "-Wcast-function-type"
113# pragma GCC diagnostic push
114# pragma GCC diagnostic ignored "-Wcast-function-type"
121 METH_VARARGS | METH_KEYWORDS,
122 TVertex_get_svertex_doc},
125 METH_VARARGS | METH_KEYWORDS,
126 TVertex_get_mate_doc},
127 {
nullptr,
nullptr, 0,
nullptr},
132# pragma clang diagnostic pop
134# pragma GCC diagnostic pop
142 TVertex_front_svertex_doc,
143 "The SVertex that is closer to the viewpoint.\n"
145 ":type: :class:`SVertex`\n");
158 PyErr_SetString(PyExc_TypeError,
"value must be an SVertex");
167 TVertex_back_svertex_doc,
168 "The SVertex that is further away from the viewpoint.\n"
170 ":type: :class:`SVertex`\n");
183 PyErr_SetString(PyExc_TypeError,
"value must be an SVertex");
193 "The Id of this TVertex.\n"
195 ":type: :class:`Id`\n");
205 PyErr_SetString(PyExc_TypeError,
"value must be an Id");
216 TVertex_front_svertex_doc,
221 TVertex_back_svertex_doc,
224 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
230 PyVarObject_HEAD_INIT(
nullptr, 0)
249 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
PyObject * BPy_Id_from_Id(Id &id)
PyObject * BPy_SVertex_from_SVertex(SVertex &sv)
PyObject * BPy_ViewEdge_from_ViewEdge(ViewEdge &ve)
#define BPy_SVertex_Check(v)
static PyMethodDef BPy_TVertex_methods[]
PyTypeObject TVertex_Type
PyDoc_STRVAR(TVertex_doc, "Class hierarchy: :class:`Interface0D` > :class:`ViewVertex` > :class:`TVertex`\n" "\n" "Class to define a T vertex, i.e. an intersection between two edges.\n" "It points towards two SVertex and four ViewEdges. Among the\n" "ViewEdges, two are front and the other two are back. Basically a\n" "front edge hides part of a back edge. So, among the back edges, one\n" "is of invisibility N and the other of invisibility N+1.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor.\n")
static PyObject * TVertex_get_svertex(BPy_TVertex *self, PyObject *args, PyObject *kwds)
static PyObject * TVertex_get_mate(BPy_TVertex *self, PyObject *args, PyObject *kwds)
static PyObject * TVertex_front_svertex_get(BPy_TVertex *self, void *)
static int TVertex_back_svertex_set(BPy_TVertex *self, PyObject *value, void *)
static PyObject * TVertex_back_svertex_get(BPy_TVertex *self, void *)
static int TVertex_id_set(BPy_TVertex *self, PyObject *value, void *)
static PyObject * TVertex_id_get(BPy_TVertex *self, void *)
static PyGetSetDef BPy_TVertex_getseters[]
static int TVertex_front_svertex_set(BPy_TVertex *self, PyObject *value, void *)
static int TVertex_init(BPy_TVertex *self, PyObject *args, PyObject *kwds)
PyTypeObject ViewEdge_Type
PyTypeObject ViewVertex_Type
ATTR_WARN_UNUSED_RESULT const BMVert * v