Blender V5.3
mathutils.cc File Reference
#include <Python.h>
#include "mathutils.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_offset_indices.hh"
#include "BLI_utildefines.hh"
#include "../generic/py_capi_utils.hh"
#include "BLI_dynstr.hh"
#include "mathutils_geometry.hh"
#include "mathutils_interpolate.hh"
#include "mathutils_bvhtree.hh"
#include "mathutils_kdtree.hh"
#include "mathutils_noise.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define SIGNMASK(i)
#define MATHUTILS_TOT_CB   17

Functions

 blender::PyDoc_STRVAR (M_Mathutils_doc, "This module provides access to math operations.\n" "\n" ".. note::\n" "\n" " Classes, methods and attributes that accept vectors also accept other numeric sequences,\n" " such as tuples, lists.\n" "\n" "The :mod:`mathutils` module provides the following classes:\n" "\n" "- :class:`Color`,\n" "- :class:`Euler`,\n" "- :class:`Matrix`,\n" "- :class:`Quaternion`,\n" "- :class:`Vector`,\n")
static int blender::mathutils_array_parse_fast (float *array, const int array_num, PyObject *value_fast, const char *error_prefix)
Py_hash_t blender::mathutils_array_hash (const float *array, size_t array_len)
int blender::mathutils_array_parse (float *array, int array_num_min, int array_num_max, PyObject *value, const char *error_prefix)
int blender::mathutils_array_parse_alloc (float **array, int array_num_min, PyObject *value, const char *error_prefix)
int blender::mathutils_array_parse_alloc_v (float **array, int array_dim, PyObject *value, const char *error_prefix)
int blender::mathutils_int_array_parse (int *array, int array_dim, PyObject *value, const char *error_prefix)
int blender::mathutils_array_parse_alloc_vi (int **array, int array_dim, PyObject *value, const char *error_prefix)
bool blender::mathutils_array_parse_alloc_viseq (PyObject *value, const char *error_prefix, Array< int > &r_offsets, Array< int > &r_data)
int blender::mathutils_any_to_rotmat (float rmat[3][3], PyObject *value, const char *error_prefix)
int blender::EXPP_FloatsAreEqual (float af, float bf, int maxDiff)
int blender::EXPP_VectorsAreEqual (const float *vecA, const float *vecB, int size, int floatSteps)
PyObject * blender::mathutils_dynstr_to_py (DynStr *ds)
uchar blender::Mathutils_RegisterCallback (Mathutils_Callback *cb)
int blender::_BaseMathObject_CheckCallback (BaseMathObject *self)
int blender::_BaseMathObject_ReadCallback (BaseMathObject *self)
int blender::_BaseMathObject_WriteCallback (BaseMathObject *self)
int blender::_BaseMathObject_ReadIndexCallback (BaseMathObject *self, int index)
int blender::_BaseMathObject_WriteIndexCallback (BaseMathObject *self, int index)
void blender::_BaseMathObject_RaiseFrozenExc (const BaseMathObject *self)
void blender::_BaseMathObject_RaiseNotFrozenExc (const BaseMathObject *self)
int blender::_BaseMathObject_ResizeOkOrRaiseExc (BaseMathObject *self, const char *error_prefix)
int blender::_BaseMathObject_RaiseBufferViewExc (BaseMathObject *self, Py_buffer *view, int flags)
PyObject * blender::BaseMathObject_owner_get (BaseMathObject *self, void *)
PyObject * blender::BaseMathObject_is_wrapped_get (BaseMathObject *self, void *)
PyObject * blender::BaseMathObject_is_frozen_get (BaseMathObject *self, void *)
PyObject * blender::BaseMathObject_is_valid_get (BaseMathObject *self, void *)
PyObject * blender::BaseMathObject_freeze (BaseMathObject *self)
int blender::BaseMathObject_traverse (BaseMathObject *self, visitproc visit, void *arg)
int blender::BaseMathObject_clear (BaseMathObject *self)
static bool blender::BaseMathObject_is_tracked (BaseMathObject *self)
void blender::BaseMathObject_dealloc (BaseMathObject *self)
int blender::BaseMathObject_is_gc (BaseMathObject *self)
PyObject * blender::_BaseMathObject_new_impl (PyTypeObject *root_type, PyTypeObject *base_type)
PyMODINIT_FUNC blender::PyInit_mathutils ()

Variables

static Mathutils_Callback * blender::mathutils_callbacks [MATHUTILS_TOT_CB] = {nullptr}
char blender::BaseMathObject_owner_doc []
char blender::BaseMathObject_is_wrapped_doc []
char blender::BaseMathObject_is_frozen_doc []
char blender::BaseMathObject_is_valid_doc [] = "True when the owner of this data is valid.\n\n:type: bool"
char blender::BaseMathObject_freeze_doc []
static PyMethodDef blender::M_Mathutils_methods []
static PyModuleDef blender::M_Mathutils_module_def

Macro Definition Documentation

◆ MATHUTILS_TOT_CB

#define MATHUTILS_TOT_CB   17

Definition at line 540 of file mathutils.cc.

Referenced by blender::Mathutils_RegisterCallback().

◆ SIGNMASK

#define SIGNMASK ( i)
Value:
(-int((uint(i)) >> 31))

Definition at line 490 of file mathutils.cc.

Referenced by blender::EXPP_FloatsAreEqual().