move bmesh tools into their own include,

changes to tool args would rebuild far too many files and these are mainly by modifiers outside of bmesh.
This commit is contained in:
2013-08-23 04:22:07 +00:00
parent e8dced9074
commit 6cba2b8d73
22 changed files with 80 additions and 11 deletions

View File

@@ -136,8 +136,11 @@ set(SRC
tools/bmesh_triangulate.c
tools/bmesh_triangulate.h
bmesh.h
bmesh_class.h
# public includes
bmesh.h
bmesh_tools.h
)
if(MSVC)

View File

@@ -269,14 +269,6 @@ extern "C" {
#include "intern/bmesh_inline.h"
#include "tools/bmesh_bevel.h"
#include "tools/bmesh_bisect_plane.h"
#include "tools/bmesh_decimate.h"
#include "tools/bmesh_edgenet.h"
#include "tools/bmesh_edgesplit.h"
#include "tools/bmesh_path.h"
#include "tools/bmesh_triangulate.h"
#ifdef __cplusplus
}
#endif

View File

@@ -0,0 +1,49 @@
/*
* ***** 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.
*
* Contributor(s):
*
* ***** END GPL LICENSE BLOCK *****
*/
#ifndef __BMESH_TOOLS_H__
#define __BMESH_TOOLS_H__
/** \file blender/bmesh/bmesh_tools.h
* \ingroup bmesh
*
* Utility functions that operate directly on the BMesh,
* These can be used by both Modifiers and BMesh-Operators.
*/
#ifdef __cplusplus
extern "C" {
#endif
#include "tools/bmesh_bevel.h"
#include "tools/bmesh_bisect_plane.h"
#include "tools/bmesh_decimate.h"
#include "tools/bmesh_edgenet.h"
#include "tools/bmesh_edgesplit.h"
#include "tools/bmesh_path.h"
#include "tools/bmesh_triangulate.h"
#ifdef __cplusplus
}
#endif
#endif /* __BMESH_TOOLS_H__ */

View File

@@ -29,6 +29,7 @@
#include "BLI_utildefines.h"
#include "bmesh.h"
#include "bmesh_tools.h"
#include "intern/bmesh_operators_private.h" /* own include */

View File

@@ -30,6 +30,7 @@
#include "BLI_math.h"
#include "bmesh.h"
#include "bmesh_tools.h"
#include "intern/bmesh_operators_private.h" /* own include */

View File

@@ -32,6 +32,8 @@
#include "BLI_math.h"
#include "bmesh.h"
#include "bmesh_tools.h"
#include "intern/bmesh_operators_private.h"

View File

@@ -37,6 +37,7 @@
#include "BLI_heap.h"
#include "bmesh.h"
#include "bmesh_tools.h"
#include "intern/bmesh_operators_private.h" /* own include */

View File

@@ -31,6 +31,7 @@
#include "BLI_utildefines.h"
#include "bmesh.h"
#include "bmesh_tools.h"
#include "intern/bmesh_operators_private.h" /* own include */

View File

@@ -29,6 +29,7 @@
#include "BLI_utildefines.h"
#include "bmesh.h"
#include "bmesh_tools.h"
#include "intern/bmesh_operators_private.h" /* own include */

View File

@@ -34,6 +34,7 @@
#include "BLI_scanfill.h"
#include "bmesh.h"
#include "bmesh_tools.h"
#include "intern/bmesh_operators_private.h"

View File

@@ -31,6 +31,7 @@
#include "BLI_utildefines.h"
#include "bmesh.h"
#include "bmesh_tools.h"
#include "intern/bmesh_operators_private.h" /* own include */

View File

@@ -42,6 +42,8 @@
#include "BKE_deform.h"
#include "bmesh.h"
#include "bmesh_bevel.h" /* own include */
#include "./intern/bmesh_private.h"
#define BEVEL_EPSILON_D 1e-6

View File

@@ -38,6 +38,7 @@
#include "BLI_math.h"
#include "bmesh.h"
#include "bmesh_bisect_plane.h" /* own include */
#ifdef __GNUC__
# pragma GCC diagnostic error "-Wsign-conversion"

View File

@@ -32,8 +32,7 @@
#include "BLI_math.h"
#include "bmesh.h"
#include "intern/bmesh_operators_private.h" /* own include */
#include "bmesh_decimate.h" /* own include */
static bool bm_vert_dissolve_fan_test(BMVert *v)

View File

@@ -37,6 +37,7 @@
#include "BLI_linklist.h"
#include "bmesh.h"
#include "bmesh_edgenet.h" /* own include */
#ifdef __GNUC__
# pragma GCC diagnostic error "-Wsign-conversion"

View File

@@ -52,6 +52,9 @@
#include "WM_types.h"
#include "bmesh.h"
#include "bmesh_tools.h"
#include "mesh_intern.h" /* own include */
struct UserData {

View File

@@ -50,6 +50,9 @@
#include "ED_transform.h"
#include "ED_view3d.h"
#include "bmesh.h"
#include "bmesh_tools.h"
#include "mesh_intern.h" /* own include */
/**

View File

@@ -92,6 +92,7 @@
#include "GPU_buffers.h"
#include "bmesh.h"
#include "bmesh_tools.h"
#include <math.h>
#include <stdlib.h>

View File

@@ -46,6 +46,7 @@
#include "MOD_util.h"
#include "bmesh.h"
#include "bmesh_tools.h"
#include "MEM_guardedalloc.h"

View File

@@ -49,6 +49,7 @@
#include "BKE_cdderivedmesh.h"
#include "bmesh.h"
#include "bmesh_tools.h"
// #define USE_TIMEIT

View File

@@ -44,6 +44,7 @@
#include "BKE_modifier.h"
#include "bmesh.h"
#include "bmesh_tools.h"
#include "DNA_object_types.h"

View File

@@ -33,6 +33,9 @@
#include "BKE_modifier.h"
#include "BKE_editmesh.h"
#include "bmesh.h"
#include "bmesh_tools.h"
static DerivedMesh *triangulate_dm(DerivedMesh *dm, const int flag)
{
DerivedMesh *result;