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)) {
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 " :param 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,
90 ".. method:: get_mate(viewedge)\n"
92 " Returns the mate edge of the ViewEdge given as argument. If the\n"
93 " ViewEdge is frontEdgeA, frontEdgeB is returned. If the ViewEdge is\n"
94 " frontEdgeB, frontEdgeA is returned. Same for back edges.\n"
96 " :param viewedge: A ViewEdge object.\n"
97 " :type viewedge: :class:`ViewEdge`\n"
98 " :return: The mate edge of the given ViewEdge.\n"
99 " :rtype: :class:`ViewEdge`\n");
102 static const char *kwlist[] = {
"viewedge",
nullptr};
105 if (!PyArg_ParseTupleAndKeywords(args,
124# pragma clang diagnostic push
125# pragma clang diagnostic ignored "-Wcast-function-type"
127# pragma GCC diagnostic push
128# pragma GCC diagnostic ignored "-Wcast-function-type"
135 METH_VARARGS | METH_KEYWORDS,
136 TVertex_get_svertex_doc},
139 METH_VARARGS | METH_KEYWORDS,
140 TVertex_get_mate_doc},
141 {
nullptr,
nullptr, 0,
nullptr},
146# pragma clang diagnostic pop
148# pragma GCC diagnostic pop
156 TVertex_front_svertex_doc,
157 "The SVertex that is closer to the viewpoint.\n"
159 ":type: :class:`SVertex`\n");
172 PyErr_SetString(PyExc_TypeError,
"value must be an SVertex");
181 TVertex_back_svertex_doc,
182 "The SVertex that is further away from the viewpoint.\n"
184 ":type: :class:`SVertex`\n");
197 PyErr_SetString(PyExc_TypeError,
"value must be an SVertex");
207 "The Id of this TVertex.\n"
209 ":type: :class:`Id`\n");
219 PyErr_SetString(PyExc_TypeError,
"value must be an Id");
230 TVertex_front_svertex_doc,
235 TVertex_back_svertex_doc,
238 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
244 PyVarObject_HEAD_INIT(
nullptr, 0)
263 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)
PyDoc_STRVAR(FalseBP1D___doc__, "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`FalseBP1D`\n" "\n" ".. method:: __call__(inter1, inter2)\n" "\n" " Always returns false.\n" "\n" " :param inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :param inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
#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 *)
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
void setId(const Id &iId)
SVertex * getSVertex(FEdge *iFEdge)
void setBackSVertex(SVertex *iBackSVertex)
virtual ViewEdge * mate(ViewEdge *iEdgeA)
void setFrontSVertex(SVertex *iFrontSVertex)
PyObject_HEAD Freestyle::Interface0D * if0D
Freestyle::ViewVertex * vv