Blender  V3.3
Functions | Variables
mathutils_interpolate.c File Reference
#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.

Functions

 PyDoc_STRVAR (M_Interpolate_doc, "The Blender interpolate module")
 
 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")
 
static PyObject * M_Interpolate_poly_3d_calc (PyObject *UNUSED(self), PyObject *args)
 
PyMODINIT_FUNC PyInit_mathutils_interpolate (void)
 

Variables

static PyMethodDef M_Interpolate_methods []
 
static struct PyModuleDef M_Interpolate_module_def
 

Function Documentation

◆ M_Interpolate_poly_3d_calc()

static PyObject* M_Interpolate_poly_3d_calc ( PyObject *  UNUSEDself,
PyObject *  args 
)
static

◆ 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  )

Definition at line 103 of file mathutils_interpolate.c.

References M_Interpolate_module_def.

Referenced by PyInit_mathutils().

Variable Documentation

◆ M_Interpolate_methods

PyMethodDef M_Interpolate_methods[]
static
Initial value:
= {
{"poly_3d_calc",
METH_VARARGS,
M_Interpolate_poly_3d_calc_doc},
{NULL, NULL, 0, NULL},
}
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
Initial value:
= {
PyModuleDef_HEAD_INIT,
"mathutils.interpolate",
M_Interpolate_doc,
0,
NULL,
NULL,
NULL,
NULL,
}
static PyMethodDef M_Interpolate_methods[]

Definition at line 80 of file mathutils_interpolate.c.

Referenced by PyInit_mathutils_interpolate().