Blender V4.5
BPy_TVertex.cpp File Reference

Go to the source code of this file.

Functions

 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_init (BPy_TVertex *self, PyObject *args, PyObject *kwds)
 PyDoc_STRVAR (TVertex_get_svertex_doc, ".. method:: get_svertex(fedge)\n" "\n" " Returns the SVertex (among the 2) belonging to the given FEdge.\n" "\n" " :arg fedge: An FEdge object.\n" " :type fedge: :class:`FEdge`\n" " :return: The SVertex belonging to the given FEdge.\n" " :rtype: :class:`SVertex`")
static PyObject * TVertex_get_svertex (BPy_TVertex *self, PyObject *args, PyObject *kwds)
 PyDoc_STRVAR (TVertex_get_mate_doc, ".. method:: get_mate(viewedge)\n" "\n" " Returns the mate edge of the ViewEdge given as argument. If the\n" " ViewEdge is frontEdgeA, frontEdgeB is returned. If the ViewEdge is\n" " frontEdgeB, frontEdgeA is returned. Same for back edges.\n" "\n" " :arg viewedge: A ViewEdge object.\n" " :type viewedge: :class:`ViewEdge`\n" " :return: The mate edge of the given ViewEdge.\n" " :rtype: :class:`ViewEdge`")
static PyObject * TVertex_get_mate (BPy_TVertex *self, PyObject *args, PyObject *kwds)
 PyDoc_STRVAR (TVertex_front_svertex_doc, "The SVertex that is closer to the viewpoint.\n" "\n" ":type: :class:`SVertex`")
static PyObject * TVertex_front_svertex_get (BPy_TVertex *self, void *)
static int TVertex_front_svertex_set (BPy_TVertex *self, PyObject *value, void *)
 PyDoc_STRVAR (TVertex_back_svertex_doc, "The SVertex that is further away from the viewpoint.\n" "\n" ":type: :class:`SVertex`")
static PyObject * TVertex_back_svertex_get (BPy_TVertex *self, void *)
static int TVertex_back_svertex_set (BPy_TVertex *self, PyObject *value, void *)
 PyDoc_STRVAR (TVertex_id_doc, "The Id of this TVertex.\n" "\n" ":type: :class:`Id`")
static PyObject * TVertex_id_get (BPy_TVertex *self, void *)
static int TVertex_id_set (BPy_TVertex *self, PyObject *value, void *)

Variables

static PyMethodDef BPy_TVertex_methods []
static PyGetSetDef BPy_TVertex_getseters []
PyTypeObject TVertex_Type

Function Documentation

◆ PyDoc_STRVAR() [1/6]

PyDoc_STRVAR ( TVertex_back_svertex_doc ,
"The SVertex that is further away from the viewpoint.\n" "\n" ":type: :class:`SVertex`"  )

References PyDoc_STRVAR().

◆ PyDoc_STRVAR() [2/6]

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."  )

References PyDoc_STRVAR().

◆ PyDoc_STRVAR() [3/6]

PyDoc_STRVAR ( TVertex_front_svertex_doc ,
"The SVertex that is closer to the viewpoint.\n" "\n" ":type: :class:`SVertex`"  )

References PyDoc_STRVAR().

◆ PyDoc_STRVAR() [4/6]

PyDoc_STRVAR ( TVertex_get_mate_doc ,
".. method:: get_mate(viewedge)\n" "\n" " Returns the mate edge of the ViewEdge given as argument. If the\n" " ViewEdge is frontEdgeA,
frontEdgeB is returned. If the ViewEdge is\n" " frontEdgeB,
frontEdgeA is returned. Same for back edges.\n" "\n" " :arg viewedge:A ViewEdge object.\n" " :type viewedge::class:`ViewEdge`\n" " :return:The mate edge of the given ViewEdge.\n" " :rtype::class:`ViewEdge`"  )

References PyDoc_STRVAR().

◆ PyDoc_STRVAR() [5/6]

PyDoc_STRVAR ( TVertex_get_svertex_doc ,
".. method:: get_svertex(fedge)\n" "\n" " Returns the SVertex (among the 2) belonging to the given FEdge.\n" "\n" " :arg fedge: An FEdge object.\n" " :type fedge: :class:`FEdge`\n" " :return: The SVertex belonging to the given FEdge.\n" " :rtype: :class:`SVertex`"  )

References PyDoc_STRVAR().

◆ PyDoc_STRVAR() [6/6]

PyDoc_STRVAR ( TVertex_id_doc ,
"The Id of this TVertex.\n" "\n" ":type: :class:`Id`"  )

References PyDoc_STRVAR().

◆ TVertex_back_svertex_get()

PyObject * TVertex_back_svertex_get ( BPy_TVertex * self,
void *  )
static

◆ TVertex_back_svertex_set()

int TVertex_back_svertex_set ( BPy_TVertex * self,
PyObject * value,
void *  )
static

◆ TVertex_front_svertex_get()

PyObject * TVertex_front_svertex_get ( BPy_TVertex * self,
void *  )
static

◆ TVertex_front_svertex_set()

int TVertex_front_svertex_set ( BPy_TVertex * self,
PyObject * value,
void *  )
static

◆ TVertex_get_mate()

PyObject * TVertex_get_mate ( BPy_TVertex * self,
PyObject * args,
PyObject * kwds )
static

◆ TVertex_get_svertex()

PyObject * TVertex_get_svertex ( BPy_TVertex * self,
PyObject * args,
PyObject * kwds )
static

◆ TVertex_id_get()

PyObject * TVertex_id_get ( BPy_TVertex * self,
void *  )
static

◆ TVertex_id_set()

int TVertex_id_set ( BPy_TVertex * self,
PyObject * value,
void *  )
static

Definition at line 207 of file BPy_TVertex.cpp.

References BPy_Id_Check, Freestyle::TVertex::setId(), BPy_TVertex::tv, and TVertex_id_set().

Referenced by TVertex_id_set().

◆ TVertex_init()

int TVertex_init ( BPy_TVertex * self,
PyObject * args,
PyObject * kwds )
static

Variable Documentation

◆ BPy_TVertex_getseters

PyGetSetDef BPy_TVertex_getseters[]
static
Initial value:
= {
{"front_svertex",
TVertex_front_svertex_doc,
nullptr},
{"back_svertex",
TVertex_back_svertex_doc,
nullptr},
{"id", (getter)TVertex_id_get, (setter)TVertex_id_set, TVertex_id_doc, nullptr},
{nullptr, nullptr, nullptr, nullptr, nullptr}
}
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 int TVertex_front_svertex_set(BPy_TVertex *self, PyObject *value, void *)

Definition at line 217 of file BPy_TVertex.cpp.

◆ BPy_TVertex_methods

PyMethodDef BPy_TVertex_methods[]
static
Initial value:
= {
{"get_svertex",
(PyCFunction)TVertex_get_svertex,
METH_VARARGS | METH_KEYWORDS,
TVertex_get_svertex_doc},
{"get_mate",
(PyCFunction)TVertex_get_mate,
METH_VARARGS | METH_KEYWORDS,
TVertex_get_mate_doc},
{nullptr, nullptr, 0, nullptr},
}
static PyObject * TVertex_get_svertex(BPy_TVertex *self, PyObject *args, PyObject *kwds)
static PyObject * TVertex_get_mate(BPy_TVertex *self, PyObject *args, PyObject *kwds)

Definition at line 120 of file BPy_TVertex.cpp.

◆ TVertex_Type

PyTypeObject TVertex_Type

Definition at line 234 of file BPy_TVertex.cpp.

Referenced by BPy_TVertex_from_TVertex(), and Interface0D_Init().