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:
authorGeraldine Chua <chua.gsk@gmail.com>2018-07-28 19:01:48 +0300
committerGeraldine Chua <chua.gsk@gmail.com>2018-07-28 19:01:48 +0300
commit27c70e50f783909fc46ac04fdfa955a6f0bbd76d (patch)
tree96272722f8339a5f121e5b89f9ab5d28ba0826cf /intern/cycles/render/openvdb.h
parentcba412fba184959ed008a2f54d22dda8d973634b (diff)
Clean up. Change VDB iteration method in Cycles to leaf iterators rather than accessors.
Diffstat (limited to 'intern/cycles/render/openvdb.h')
-rw-r--r--intern/cycles/render/openvdb.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/intern/cycles/render/openvdb.h b/intern/cycles/render/openvdb.h
index 06e404059d6..37657800372 100644
--- a/intern/cycles/render/openvdb.h
+++ b/intern/cycles/render/openvdb.h
@@ -20,15 +20,18 @@ device_memory *openvdb_load_device_extern(Device *device,
const ExtensionType& extension,
const bool is_vec);
-bool openvdb_load_sparse(const string& filepath,
- const string& grid_name,
- const int channels,
- const float threshold,
- vector<float> *sparse_grid,
- vector<int> *grid_info);
-
-bool openvdb_load_dense(const string& filepath, const string& grid_name,
- float *data, const int channels);
+void openvdb_load_preprocess(const string& filepath,
+ const string& grid_name,
+ const int channels,
+ const float threshold,
+ vector<int> *sparse_index,
+ int &sparse_size);
+
+void openvdb_load_image(const string& filepath,
+ const string& grid_name,
+ const int channels,
+ float *image,
+ vector<int> *sparse_index);
device_memory *openvdb_load_device_intern(Device *device,
const float *data,
@@ -38,8 +41,9 @@ device_memory *openvdb_load_device_intern(Device *device,
const ExtensionType& extension,
const bool is_vec);
-void openvdb_build_mesh(VolumeMeshBuilder *builder, void *v_accessor,
- const int3 resolution, const float threshold,
+void openvdb_build_mesh(VolumeMeshBuilder *builder,
+ void *v_grid,
+ const float threshold,
const bool is_vec);
CCL_NAMESPACE_END