diff options
author | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2018-02-22 18:26:50 +0300 |
---|---|---|
committer | Kévin Dietrich <kevin.dietrich@mailoo.org> | 2018-02-24 15:37:58 +0300 |
commit | 4403ca80bda690c0ac44e4a6db0cddf4b2428006 (patch) | |
tree | 3a68b34c75f4f831840403950b4bde7f4ad938ce /intern/openvdb/openvdb_capi.h | |
parent | 6d8a4c10b65c45b2bcc2eca7779cc541af0562fb (diff) |
Smoke: expose empty space clipping property to the UI.
This is used to determine which voxels are to be considered empty space.
Previously it was hardcoded for converting dense grids to OpenVDB grids
to reduce disk space usage.
This value is also useful for rendering engines to know, i.e. to
optimize ray marching.
Diffstat (limited to 'intern/openvdb/openvdb_capi.h')
-rw-r--r-- | intern/openvdb/openvdb_capi.h | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/intern/openvdb/openvdb_capi.h b/intern/openvdb/openvdb_capi.h index 2d2feeadcf1..fe7af82769b 100644 --- a/intern/openvdb/openvdb_capi.h +++ b/intern/openvdb/openvdb_capi.h @@ -49,22 +49,20 @@ enum { struct OpenVDBFloatGrid *OpenVDB_export_grid_fl( struct OpenVDBWriter *writer, const char *name, float *data, - const int res[3], float matrix[4][4], + const int res[3], float matrix[4][4], const float clipping, struct OpenVDBFloatGrid *mask); -struct OpenVDBIntGrid *OpenVDB_export_grid_ch( - struct OpenVDBWriter *writer, - const char *name, unsigned char *data, - const int res[3], float matrix[4][4], - struct OpenVDBFloatGrid *mask); +struct OpenVDBIntGrid *OpenVDB_export_grid_ch(struct OpenVDBWriter *writer, + const char *name, unsigned char *data, + const int res[3], float matrix[4][4], const float clipping, + struct OpenVDBFloatGrid *mask); -struct OpenVDBVectorGrid *OpenVDB_export_grid_vec( - struct OpenVDBWriter *writer, - const char *name, - const float *data_x, const float *data_y, const float *data_z, - const int res[3], float matrix[4][4], short vec_type, - const bool is_color, - struct OpenVDBFloatGrid *mask); +struct OpenVDBVectorGrid *OpenVDB_export_grid_vec(struct OpenVDBWriter *writer, + const char *name, + const float *data_x, const float *data_y, const float *data_z, + const int res[3], float matrix[4][4], short vec_type, const float clipping, + const bool is_color, + struct OpenVDBFloatGrid *mask); void OpenVDB_import_grid_fl( struct OpenVDBReader *reader, |