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)) {
91 self->borrowed =
false;
100 Py_TYPE(
self)->tp_free((PyObject *)
self);
105 return PyUnicode_FromFormat(
106 "type: %s - address: %p",
self->if0D->getExactTypeName().c_str(),
self->if0D);
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 " :arg 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, kwds,
"O!", (
char **)kwlist, &
Interface0D_Type, &py_if0D))
131 if (PyErr_Occurred()) {
142# pragma clang diagnostic push
143# pragma clang diagnostic ignored "-Wcast-function-type"
145# pragma GCC diagnostic push
146# pragma GCC diagnostic ignored "-Wcast-function-type"
153 METH_VARARGS | METH_KEYWORDS,
154 Interface0D_get_fedge_doc},
155 {
nullptr,
nullptr, 0,
nullptr},
160# pragma clang diagnostic pop
162# pragma GCC diagnostic pop
170 Interface0D_name_doc,
171 "The string of the name of this 0D element.\n"
176 return PyUnicode_FromString(Py_TYPE(
self)->tp_name);
181 Interface0D_point_3d_doc,
182 "The 3D point of this 0D element.\n"
184 ":type: :class:`mathutils.Vector`\n");
188 if (PyErr_Occurred()) {
196 Interface0D_projected_x_doc,
197 "The X coordinate of the projected 3D point of this 0D element.\n"
203 if (PyErr_Occurred()) {
206 return PyFloat_FromDouble(
x);
211 Interface0D_projected_y_doc,
212 "The Y coordinate of the projected 3D point of this 0D element.\n"
218 if (PyErr_Occurred()) {
221 return PyFloat_FromDouble(
y);
226 Interface0D_projected_z_doc,
227 "The Z coordinate of the projected 3D point of this 0D element.\n"
233 if (PyErr_Occurred()) {
236 return PyFloat_FromDouble(
z);
241 Interface0D_point_2d_doc,
242 "The 2D point of this 0D element.\n"
244 ":type: :class:`mathutils.Vector`\n");
248 if (PyErr_Occurred()) {
257 "The Id of this 0D element.\n"
259 ":type: :class:`Id`\n");
262 Id id(
self->if0D->getId());
263 if (PyErr_Occurred()) {
271 Interface0D_nature_doc,
272 "The nature of this 0D element.\n"
274 ":type: :class:`Nature`\n");
278 if (PyErr_Occurred()) {
289 Interface0D_point_3d_doc,
294 Interface0D_projected_x_doc,
299 Interface0D_projected_y_doc,
304 Interface0D_projected_z_doc,
309 Interface0D_point_2d_doc,
313 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
319 PyVarObject_HEAD_INIT(
nullptr, 0)
338 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)
PyDoc_STRVAR(Interface0D_doc, "Base class for any 0D element.\n" "\n" ".. method:: __init__()\n" "\n" " Default constructor.\n")
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.
VecMat::Vec2< float > Vec2f
static struct PyModuleDef module