diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-01 18:57:17 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-01 18:57:17 +0300 |
commit | 11e529f4f77e6eae519f7b2b91055cf8b2d459ba (patch) | |
tree | 4eb9e112af5c04c9ae0ee4791f5a34a8199957b3 /source/blender/blenlib/BLI_math_geom.h | |
parent | 4ab4d2dd20791101215b39609bf174762e42e58d (diff) |
made the array interpolation function from last commit into a generic function
/* given an array with some invalid values this function interpolates valid values
* replacing the invalid ones */
int interp_sparse_array(float *array, int list_size, float skipval)
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index e676001fba5..0bbe8fac976 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -121,6 +121,8 @@ void interp_weights_poly_v3(float w[], float v[][3], int n, float p[3]); void interp_cubic_v3(float x[3], float v[3], float x1[3], float v1[3], float x2[3], float v2[3], float t); +int interp_sparse_array(float *array, int list_size, float invalid); + void barycentric_transform(float pt_tar[3], float const pt_src[3], const float tri_tar_p1[3], const float tri_tar_p2[3], const float tri_tar_p3[3], const float tri_src_p1[3], const float tri_src_p2[3], const float tri_src_p3[3]); |