Moved function declarations from BKE_mesh.h → BKE_mesh_runtime.h
authorSybren A. Stüvel <sybren@stuvel.eu>
Tue, 5 Jun 2018 13:59:53 +0000 (15:59 +0200)
committerSybren A. Stüvel <sybren@stuvel.eu>
Tue, 5 Jun 2018 14:59:18 +0000 (16:59 +0200)
15 files changed:
source/blender/blenkernel/BKE_mesh.h
source/blender/blenkernel/BKE_mesh_runtime.h [new file with mode: 0644]
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/blenkernel/intern/bvhutils.c
source/blender/blenkernel/intern/cloth.c
source/blender/blenkernel/intern/mesh.c
source/blender/blenkernel/intern/mesh_runtime.c
source/blender/blenloader/intern/readfile.c
source/blender/bmesh/intern/bmesh_mesh_conv.c
source/blender/editors/armature/meshlaplacian.c
source/blender/editors/transform/transform_snap_object.c
source/blender/modifiers/intern/MOD_collision.c
source/blender/modifiers/intern/MOD_laplaciandeform.c
source/blender/modifiers/intern/MOD_remesh.c
source/blender/modifiers/intern/MOD_surfacedeform.c

index efbc00c456fe719a82eb232e1eada64e32119fa7..bdeb331391872e373d9f19866ab0d70fd292dcd6 100644 (file)
@@ -206,20 +206,6 @@ void BKE_mesh_mselect_active_set(struct Mesh *me, int index, int type);
 
 void BKE_mesh_apply_vert_coords(struct Mesh *mesh, float (*vertCoords)[3]);
 
-/* *** mesh_runtime.c *** */
-void                   BKE_mesh_runtime_reset(struct Mesh *mesh);
-int                    BKE_mesh_runtime_looptri_len(const struct Mesh *mesh);
-void                   BKE_mesh_runtime_looptri_recalc(struct Mesh *mesh);
-const struct MLoopTri *BKE_mesh_runtime_looptri_ensure(struct Mesh *mesh);
-bool                   BKE_mesh_runtime_ensure_edit_data(struct Mesh *mesh);
-bool                   BKE_mesh_runtime_clear_edit_data(struct Mesh *mesh);
-void                   BKE_mesh_runtime_clear_geometry(struct Mesh *mesh);
-void                   BKE_mesh_runtime_clear_cache(struct Mesh *mesh);
-
-void BKE_mesh_runtime_verttri_from_looptri(
-        struct MVertTri *r_verttri,
-        const struct MLoop *mloop, const struct MLoopTri *looptri, int looptri_num);
-
 
 /* *** mesh_evaluate.c *** */
 
diff --git a/source/blender/blenkernel/BKE_mesh_runtime.h b/source/blender/blenkernel/BKE_mesh_runtime.h
new file mode 100644 (file)
index 0000000..beca4f9
--- /dev/null
@@ -0,0 +1,55 @@
+/*
+ * ***** BEGIN GPL LICENSE BLOCK *****
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
+ * All rights reserved.
+ *
+ * The Original Code is: all of this file.
+ *
+ * Contributor(s): Blender Foundation
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+#ifndef __BKE_MESH_RUNTIME_H__
+#define __BKE_MESH_RUNTIME_H__
+
+/** \file BKE_mesh_runtime.h
+ *  \ingroup bke
+ *
+ * This file contains access functions for the Mesh.runtime struct.
+ */
+
+struct Mesh;
+struct MLoop;
+struct MLoopTri;
+struct MVertTri;
+
+void BKE_mesh_runtime_reset(struct Mesh *mesh);
+int BKE_mesh_runtime_looptri_len(const struct Mesh *mesh);
+void BKE_mesh_runtime_looptri_recalc(struct Mesh *mesh);
+const struct MLoopTri *BKE_mesh_runtime_looptri_ensure(struct Mesh *mesh);
+bool BKE_mesh_runtime_ensure_edit_data(struct Mesh *mesh);
+bool BKE_mesh_runtime_clear_edit_data(struct Mesh *mesh);
+void BKE_mesh_runtime_clear_geometry(struct Mesh *mesh);
+void BKE_mesh_runtime_clear_cache(struct Mesh *mesh);
+
+void BKE_mesh_runtime_verttri_from_looptri(
+        struct MVertTri *r_verttri,
+        const struct MLoop *mloop, const struct MLoopTri *looptri, int looptri_num);
+
+
+#endif /* __BKE_MESH_RUNTIME_H__ */
index 1698946b506e33ac1880471e91fed20995b7552c..1c12b73dff938dd0fbe9d150f0a1d1d4111ba3bb 100644 (file)
@@ -61,6 +61,7 @@
 #include "BKE_modifier.h"
 #include "BKE_mesh.h"
 #include "BKE_mesh_mapping.h"
+#include "BKE_mesh_runtime.h"
 #include "BKE_mesh_tangent.h"
 #include "BKE_object.h"
 #include "BKE_object_deform.h"
index b3ea3de6ea990fd253e95b62ed96936c7b55ca67..e8328139d64a889f71b85fbcfdd4b1e796bcb82e 100644 (file)
@@ -45,6 +45,7 @@
 #include "BKE_DerivedMesh.h"
 #include "BKE_editmesh.h"
 #include "BKE_mesh.h"
+#include "BKE_mesh_runtime.h"
 
 #include "MEM_guardedalloc.h"
 
index a39de284064f2563efcddbe7461061cd82ed998c..cc1c7260cbce291dc79bf48c2314561e7922b6a3 100644 (file)
@@ -48,7 +48,7 @@
 #include "BKE_cloth.h"
 #include "BKE_effect.h"
 #include "BKE_global.h"
-#include "BKE_mesh.h"
+#include "BKE_mesh_runtime.h"
 #include "BKE_modifier.h"
 #include "BKE_pointcache.h"
 
index d27809586c2f4afc092375b55f83b2d1627dee98..83ca148085f0179463ef64554da04a23236c3d85 100644 (file)
@@ -46,6 +46,7 @@
 #include "BKE_DerivedMesh.h"
 #include "BKE_global.h"
 #include "BKE_mesh.h"
+#include "BKE_mesh_runtime.h"
 #include "BKE_library.h"
 #include "BKE_material.h"
 #include "BKE_modifier.h"
index 42b8824a2047d74eba31bc0edd3d0618ff22c218..86d3cf7a0c8f8babf89db5dd2aac39f78e79c58c 100644 (file)
@@ -41,6 +41,7 @@
 
 #include "BKE_bvhutils.h"
 #include "BKE_mesh.h"
+#include "BKE_mesh_runtime.h"
 
 /* -------------------------------------------------------------------- */
 /** \name Mesh Runtime Struct Utils
index b0a1789eb7edd223c81cb45cc990a32dac48755f..cb80246a80339e47655a29ad562108605db34fc1 100644 (file)
 #include "BKE_material.h"
 #include "BKE_main.h" // for Main
 #include "BKE_mesh.h" // for ME_ defines (patching)
+#include "BKE_mesh_runtime.h"
 #include "BKE_modifier.h"
 #include "BKE_multires.h"
 #include "BKE_node.h" // for tree type defines
index cf6bc0e0bac5b6eb7558962e34b0a040b67410b4..5ba3f1496899e45e06124ed13e3102335f514eea 100644 (file)
@@ -88,6 +88,7 @@
 #include "BLI_math_vector.h"
 
 #include "BKE_mesh.h"
+#include "BKE_mesh_runtime.h"
 #include "BKE_customdata.h"
 #include "BKE_multires.h"
 
index bc6d776911a0d1fec62e3cee87d73a0d360f56c4..1f01def513344ffd705fb5d3ffd3e2a0f9d95636 100644 (file)
@@ -42,6 +42,7 @@
 #include "BKE_DerivedMesh.h"
 #include "BKE_modifier.h"
 #include "BKE_mesh.h"
+#include "BKE_mesh_runtime.h"
 
 #include "ED_mesh.h"
 #include "ED_armature.h"
index 5932a35bf2bf46b5620e7e2eb9fb7b1cefe1962f..9a8ecc86230493523218fbdff5563aeb7bad6f35 100644 (file)
@@ -56,6 +56,7 @@
 #include "BKE_tracking.h"
 #include "BKE_context.h"
 #include "BKE_mesh.h"
+#include "BKE_mesh_runtime.h"
 
 #include "DEG_depsgraph.h"
 #include "DEG_depsgraph_query.h"
index 036954a2774e39e6a50fb861a30022ab13fb2293..71022f8a4abd27fcf442758c90e18b44c587ef7d 100644 (file)
@@ -45,6 +45,7 @@
 #include "BKE_global.h"
 #include "BKE_library.h"
 #include "BKE_mesh.h"
+#include "BKE_mesh_runtime.h"
 #include "BKE_modifier.h"
 #include "BKE_pointcache.h"
 #include "BKE_scene.h"
index ae4eb0424444482a6d94a10b4251ffc35696f6c7..63b4e9506970e078a4496f560bec7d0c0165f3df 100644 (file)
@@ -38,8 +38,8 @@
 #include "BKE_deform.h"
 #include "BKE_editmesh.h"
 #include "BKE_library.h"
-#include "BKE_mesh.h"
 #include "BKE_mesh_mapping.h"
+#include "BKE_mesh_runtime.h"
 #include "BKE_particle.h"
 
 #include "DNA_mesh_types.h"
index eff343a4906403f3d2e4aff36068078dd24db884..df607c04164d1cb5d25a1bbaa058e47878c7fbb6 100644 (file)
@@ -38,6 +38,7 @@
 #include "MOD_modifiertypes.h"
 
 #include "BKE_mesh.h"
+#include "BKE_mesh_runtime.h"
 
 #include <assert.h>
 #include <stdlib.h>
index c75f317e3bc558bda57a5cc3eff3d8e27e76aa0d..e964da0a8d11a5449f6ad4a4e9b34720d6565757 100644 (file)
@@ -9,7 +9,7 @@
 #include "BLI_task.h"
 
 #include "BKE_bvhutils.h"
-#include "BKE_mesh.h"
+#include "BKE_mesh_runtime.h"
 #include "BKE_editmesh.h"
 #include "BKE_library.h"
 #include "BKE_library_query.h"