30 "Class hierarchy: :class:`Interface0D` > :class:`ViewVertex` > :class:`TVertex`\n"
32 "Class to define a T vertex, i.e. an intersection between two edges.\n"
33 "It points towards two SVertex and four ViewEdges. Among the\n"
34 "ViewEdges, two are front and the other two are back. Basically a\n"
35 "front edge hides part of a back edge. So, among the back edges, one\n"
36 "is of invisibility N and the other of invisibility N+1.\n"
38 ".. method:: __init__()\n"
40 " Default constructor.");
46 static const char *kwlist[] = {
nullptr};
48 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
54 self->py_vv.py_if0D.borrowed =
false;
60 TVertex_get_svertex_doc,
61 ".. method:: get_svertex(fedge)\n"
63 " Returns the SVertex (among the 2) belonging to the given FEdge.\n"
65 " :arg fedge: An FEdge object.\n"
66 " :type fedge: :class:`FEdge`\n"
67 " :return: The SVertex belonging to the given FEdge.\n"
68 " :rtype: :class:`SVertex`");
72 static const char *kwlist[] = {
"fedge",
nullptr};
75 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"O!", (
char **)kwlist, &
FEdge_Type, &py_fe)) {
88 ".. method:: get_mate(viewedge)\n"
90 " Returns the mate edge of the ViewEdge given as argument. If the\n"
91 " ViewEdge is frontEdgeA, frontEdgeB is returned. If the ViewEdge is\n"
92 " frontEdgeB, frontEdgeA is returned. Same for back edges.\n"
94 " :arg viewedge: A ViewEdge object.\n"
95 " :type viewedge: :class:`ViewEdge`\n"
96 " :return: The mate edge of the given ViewEdge.\n"
97 " :rtype: :class:`ViewEdge`");
101 static const char *kwlist[] = {
"viewedge",
nullptr};
104 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"O!", (
char **)kwlist, &
ViewEdge_Type, &py_ve)) {
117 METH_VARARGS | METH_KEYWORDS,
118 TVertex_get_svertex_doc},
121 METH_VARARGS | METH_KEYWORDS,
122 TVertex_get_mate_doc},
123 {
nullptr,
nullptr, 0,
nullptr},
130 TVertex_front_svertex_doc,
131 "The SVertex that is closer to the viewpoint.\n"
133 ":type: :class:`SVertex`");
147 PyErr_SetString(PyExc_TypeError,
"value must be an SVertex");
156 TVertex_back_svertex_doc,
157 "The SVertex that is further away from the viewpoint.\n"
159 ":type: :class:`SVertex`");
173 PyErr_SetString(PyExc_TypeError,
"value must be an SVertex");
183 "The Id of this TVertex.\n"
185 ":type: :class:`Id`");
196 PyErr_SetString(PyExc_TypeError,
"value must be an Id");
207 TVertex_front_svertex_doc,
212 TVertex_back_svertex_doc,
215 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
221 PyVarObject_HEAD_INIT(
nullptr, 0)
240 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
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 *)
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.")
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