78 "Base class for any 0D element.\n"
80 ".. method:: __init__()\n"
82 " Default constructor.");
86 static const char *kwlist[] = {
nullptr};
88 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"", (
char **)kwlist)) {
92 self->borrowed =
false;
101 Py_TYPE(
self)->tp_free((PyObject *)
self);
106 return PyUnicode_FromFormat(
107 "type: %s - address: %p",
self->if0D->getExactTypeName().c_str(),
self->if0D);
112 Interface0D_get_fedge_doc,
113 ".. method:: get_fedge(inter)\n"
115 " Returns the FEdge that lies between this 0D element and the 0D\n"
116 " element given as the argument.\n"
118 " :arg inter: A 0D element.\n"
119 " :type inter: :class:`Interface0D`\n"
120 " :return: The FEdge lying between the two 0D elements.\n"
121 " :rtype: :class:`FEdge`");
125 static const char *kwlist[] = {
"inter",
nullptr};
128 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"O!", (
char **)kwlist, &
Interface0D_Type, &py_if0D))
133 if (PyErr_Occurred()) {
144# pragma clang diagnostic push
145# pragma clang diagnostic ignored "-Wcast-function-type"
147# pragma GCC diagnostic push
148# pragma GCC diagnostic ignored "-Wcast-function-type"
155 METH_VARARGS | METH_KEYWORDS,
156 Interface0D_get_fedge_doc},
157 {
nullptr,
nullptr, 0,
nullptr},
162# pragma clang diagnostic pop
164# pragma GCC diagnostic pop
172 Interface0D_name_doc,
173 "The string of the name of this 0D element.\n"
179 return PyUnicode_FromString(Py_TYPE(
self)->tp_name);
184 Interface0D_point_3d_doc,
185 "The 3D point of this 0D element.\n"
187 ":type: :class:`mathutils.Vector`");
192 if (PyErr_Occurred()) {
200 Interface0D_projected_x_doc,
201 "The X coordinate of the projected 3D point of this 0D element.\n"
208 if (PyErr_Occurred()) {
211 return PyFloat_FromDouble(
x);
216 Interface0D_projected_y_doc,
217 "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"
240 if (PyErr_Occurred()) {
243 return PyFloat_FromDouble(
z);
248 Interface0D_point_2d_doc,
249 "The 2D point of this 0D element.\n"
251 ":type: :class:`mathutils.Vector`");
256 if (PyErr_Occurred()) {
265 "The Id of this 0D element.\n"
267 ":type: :class:`Id`");
271 Id id(
self->if0D->getId());
272 if (PyErr_Occurred()) {
280 Interface0D_nature_doc,
281 "The nature of this 0D element.\n"
283 ":type: :class:`Nature`");
288 if (PyErr_Occurred()) {
299 Interface0D_point_3d_doc,
304 Interface0D_projected_x_doc,
309 Interface0D_projected_y_doc,
314 Interface0D_projected_z_doc,
319 Interface0D_point_2d_doc,
323 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
329 PyVarObject_HEAD_INIT(
nullptr, 0)
348 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.
VecMat::Vec2< float > Vec2f
static struct PyModuleDef module