28 if (module ==
nullptr) {
40 PyModule_AddObjectRef(module,
"CurvePoint", (PyObject *)&
CurvePoint_Type);
45 PyModule_AddObjectRef(module,
"SVertex", (PyObject *)&
SVertex_Type);
50 PyModule_AddObjectRef(module,
"ViewVertex", (PyObject *)&
ViewVertex_Type);
60 PyModule_AddObjectRef(module,
"NonTVertex", (PyObject *)&
NonTVertex_Type);
65 PyModule_AddObjectRef(module,
"TVertex", (PyObject *)&
TVertex_Type);
78 "Base class for any 0D element.\n"
80 ".. method:: __init__()\n"
82 " Default constructor.\n");
85 static const char *kwlist[] = {
nullptr};
87 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
100 Py_TYPE(self)->tp_free((PyObject *)self);
105 return PyUnicode_FromFormat(
111 Interface0D_get_fedge_doc,
112 ".. method:: get_fedge(inter)\n"
114 " Returns the FEdge that lies between this 0D element and the 0D\n"
115 " element given as the argument.\n"
117 " :param inter: A 0D element.\n"
118 " :type inter: :class:`Interface0D`\n"
119 " :return: The FEdge lying between the two 0D elements.\n"
120 " :rtype: :class:`FEdge`\n");
123 static const char *kwlist[] = {
"inter",
nullptr};
126 if (!PyArg_ParseTupleAndKeywords(args,
137 if (PyErr_Occurred()) {
148# pragma clang diagnostic push
149# pragma clang diagnostic ignored "-Wcast-function-type"
151# pragma GCC diagnostic push
152# pragma GCC diagnostic ignored "-Wcast-function-type"
159 METH_VARARGS | METH_KEYWORDS,
160 Interface0D_get_fedge_doc},
161 {
nullptr,
nullptr, 0,
nullptr},
166# pragma clang diagnostic pop
168# pragma GCC diagnostic pop
176 Interface0D_name_doc,
177 "The string of the name of this 0D element.\n"
182 return PyUnicode_FromString(Py_TYPE(self)->tp_name);
187 Interface0D_point_3d_doc,
188 "The 3D point of this 0D element.\n"
190 ":type: :class:`mathutils.Vector`\n");
194 if (PyErr_Occurred()) {
202 Interface0D_projected_x_doc,
203 "The X coordinate of the projected 3D point of this 0D element.\n"
209 if (PyErr_Occurred()) {
212 return PyFloat_FromDouble(
x);
217 Interface0D_projected_y_doc,
218 "The Y coordinate of the projected 3D point of this 0D element.\n"
224 if (PyErr_Occurred()) {
227 return PyFloat_FromDouble(
y);
232 Interface0D_projected_z_doc,
233 "The Z coordinate of the projected 3D point of this 0D element.\n"
239 if (PyErr_Occurred()) {
242 return PyFloat_FromDouble(
z);
247 Interface0D_point_2d_doc,
248 "The 2D point of this 0D element.\n"
250 ":type: :class:`mathutils.Vector`\n");
254 if (PyErr_Occurred()) {
263 "The Id of this 0D element.\n"
265 ":type: :class:`Id`\n");
269 if (PyErr_Occurred()) {
277 Interface0D_nature_doc,
278 "The nature of this 0D element.\n"
280 ":type: :class:`Nature`\n");
284 if (PyErr_Occurred()) {
295 Interface0D_point_3d_doc,
300 Interface0D_projected_x_doc,
305 Interface0D_projected_y_doc,
310 Interface0D_projected_z_doc,
315 Interface0D_point_2d_doc,
319 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
325 PyVarObject_HEAD_INIT(
nullptr, 0)
344 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
PyObject * BPy_Id_from_Id(Id &id)
PyObject * Any_BPy_FEdge_from_FEdge(FEdge &fe)
PyObject * BPy_Nature_from_Nature(ushort n)
PyObject * Vector_from_Vec3f(Vec3f &vec)
PyObject * Vector_from_Vec2f(Vec2f &vec)
PyTypeObject CurvePoint_Type
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")
static PyObject * Interface0D_id_get(BPy_Interface0D *self, void *)
static void Interface0D_dealloc(BPy_Interface0D *self)
static PyObject * Interface0D_get_fedge(BPy_Interface0D *self, PyObject *args, PyObject *kwds)
PyTypeObject Interface0D_Type
static int Interface0D_init(BPy_Interface0D *self, PyObject *args, PyObject *kwds)
static PyGetSetDef BPy_Interface0D_getseters[]
static PyObject * Interface0D_repr(BPy_Interface0D *self)
static PyObject * Interface0D_name_get(BPy_Interface0D *self, void *)
static PyObject * Interface0D_projected_y_get(BPy_Interface0D *self, void *)
static PyMethodDef BPy_Interface0D_methods[]
int Interface0D_Init(PyObject *module)
static PyObject * Interface0D_projected_z_get(BPy_Interface0D *self, void *)
static PyObject * Interface0D_point_2d_get(BPy_Interface0D *self, void *)
static PyObject * Interface0D_nature_get(BPy_Interface0D *self, void *)
static PyObject * Interface0D_projected_x_get(BPy_Interface0D *self, void *)
static PyObject * Interface0D_point_3d_get(BPy_Interface0D *self, void *)
PyTypeObject NonTVertex_Type
void SVertex_mathutils_register_callback()
PyTypeObject SVertex_Type
void StrokeVertex_mathutils_register_callback()
PyTypeObject StrokeVertex_Type
PyTypeObject TVertex_Type
PyTypeObject ViewVertex_Type
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
virtual real getProjectedX() const
virtual Geometry::Vec2r getPoint2D() const
virtual FEdge * getFEdge(Interface0D &)
virtual string getExactTypeName() const
virtual Nature::VertexNature getNature() const
virtual Geometry::Vec3r getPoint3D() const
virtual real getProjectedZ() const
virtual real getProjectedY() const
VecMat::Vec3< float > Vec3f
VecMat::Vec2< float > Vec2f
PyObject_HEAD Freestyle::Interface0D * if0D