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:
@@ -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)
|
||||
|
@@ -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
|
||||
|
49
source/blender/bmesh/bmesh_tools.h
Normal file
49
source/blender/bmesh/bmesh_tools.h
Normal 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__ */
|
@@ -29,6 +29,7 @@
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "bmesh.h"
|
||||
#include "bmesh_tools.h"
|
||||
|
||||
#include "intern/bmesh_operators_private.h" /* own include */
|
||||
|
||||
|
@@ -30,6 +30,7 @@
|
||||
#include "BLI_math.h"
|
||||
|
||||
#include "bmesh.h"
|
||||
#include "bmesh_tools.h"
|
||||
|
||||
#include "intern/bmesh_operators_private.h" /* own include */
|
||||
|
||||
|
@@ -32,6 +32,8 @@
|
||||
#include "BLI_math.h"
|
||||
|
||||
#include "bmesh.h"
|
||||
#include "bmesh_tools.h"
|
||||
|
||||
#include "intern/bmesh_operators_private.h"
|
||||
|
||||
|
||||
|
@@ -37,6 +37,7 @@
|
||||
#include "BLI_heap.h"
|
||||
|
||||
#include "bmesh.h"
|
||||
#include "bmesh_tools.h"
|
||||
|
||||
#include "intern/bmesh_operators_private.h" /* own include */
|
||||
|
||||
|
@@ -31,6 +31,7 @@
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "bmesh.h"
|
||||
#include "bmesh_tools.h"
|
||||
|
||||
#include "intern/bmesh_operators_private.h" /* own include */
|
||||
|
||||
|
@@ -29,6 +29,7 @@
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "bmesh.h"
|
||||
#include "bmesh_tools.h"
|
||||
|
||||
#include "intern/bmesh_operators_private.h" /* own include */
|
||||
|
||||
|
@@ -34,6 +34,7 @@
|
||||
#include "BLI_scanfill.h"
|
||||
|
||||
#include "bmesh.h"
|
||||
#include "bmesh_tools.h"
|
||||
#include "intern/bmesh_operators_private.h"
|
||||
|
||||
|
||||
|
@@ -31,6 +31,7 @@
|
||||
#include "BLI_utildefines.h"
|
||||
|
||||
#include "bmesh.h"
|
||||
#include "bmesh_tools.h"
|
||||
|
||||
#include "intern/bmesh_operators_private.h" /* own include */
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -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"
|
||||
|
@@ -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)
|
||||
|
@@ -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"
|
||||
|
@@ -52,6 +52,9 @@
|
||||
|
||||
#include "WM_types.h"
|
||||
|
||||
#include "bmesh.h"
|
||||
#include "bmesh_tools.h"
|
||||
|
||||
#include "mesh_intern.h" /* own include */
|
||||
|
||||
struct UserData {
|
||||
|
@@ -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 */
|
||||
|
||||
/**
|
||||
|
@@ -92,6 +92,7 @@
|
||||
#include "GPU_buffers.h"
|
||||
|
||||
#include "bmesh.h"
|
||||
#include "bmesh_tools.h"
|
||||
|
||||
#include <math.h>
|
||||
#include <stdlib.h>
|
||||
|
@@ -46,6 +46,7 @@
|
||||
#include "MOD_util.h"
|
||||
|
||||
#include "bmesh.h"
|
||||
#include "bmesh_tools.h"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
|
@@ -49,6 +49,7 @@
|
||||
#include "BKE_cdderivedmesh.h"
|
||||
|
||||
#include "bmesh.h"
|
||||
#include "bmesh_tools.h"
|
||||
|
||||
// #define USE_TIMEIT
|
||||
|
||||
|
@@ -44,6 +44,7 @@
|
||||
#include "BKE_modifier.h"
|
||||
|
||||
#include "bmesh.h"
|
||||
#include "bmesh_tools.h"
|
||||
|
||||
#include "DNA_object_types.h"
|
||||
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user