#include <Python.h>
#include "mathutils.h"
#include "mathutils_interpolate.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "MEM_guardedalloc.h"
Go to the source code of this file.
◆ M_Interpolate_poly_3d_calc()
static PyObject* M_Interpolate_poly_3d_calc |
( |
PyObject * |
UNUSEDself, |
|
|
PyObject * |
args |
|
) |
| |
|
static |
Definition at line 34 of file mathutils_interpolate.c.
References float(), interp_weights_poly_v3(), len, mathutils_array_parse(), mathutils_array_parse_alloc_v(), MEM_freeN, MEM_mallocN, MU_ARRAY_ZERO, NULL, point, and ret.
◆ PyDoc_STRVAR() [1/2]
PyDoc_STRVAR |
( |
M_Interpolate_doc |
, |
|
|
"The Blender interpolate module" |
|
|
) |
| |
◆ PyDoc_STRVAR() [2/2]
PyDoc_STRVAR |
( |
M_Interpolate_poly_3d_calc_doc |
, |
|
|
".. function:: poly_3d_calc(veclist, pt)\n" "\n" " Calculate barycentric weights for a point on a polygon.\n" "\n" " :arg veclist: list of vectors\n" " :arg pt: point" " :rtype: list of per-vector weights\n" |
|
|
) |
| |
◆ PyInit_mathutils_interpolate()
PyMODINIT_FUNC PyInit_mathutils_interpolate |
( |
void |
| ) |
|
◆ M_Interpolate_methods
PyMethodDef M_Interpolate_methods[] |
|
static |
Initial value:= {
{"poly_3d_calc",
METH_VARARGS,
M_Interpolate_poly_3d_calc_doc},
}
static PyObject * M_Interpolate_poly_3d_calc(PyObject *UNUSED(self), PyObject *args)
Definition at line 80 of file mathutils_interpolate.c.
◆ M_Interpolate_module_def
struct PyModuleDef M_Interpolate_module_def |
|
static |