diff options
author | Geraldine Chua <chua.gsk@gmail.com> | 2018-07-16 15:57:55 +0300 |
---|---|---|
committer | Geraldine Chua <chua.gsk@gmail.com> | 2018-07-16 15:57:55 +0300 |
commit | c987ad81b684f4f0b361ff11325786d268c603c1 (patch) | |
tree | aeb418ce0f6f032c288c86590f12260106e2bc8a /intern/cycles/render/openvdb.h | |
parent | 281db895f33a3481d1a5b7689cb2e5c914613261 (diff) |
Cleanup and bug fixes.
Diffstat (limited to 'intern/cycles/render/openvdb.h')
-rw-r--r-- | intern/cycles/render/openvdb.h | 55 |
1 files changed, 22 insertions, 33 deletions
diff --git a/intern/cycles/render/openvdb.h b/intern/cycles/render/openvdb.h index b3d2ad2412f..052f2d67ef4 100644 --- a/intern/cycles/render/openvdb.h +++ b/intern/cycles/render/openvdb.h @@ -10,39 +10,28 @@ CCL_NAMESPACE_BEGIN bool openvdb_has_grid(const string& filepath, const string& grid_name); -int3 get_openvdb_resolution(const string& filepath); - -device_memory *file_load_openvdb(Device *device, - const string& filepath, - const string& grid_name, - const int3& resolution, - const string& mem_name, - const InterpolationType& interpolation, - const ExtensionType& extension, - const bool& is_vec, - const int& /*texture_limit*/); - -bool file_load_openvdb_dense(const string& filepath, - const string& grid_name, - const int3& resolution, - const int& /*texture_limit*/, - float *data); - -bool file_load_openvdb_dense(const string& filepath, - const string& grid_name, - const int3& resolution, - const int& /*texture_limit*/, - float4 *data); - -void build_openvdb_mesh_fl(VolumeMeshBuilder *builder, - void *v_accessor, - const int3 resolution, - const float isovalue); - -void build_openvdb_mesh_vec(VolumeMeshBuilder *builder, - void *v_accessor, - const int3 resolution, - const float isovalue); +int3 openvdb_get_resolution(const string& filepath); + +device_memory *openvdb_load_device(Device *device, + const string& filepath, + const string& grid_name, + const string& mem_name, + const InterpolationType& interpolation, + const ExtensionType& extension, + const bool is_vec); + +int openvdb_preprocess(const string& filepath, const string& grid_name, + const float threshold, int *grid_info, const bool is_vec); + +bool openvdb_load_sparse(const string& filepath, const string& grid_name, + float *data, int *grid_info, const int channels); + +bool openvdb_load_dense(const string& filepath, const string& grid_name, + float *data, const int channels); + +void openvdb_build_mesh(VolumeMeshBuilder *builder, void *v_accessor, + const int3 resolution, const float threshold, + const bool is_vec); CCL_NAMESPACE_END |