diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-12-15 21:45:01 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:09 +0300 |
commit | 658fc3ddbc0e0a8b1ea7c10a62c6cc2e208c9461 (patch) | |
tree | 042331d1fd397aebe987261993dc864b34300d5b /source/blender/python/mathutils/mathutils.c | |
parent | 3b938f3d7fe6aadd8f1ab66acaf82dfe629d0ac1 (diff) |
New python submodule `mathutils.interpolate` for various mesh interpolation and weighting methods.
This module will contain mirrored functions for calculating and applying
weights for points on a mesh. This includes barycentric and UV weighting
and possibly more advanced global weighting such as harmonic weights.
The naming should follow this scheme:
<type>_{2d,3d}_{calc,apply}
e.g.
poly_2d_calc
poly_2d_apply
uv_3d_calc
...
Reviewers: campbellbarton
Differential Revision: https://developer.blender.org/D939
Diffstat (limited to 'source/blender/python/mathutils/mathutils.c')
-rw-r--r-- | source/blender/python/mathutils/mathutils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/python/mathutils/mathutils.c b/source/blender/python/mathutils/mathutils.c index 6fe8dc3866b..f39c900842b 100644 --- a/source/blender/python/mathutils/mathutils.c +++ b/source/blender/python/mathutils/mathutils.c @@ -502,6 +502,7 @@ static struct PyModuleDef M_Mathutils_module_def = { /* submodules only */ #include "mathutils_geometry.h" +#include "mathutils_interpolate.h" #ifndef MATH_STANDALONE # include "mathutils_kdtree.h" # include "mathutils_noise.h" @@ -537,6 +538,7 @@ PyMODINIT_FUNC PyInit_mathutils(void) /* submodule */ PyModule_AddObject(mod, "geometry", (submodule = PyInit_mathutils_geometry())); + PyModule_AddObject(mod, "interpolate", (submodule = PyInit_mathutils_interpolate())); /* XXX, python doesnt do imports with this usefully yet * 'from mathutils.geometry import PolyFill' * ...fails without this. */ |