Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2009-09-04 10:55:01 +0400
committerMatt Ebb <matt@mke3.net>2009-09-04 10:55:01 +0400
commit62dd488ad16911620137ac655ae2f5980374c2bc (patch)
treec54a3906681e02cf48a8f60a8196b8646fccc799 /source/blender/blenlib/BLI_voxel.h
parent6caff6b390b257f70abe3949463797898b8bd2fd (diff)
* New and improved voxel interpolation methods, from Alfredo.
Now there is (in order of speed): * Nearest neighbour (very rough quality) * Linear (medium quality) * Quadratic (good quality) * Cubic Catmull-rom (very good quality, crisp) * Cubic B-spline (very good quality, smooth) Thanks!
Diffstat (limited to 'source/blender/blenlib/BLI_voxel.h')
-rw-r--r--source/blender/blenlib/BLI_voxel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_voxel.h b/source/blender/blenlib/BLI_voxel.h
index 9b815ccbf42..934bc820259 100644
--- a/source/blender/blenlib/BLI_voxel.h
+++ b/source/blender/blenlib/BLI_voxel.h
@@ -35,6 +35,7 @@
/* all input coordinates must be in bounding box 0.0 - 1.0 */
float voxel_sample_nearest(float *data, int *res, float *co);
float voxel_sample_trilinear(float *data, int *res, float *co);
-float voxel_sample_tricubic(float *data, int *res, float *co);
+float voxel_sample_triquadratic(float *data, int *res, float *co);
+float voxel_sample_tricubic(float *data, int *res, float *co, int bspline);
#endif /* BLI_VOXEL_H */