Blender
V3.3
|
#include "BPy_SVertex.h"
#include "../BPy_Convert.h"
#include "../BPy_Id.h"
#include "../Interface1D/BPy_FEdge.h"
Go to the source code of this file.
Macros | |
#define | MATHUTILS_SUBTYPE_POINT3D 1 |
#define | MATHUTILS_SUBTYPE_POINT2D 2 |
Functions | |
PyDoc_STRVAR (SVertex_doc, "Class hierarchy: :class:`Interface0D` > :class:`SVertex`\n" "\n" "Class to define a vertex of the embedding.\n" "\n" ".. method:: __init__()\n" " __init__(brother)\n" " __init__(point_3d, id)\n" "\n" " Builds a :class:`SVertex` using the default constructor,\n" " copy constructor or the overloaded constructor which builds" " a :class:`SVertex` from 3D coordinates and an Id.\n" "\n" " :arg brother: A SVertex object.\n" " :type brother: :class:`SVertex`\n" " :arg point_3d: A three-dimensional vector.\n" " :type point_3d: :class:`mathutils.Vector`\n" " :arg id: An Id object.\n" " :type id: :class:`Id`") | |
static int | SVertex_init (BPy_SVertex *self, PyObject *args, PyObject *kwds) |
PyDoc_STRVAR (SVertex_add_normal_doc, ".. method:: add_normal(normal)\n" "\n" " Adds a normal to the SVertex's set of normals. If the same normal\n" " is already in the set, nothing changes.\n" "\n" " :arg normal: A three-dimensional vector.\n" " :type normal: :class:`mathutils.Vector`, list or tuple of 3 real numbers") | |
static PyObject * | SVertex_add_normal (BPy_SVertex *self, PyObject *args, PyObject *kwds) |
PyDoc_STRVAR (SVertex_add_fedge_doc, ".. method:: add_fedge(fedge)\n" "\n" " Add an FEdge to the list of edges emanating from this SVertex.\n" "\n" " :arg fedge: An FEdge.\n" " :type fedge: :class:`FEdge`") | |
static PyObject * | SVertex_add_fedge (BPy_SVertex *self, PyObject *args, PyObject *kwds) |
static int | SVertex_mathutils_check (BaseMathObject *bmo) |
static int | SVertex_mathutils_get (BaseMathObject *bmo, int subtype) |
static int | SVertex_mathutils_set (BaseMathObject *bmo, int subtype) |
static int | SVertex_mathutils_get_index (BaseMathObject *bmo, int subtype, int index) |
static int | SVertex_mathutils_set_index (BaseMathObject *bmo, int subtype, int index) |
void | SVertex_mathutils_register_callback () |
PyDoc_STRVAR (SVertex_point_3d_doc, "The 3D coordinates of the SVertex.\n" "\n" ":type: :class:`mathutils.Vector`") | |
static PyObject * | SVertex_point_3d_get (BPy_SVertex *self, void *UNUSED(closure)) |
static int | SVertex_point_3d_set (BPy_SVertex *self, PyObject *value, void *UNUSED(closure)) |
PyDoc_STRVAR (SVertex_point_2d_doc, "The projected 3D coordinates of the SVertex.\n" "\n" ":type: :class:`mathutils.Vector`") | |
static PyObject * | SVertex_point_2d_get (BPy_SVertex *self, void *UNUSED(closure)) |
static int | SVertex_point_2d_set (BPy_SVertex *self, PyObject *value, void *UNUSED(closure)) |
PyDoc_STRVAR (SVertex_id_doc, "The Id of this SVertex.\n" "\n" ":type: :class:`Id`") | |
static PyObject * | SVertex_id_get (BPy_SVertex *self, void *UNUSED(closure)) |
static int | SVertex_id_set (BPy_SVertex *self, PyObject *value, void *UNUSED(closure)) |
PyDoc_STRVAR (SVertex_normals_doc, "The normals for this Vertex as a list. In a sharp surface, an SVertex\n" "has exactly one normal. In a smooth surface, an SVertex can have any\n" "number of normals.\n" "\n" ":type: list of :class:`mathutils.Vector` objects") | |
static PyObject * | SVertex_normals_get (BPy_SVertex *self, void *UNUSED(closure)) |
PyDoc_STRVAR (SVertex_normals_size_doc, "The number of different normals for this SVertex.\n" "\n" ":type: int") | |
static PyObject * | SVertex_normals_size_get (BPy_SVertex *self, void *UNUSED(closure)) |
PyDoc_STRVAR (SVertex_viewvertex_doc, "If this SVertex is also a ViewVertex, this property refers to the\n" "ViewVertex, and None otherwise.\n" "\n" ":type: :class:`ViewVertex`") | |
static PyObject * | SVertex_viewvertex_get (BPy_SVertex *self, void *UNUSED(closure)) |
PyDoc_STRVAR (SVertex_curvatures_doc, "Curvature information expressed in the form of a seven-element tuple\n" "(K1, e1, K2, e2, Kr, er, dKr), where K1 and K2 are scalar values\n" "representing the first (maximum) and second (minimum) principal\n" "curvatures at this SVertex, respectively; e1 and e2 are\n" "three-dimensional vectors representing the first and second principal\n" "directions, i.e. the directions of the normal plane where the\n" "curvature takes its maximum and minimum values, respectively; and Kr,\n" "er and dKr are the radial curvature, radial direction, and the\n" "derivative of the radial curvature at this SVertex, respectively.\n" "\n" ":type: tuple") | |
static PyObject * | SVertex_curvatures_get (BPy_SVertex *self, void *UNUSED(closure)) |
Variables | |
static PyMethodDef | BPy_SVertex_methods [] |
static Mathutils_Callback | SVertex_mathutils_cb |
static unsigned char | SVertex_mathutils_cb_index = -1 |
static PyGetSetDef | BPy_SVertex_getseters [] |
PyTypeObject | SVertex_Type |
#define MATHUTILS_SUBTYPE_POINT2D 2 |
Definition at line 138 of file BPy_SVertex.cpp.
#define MATHUTILS_SUBTYPE_POINT3D 1 |
Definition at line 137 of file BPy_SVertex.cpp.
PyDoc_STRVAR | ( | SVertex_add_fedge_doc | , |
".. method:: add_fedge(fedge)\n" "\n" " Add an FEdge to the list of edges emanating from this SVertex.\n" "\n" " :arg fedge: An FEdge.\n" " :type fedge: :class:`FEdge`" | |||
) |
PyDoc_STRVAR | ( | SVertex_add_normal_doc | , |
".. method:: add_normal(normal)\n" "\n" " Adds a normal to the SVertex's set of normals. If the same normal\n" " is already in the | set, | ||
nothing changes.\n" "\n" " :arg normal:A three-dimensional vector.\n" " :type normal::class:`mathutils.Vector` | , | ||
list or tuple of 3 real numbers" | |||
) |
PyDoc_STRVAR | ( | SVertex_curvatures_doc | , |
"Curvature information expressed in the form of a seven-element tuple\n" " | K1, e1, K2, e2, Kr, er, dKr, | ||
where K1 and K2 are scalar values\n" "representing the first(maximum) and second(minimum) principal\n" "curvatures at this | SVertex, | ||
respectively;e1 and e2 are\n" "three-dimensional vectors representing the first and second principal\n" " | directions, | ||
i.e. the directions of the normal plane where the\n" "curvature takes its maximum and minimum | values, | ||
respectively;and | Kr, | ||
\n" "er and dKr are the radial | curvature, | ||
radial | direction, | ||
and the\n" "derivative of the radial curvature at this | SVertex, | ||
respectively.\n" "\n" ":type:tuple" | |||
) |
PyDoc_STRVAR | ( | SVertex_doc | , |
"Class hierarchy: :class:`Interface0D` | , | ||
:class:`SVertex`\n" "\n" "Class to define a vertex of the embedding.\n" "\n" ".. method::__init__()\n" " __init__(brother)\n" " __init__(point_3d, id)\n" "\n" " Builds a :class:`SVertex` using the default | constructor, | ||
\n" " copy constructor or the overloaded constructor which builds" " a :class:`SVertex` from 3D coordinates and an Id.\n" "\n" " :arg brother:A SVertex object.\n" " :type brother::class:`SVertex`\n" " :arg point_3d:A three-dimensional vector.\n" " :type point_3d::class:`mathutils.Vector`\n" " :arg id:An Id object.\n" " :type id::class:`Id`" | |||
) |
PyDoc_STRVAR | ( | SVertex_normals_doc | , |
"The normals for this Vertex as a list. In a sharp | surface, | ||
an SVertex\n" "has exactly one normal. In a smooth | surface, | ||
an SVertex can have any\n" "number of normals.\n" "\n" ":type:list of :class:`mathutils.Vector` objects" | |||
) |
PyDoc_STRVAR | ( | SVertex_normals_size_doc | , |
"The number of different normals for this SVertex.\n" "\n" ":type: int" | |||
) |
PyDoc_STRVAR | ( | SVertex_point_2d_doc | , |
"The projected 3D coordinates of the SVertex.\n" "\n" ":type: :class:`mathutils.Vector`" | |||
) |
PyDoc_STRVAR | ( | SVertex_point_3d_doc | , |
"The 3D coordinates of the SVertex.\n" "\n" ":type: :class:`mathutils.Vector`" | |||
) |
PyDoc_STRVAR | ( | SVertex_viewvertex_doc | , |
"If this SVertex is also a | ViewVertex, | ||
this property refers to the\n" " | ViewVertex, | ||
and None otherwise.\n" "\n" ":type::class:`ViewVertex`" | |||
) |
|
static |
Definition at line 108 of file BPy_SVertex.cpp.
References FEdge_Type.
|
static |
Definition at line 82 of file BPy_SVertex.cpp.
References Vec3r_ptr_from_PyObject().
|
static |
Definition at line 388 of file BPy_SVertex.cpp.
References Freestyle::CurvatureInfo::dKr, Freestyle::CurvatureInfo::e1, Freestyle::CurvatureInfo::e2, Freestyle::CurvatureInfo::er, Freestyle::CurvatureInfo::K1, Freestyle::CurvatureInfo::K2, Freestyle::CurvatureInfo::Kr, PyTuple_SET_ITEMS, Vector_from_Vec3r(), Freestyle::VecMat::Vec3< T >::x(), Freestyle::VecMat::Vec3< T >::y(), and Freestyle::VecMat::Vec3< T >::z().
|
static |
Definition at line 312 of file BPy_SVertex.cpp.
References BPy_Id_from_Id(), id, and self.
|
static |
Definition at line 318 of file BPy_SVertex.cpp.
References BPy_Id_Check.
|
static |
Definition at line 43 of file BPy_SVertex.cpp.
References convert_v3(), Id_Type, SVertex_Type, and v.
|
static |
Definition at line 140 of file BPy_SVertex.cpp.
References BPy_SVertex_Check.
|
static |
Definition at line 148 of file BPy_SVertex.cpp.
References MATHUTILS_SUBTYPE_POINT2D, and MATHUTILS_SUBTYPE_POINT3D.
|
static |
Definition at line 186 of file BPy_SVertex.cpp.
References MATHUTILS_SUBTYPE_POINT2D, and MATHUTILS_SUBTYPE_POINT3D.
void SVertex_mathutils_register_callback | ( | ) |
Definition at line 256 of file BPy_SVertex.cpp.
References Mathutils_RegisterCallback(), SVertex_mathutils_cb, and SVertex_mathutils_cb_index.
Referenced by Interface0D_Init().
|
static |
Definition at line 168 of file BPy_SVertex.cpp.
References MATHUTILS_SUBTYPE_POINT2D, and MATHUTILS_SUBTYPE_POINT3D.
|
static |
Definition at line 226 of file BPy_SVertex.cpp.
References MATHUTILS_SUBTYPE_POINT2D, MATHUTILS_SUBTYPE_POINT3D, and self.
|
static |
Definition at line 335 of file BPy_SVertex.cpp.
References normals, v, and Vector_from_Vec3r().
|
static |
Definition at line 355 of file BPy_SVertex.cpp.
References self.
|
static |
Definition at line 290 of file BPy_SVertex.cpp.
References MATHUTILS_SUBTYPE_POINT2D, SVertex_mathutils_cb_index, and Vector_CreatePyObject_cb().
|
static |
Definition at line 296 of file BPy_SVertex.cpp.
References mathutils_array_parse(), and v.
|
static |
Definition at line 268 of file BPy_SVertex.cpp.
References MATHUTILS_SUBTYPE_POINT3D, SVertex_mathutils_cb_index, and Vector_CreatePyObject_cb().
|
static |
Definition at line 274 of file BPy_SVertex.cpp.
References mathutils_array_parse(), and v.
|
static |
Definition at line 366 of file BPy_SVertex.cpp.
References Any_BPy_ViewVertex_from_ViewVertex().
|
static |
Definition at line 409 of file BPy_SVertex.cpp.
|
static |
Definition at line 122 of file BPy_SVertex.cpp.
|
static |
Definition at line 246 of file BPy_SVertex.cpp.
Referenced by SVertex_mathutils_register_callback().
|
static |
Definition at line 254 of file BPy_SVertex.cpp.
Referenced by SVertex_mathutils_register_callback(), SVertex_point_2d_get(), and SVertex_point_3d_get().
PyTypeObject SVertex_Type |
Definition at line 441 of file BPy_SVertex.cpp.
Referenced by BPy_SVertex_from_SVertex(), CurvePoint_init(), FEdge_init(), FEdgeSharp_init(), FEdgeSmooth_init(), Interface0D_Init(), NonTVertex_init(), SShape_add_vertex(), StrokeVertex_init(), SVertex_init(), and SVertexIterator_init().