Blender V4.3
mathutils_interpolate.cc File Reference
#include <Python.h>
#include "mathutils.hh"
#include "mathutils_interpolate.hh"
#include "BLI_math_geom.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: Sequence of 3D positions.\n" " :type veclist: Sequence[Sequence[float]]\n" " :arg pt: 2D or 3D position." " :type pt: Sequence[float]" " :return: list of per-vector weights.\n" " :rtype: list[float]\n")
 
static PyObject * M_Interpolate_poly_3d_calc (PyObject *, PyObject *args)
 
PyMODINIT_FUNC PyInit_mathutils_interpolate ()
 

Variables

static PyMethodDef M_Interpolate_methods []
 
static PyModuleDef M_Interpolate_module_def
 

Function Documentation

◆ M_Interpolate_poly_3d_calc()

static PyObject * M_Interpolate_poly_3d_calc ( PyObject * ,
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: Sequence of 3D positions.\n" " :type veclist: Sequence]\n" " :arg pt: 2D or 3D position." " :type pt: Sequence" " :return: list of per-vector weights.\n" " :rtype: list\n" [Sequence[float][float][float] )

◆ PyInit_mathutils_interpolate()

PyMODINIT_FUNC PyInit_mathutils_interpolate ( )

Definition at line 115 of file mathutils_interpolate.cc.

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},
{nullptr, nullptr, 0, nullptr},
}
static PyObject * M_Interpolate_poly_3d_calc(PyObject *, PyObject *args)

Definition at line 91 of file mathutils_interpolate.cc.

◆ M_Interpolate_module_def

PyModuleDef M_Interpolate_module_def
static
Initial value:
= {
PyModuleDef_HEAD_INIT,
"mathutils.interpolate",
M_Interpolate_doc,
0,
nullptr,
nullptr,
nullptr,
nullptr,
}
static PyMethodDef M_Interpolate_methods[]

Definition at line 101 of file mathutils_interpolate.cc.

Referenced by PyInit_mathutils_interpolate().