Blender V4.3
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`"  )

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

◆ PyDoc_STRVAR() [3/6]

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

◆ 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`"  )

◆ 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`"  )

◆ PyDoc_STRVAR() [6/6]

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

◆ TVertex_back_svertex_get()

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

Definition at line 161 of file BPy_TVertex.cpp.

References BPy_SVertex_from_SVertex(), self, and v.

◆ TVertex_back_svertex_set()

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

Definition at line 170 of file BPy_TVertex.cpp.

References BPy_SVertex_Check, and self.

◆ TVertex_front_svertex_get()

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

Definition at line 135 of file BPy_TVertex.cpp.

References BPy_SVertex_from_SVertex(), self, and v.

◆ TVertex_front_svertex_set()

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

Definition at line 144 of file BPy_TVertex.cpp.

References BPy_SVertex_Check, and self.

◆ TVertex_get_mate()

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

Definition at line 99 of file BPy_TVertex.cpp.

References BPy_ViewEdge_from_ViewEdge(), self, and ViewEdge_Type.

◆ TVertex_get_svertex()

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

Definition at line 70 of file BPy_TVertex.cpp.

References BPy_SVertex_from_SVertex(), FEdge_Type, and self.

◆ TVertex_id_get()

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

Definition at line 187 of file BPy_TVertex.cpp.

References BPy_Id_from_Id(), and self.

◆ TVertex_id_set()

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

Definition at line 193 of file BPy_TVertex.cpp.

References BPy_Id_Check, and self.

◆ TVertex_init()

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

Definition at line 44 of file BPy_TVertex.cpp.

References self.

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 203 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 114 of file BPy_TVertex.cpp.

◆ TVertex_Type

PyTypeObject TVertex_Type

Definition at line 220 of file BPy_TVertex.cpp.

Referenced by BPy_TVertex_from_TVertex(), and Interface0D_Init().