82 "Base class for any 0D element.\n"
84 ".. method:: __init__()\n"
86 " Default constructor.");
90 static const char *kwlist[] = {
nullptr};
92 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
96 self->borrowed =
false;
102 if (
self->if0D && !
self->borrowed) {
105 Py_TYPE(
self)->tp_free((PyObject *)
self);
110 return PyUnicode_FromFormat(
111 "type: %s - address: %p",
self->if0D->getExactTypeName().c_str(),
self->if0D);
116 Interface0D_get_fedge_doc,
117 ".. method:: get_fedge(inter)\n"
119 " Returns the FEdge that lies between this 0D element and the 0D\n"
120 " element given as the argument.\n"
122 " :arg inter: A 0D element.\n"
123 " :type inter: :class:`Interface0D`\n"
124 " :return: The FEdge lying between the two 0D elements.\n"
125 " :rtype: :class:`FEdge`");
129 static const char *kwlist[] = {
"inter",
nullptr};
132 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"O!", (
char **)kwlist, &
Interface0D_Type, &py_if0D))
137 if (PyErr_Occurred()) {
149 METH_VARARGS | METH_KEYWORDS,
150 Interface0D_get_fedge_doc},
151 {
nullptr,
nullptr, 0,
nullptr},
158 Interface0D_name_doc,
159 "The string of the name of this 0D element.\n"
165 return PyUnicode_FromString(Py_TYPE(
self)->tp_name);
170 Interface0D_point_3d_doc,
171 "The 3D point of this 0D element.\n"
173 ":type: :class:`mathutils.Vector`");
178 if (PyErr_Occurred()) {
186 Interface0D_projected_x_doc,
187 "The X coordinate of the projected 3D point of this 0D element.\n"
193 real x =
self->if0D->getProjectedX();
194 if (PyErr_Occurred()) {
197 return PyFloat_FromDouble(x);
202 Interface0D_projected_y_doc,
203 "The Y coordinate of the projected 3D point of this 0D element.\n"
209 real y =
self->if0D->getProjectedY();
210 if (PyErr_Occurred()) {
213 return PyFloat_FromDouble(y);
218 Interface0D_projected_z_doc,
219 "The Z coordinate of the projected 3D point of this 0D element.\n"
226 if (PyErr_Occurred()) {
229 return PyFloat_FromDouble(
z);
234 Interface0D_point_2d_doc,
235 "The 2D point of this 0D element.\n"
237 ":type: :class:`mathutils.Vector`");
242 if (PyErr_Occurred()) {
251 "The Id of this 0D element.\n"
253 ":type: :class:`Id`");
257 Id id(
self->if0D->getId());
258 if (PyErr_Occurred()) {
266 Interface0D_nature_doc,
267 "The nature of this 0D element.\n"
269 ":type: :class:`Nature`");
274 if (PyErr_Occurred()) {
285 Interface0D_point_3d_doc,
290 Interface0D_projected_x_doc,
295 Interface0D_projected_y_doc,
300 Interface0D_projected_z_doc,
305 Interface0D_point_2d_doc,
309 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
315 PyVarObject_HEAD_INIT(
nullptr, 0)
334 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
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 *)
PyDoc_STRVAR(Interface0D_doc, "Base class for any 0D element.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor.")
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.
static struct PyModuleDef module