Blender  V3.3
Functions | Variables
BPy_TVertex.cpp File Reference
#include "BPy_TVertex.h"
#include "../../BPy_Convert.h"
#include "../../BPy_Id.h"
#include "../../Interface1D/BPy_FEdge.h"
#include "../../Interface1D/BPy_ViewEdge.h"
#include "../BPy_SVertex.h"

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 *UNUSED(closure))
 
static int TVertex_front_svertex_set (BPy_TVertex *self, PyObject *value, void *UNUSED(closure))
 
 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 *UNUSED(closure))
 
static int TVertex_back_svertex_set (BPy_TVertex *self, PyObject *value, void *UNUSED(closure))
 
 PyDoc_STRVAR (TVertex_id_doc, "The Id of this TVertex.\n" "\n" ":type: :class:`Id`")
 
static PyObject * TVertex_id_get (BPy_TVertex *self, void *UNUSED(closure))
 
static int TVertex_id_set (BPy_TVertex *self, PyObject *value, void *UNUSED(closure))
 

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 UNUSEDclosure 
)
static

Definition at line 149 of file BPy_TVertex.cpp.

References BPy_SVertex_from_SVertex(), and v.

◆ TVertex_back_svertex_set()

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

Definition at line 158 of file BPy_TVertex.cpp.

References BPy_SVertex_Check.

◆ TVertex_front_svertex_get()

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

Definition at line 125 of file BPy_TVertex.cpp.

References BPy_SVertex_from_SVertex(), and v.

◆ TVertex_front_svertex_set()

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

Definition at line 134 of file BPy_TVertex.cpp.

References BPy_SVertex_Check.

◆ TVertex_get_mate()

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

Definition at line 91 of file BPy_TVertex.cpp.

References BPy_ViewEdge_from_ViewEdge(), and ViewEdge_Type.

◆ TVertex_get_svertex()

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

Definition at line 64 of file BPy_TVertex.cpp.

References BPy_SVertex_from_SVertex(), and FEdge_Type.

◆ TVertex_id_get()

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

Definition at line 173 of file BPy_TVertex.cpp.

References BPy_Id_from_Id(), id, and self.

◆ TVertex_id_set()

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

Definition at line 179 of file BPy_TVertex.cpp.

References BPy_Id_Check.

◆ TVertex_init()

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

Definition at line 40 of file BPy_TVertex.cpp.

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 int TVertex_id_set(BPy_TVertex *self, PyObject *value, void *UNUSED(closure))
static PyObject * TVertex_front_svertex_get(BPy_TVertex *self, void *UNUSED(closure))
static int TVertex_front_svertex_set(BPy_TVertex *self, PyObject *value, void *UNUSED(closure))
static PyObject * TVertex_id_get(BPy_TVertex *self, void *UNUSED(closure))
static PyObject * TVertex_back_svertex_get(BPy_TVertex *self, void *UNUSED(closure))
static int TVertex_back_svertex_set(BPy_TVertex *self, PyObject *value, void *UNUSED(closure))

Definition at line 189 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_mate(BPy_TVertex *self, PyObject *args, PyObject *kwds)
Definition: BPy_TVertex.cpp:91
static PyObject * TVertex_get_svertex(BPy_TVertex *self, PyObject *args, PyObject *kwds)
Definition: BPy_TVertex.cpp:64

Definition at line 106 of file BPy_TVertex.cpp.

◆ TVertex_Type

PyTypeObject TVertex_Type

Definition at line 205 of file BPy_TVertex.cpp.

Referenced by BPy_TVertex_from_TVertex(), and Interface0D_Init().