15 #ifndef MATH_STANDALONE
24 #ifndef MATH_STANDALONE
27 ".. function:: poly_3d_calc(veclist, pt)\n"
29 " Calculate barycentric weights for a point on a polygon.\n"
31 " :arg veclist: list of vectors\n"
33 " :rtype: list of per-vector weights\n");
43 if (!PyArg_ParseTuple(args,
"OO:poly_3d_calc", &veclist, &
point)) {
63 for (i = 0; i <
len; i++) {
64 PyList_SET_ITEM(
ret, i, PyFloat_FromDouble(weights[i]));
81 #ifndef MATH_STANDALONE
85 M_Interpolate_poly_3d_calc_doc},
91 PyModuleDef_HEAD_INIT,
92 "mathutils.interpolate",
typedef float(TangentPoint)[2]
void interp_weights_poly_v3(float w[], float v[][3], int n, const float co[3])
Read Guarded memory(de)allocation.
in reality light always falls off quadratically Particle Retrieve the data of the particle that spawned the object for example to give variation to multiple instances of an object Point Retrieve information about points in a point cloud Retrieve the edges of an object as it appears to Cycles topology will always appear triangulated Convert a blackbody temperature to an RGB value Normal Generate a perturbed normal from an RGB normal map image Typically used for faking highly detailed surfaces Generate an OSL shader from a file or text data block Image Sample an image file as a texture Sky Generate a procedural sky texture Noise Generate fractal Perlin noise Wave Generate procedural bands or rings with noise Voronoi Generate Worley noise based on the distance to random points Typically used to generate textures such as or biological cells Brick Generate a procedural texture producing bricks Texture Retrieve multiple types of texture coordinates nTypically used as inputs for texture nodes Vector Convert a point
void(* MEM_freeN)(void *vmemh)
void *(* MEM_mallocN)(size_t len, const char *str)
int mathutils_array_parse(float *array, int array_num_min, int array_num_max, PyObject *value, const char *error_prefix)
int mathutils_array_parse_alloc_v(float **array, int array_dim, PyObject *value, const char *error_prefix)
PyDoc_STRVAR(M_Interpolate_doc, "The Blender interpolate module")
static PyMethodDef M_Interpolate_methods[]
static struct PyModuleDef M_Interpolate_module_def
PyMODINIT_FUNC PyInit_mathutils_interpolate(void)
static PyObject * M_Interpolate_poly_3d_calc(PyObject *UNUSED(self), PyObject *args)