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:
authorCampbell Barton <ideasman42@gmail.com>2013-08-22 21:56:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-22 21:56:08 +0400
commite97f979f73ffb1872a7bb388efab883b47544e78 (patch)
tree8ba9247185bb4e7cce7181026f1cf7f0b7fa8d4b /source/blender/bmesh/tools/bmesh_bisect_plane.h
parentc1cc9f3376eea4664a85db82e1901f5f03e59ac0 (diff)
new bmesh operator bisect_plane, cuts a mesh in half, takes a user defined plane as an argument, handles concave ngons which need multiple cuts.
Diffstat (limited to 'source/blender/bmesh/tools/bmesh_bisect_plane.h')
-rw-r--r--source/blender/bmesh/tools/bmesh_bisect_plane.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/source/blender/bmesh/tools/bmesh_bisect_plane.h b/source/blender/bmesh/tools/bmesh_bisect_plane.h
new file mode 100644
index 00000000000..8cd04098cd2
--- /dev/null
+++ b/source/blender/bmesh/tools/bmesh_bisect_plane.h
@@ -0,0 +1,33 @@
+/*
+ * ***** 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): Campbell Barton
+ *
+ * ***** END GPL LICENSE BLOCK *****
+ */
+
+#ifndef __BMESH_BISECT_PLANE_H__
+#define __BMESH_BISECT_PLANE_H__
+
+/** \file blender/bmesh/tools/bmesh_bisect_plane.h
+ * \ingroup bmesh
+ */
+
+void BM_mesh_bisect_plane(BMesh *bm, float plane[4], const bool use_tag,
+ const short oflag_new, const float eps);
+
+#endif /* __BMESH_BISECT_PLANE_H__ */