diff options
author | Matt Ebb <matt@mke3.net> | 2009-09-04 10:55:01 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-09-04 10:55:01 +0400 |
commit | 62dd488ad16911620137ac655ae2f5980374c2bc (patch) | |
tree | c54a3906681e02cf48a8f60a8196b8646fccc799 /source/blender/blenlib/BLI_voxel.h | |
parent | 6caff6b390b257f70abe3949463797898b8bd2fd (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.h | 3 |
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 */ |