[Bf-blender-cvs] [ca21b07] openvdb: Removed unused util_volume files.

Lukas Tönne noreply at git.blender.org
Sun Nov 13 22:00:13 CET 2016


Commit: ca21b0702cb62a9c4be893519254854575e8cb2f
Author: Lukas Tönne
Date:   Sun Nov 13 21:59:54 2016 +0100
Branches: openvdb
https://developer.blender.org/rBca21b0702cb62a9c4be893519254854575e8cb2f

Removed unused util_volume files.

===================================================================

M	intern/cycles/kernel/geom/geom_volume.h
M	intern/cycles/kernel/kernel_compat_cpu.h
M	intern/cycles/render/nodes.cpp
M	intern/cycles/render/volume.h
M	intern/cycles/util/CMakeLists.txt
D	intern/cycles/util/util_volume.cpp
D	intern/cycles/util/util_volume.h

===================================================================

diff --git a/intern/cycles/kernel/geom/geom_volume.h b/intern/cycles/kernel/geom/geom_volume.h
index 8274d19..841f121 100644
--- a/intern/cycles/kernel/geom/geom_volume.h
+++ b/intern/cycles/kernel/geom/geom_volume.h
@@ -14,6 +14,10 @@
  * limitations under the License.
  */
 
+#ifdef WITH_OPENVDB
+#include "../openvdb/vdb_thread.h"
+#endif
+
 /* Volume Primitive
  *
  * Volumes are just regions inside meshes with the mesh surface as boundaries.
diff --git a/intern/cycles/kernel/kernel_compat_cpu.h b/intern/cycles/kernel/kernel_compat_cpu.h
index d51a0c5..dfcfcba 100644
--- a/intern/cycles/kernel/kernel_compat_cpu.h
+++ b/intern/cycles/kernel/kernel_compat_cpu.h
@@ -41,7 +41,6 @@
 #include "util_half.h"
 #include "util_types.h"
 #include "util_texture.h"
-#include "util_volume.h"
 
 #define ccl_addr_space
 
diff --git a/intern/cycles/render/nodes.cpp b/intern/cycles/render/nodes.cpp
index 3045800..e9b6cdf 100644
--- a/intern/cycles/render/nodes.cpp
+++ b/intern/cycles/render/nodes.cpp
@@ -30,6 +30,10 @@
 #include "util_foreach.h"
 #include "util_transform.h"
 
+#ifdef WITH_OPENVDB
+#include "../kernel/openvdb/vdb_thread.h"
+#endif
+
 CCL_NAMESPACE_BEGIN
 
 /* Texture Mapping */
diff --git a/intern/cycles/render/volume.h b/intern/cycles/render/volume.h
index 5378965..d08c652 100644
--- a/intern/cycles/render/volume.h
+++ b/intern/cycles/render/volume.h
@@ -21,7 +21,6 @@
 
 #include "util_string.h"
 #include "util_types.h"
-#include "util_volume.h"
 
 #ifdef WITH_OPENVDB
 #include <openvdb/openvdb.h>
diff --git a/intern/cycles/util/CMakeLists.txt b/intern/cycles/util/CMakeLists.txt
index f9c7c73..02ee4cd 100644
--- a/intern/cycles/util/CMakeLists.txt
+++ b/intern/cycles/util/CMakeLists.txt
@@ -81,20 +81,10 @@ set(SRC_HEADERS
 	util_vector.h
 	util_version.h
 	util_view.h
-	util_volume.h
 	util_windows.h
 	util_xml.h
 )
 
-if(WITH_OPENVDB)
-    add_definitions(
-        -DWITH_OPENVDB
-    )
-    list(APPEND SRC
-		util_volume.cpp
-    )
-endif()
-
 include_directories(${INC})
 include_directories(SYSTEM ${INC_SYS})
 
diff --git a/intern/cycles/util/util_volume.cpp b/intern/cycles/util/util_volume.cpp
deleted file mode 100644
index d2f0207..0000000
--- a/intern/cycles/util/util_volume.cpp
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * Copyright 2016 Blender Foundation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#include "util_volume.h"
-
-#include <cstdio>
diff --git a/intern/cycles/util/util_volume.h b/intern/cycles/util/util_volume.h
deleted file mode 100644
index 1621d84..0000000
--- a/intern/cycles/util/util_volume.h
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright 2016 Blender Foundation
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __UTIL_VOLUME_H__
-#define __UTIL_VOLUME_H__
-
-#include "util_types.h"
-
-#include "../kernel/kernel_types.h"
-
-#ifdef WITH_OPENVDB
-#include "../kernel/openvdb/vdb_thread.h"
-#endif
-
-CCL_NAMESPACE_BEGIN
-
-#if 0
-struct KernelGlobals;
-struct Ray;
-struct Intersection;
-
-class float_volume {
-public:
-	virtual ~float_volume() {}
-#if 0
-	virtual float sample(float x, float y, float z, int sampling) = 0;
-	virtual bool intersect(const Ray *ray, float *isect_t) = 0;
-	virtual bool march(float *t0, float *t1) = 0;
-	virtual bool has_uniform_voxels() = 0;
-#endif
-};
-
-class float3_volume {
-public:
-	virtual ~float3_volume() {}
-#if 0
-	virtual float3 sample(float x, float y, float z, int sampling) = 0;
-	virtual bool intersect(const Ray *ray, float *isect_t) = 0;
-	virtual bool march(float *t0, float *t1) = 0;
-	virtual bool has_uniform_voxels() = 0;
-#endif
-};
-#endif
-
-CCL_NAMESPACE_END
-
-#endif /* __UTIL_VOLUME_H__ */
-




More information about the Bf-blender-cvs mailing list