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-16 18:18:54 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-16 18:18:54 +0400
commitef8ea14f459e0e765e07fc48858c18dc11cfdfb5 (patch)
tree01af1661f43fc2f2689888971cfe8709bc11e6e8 /source/blender/bmesh/tools/bmesh_edgenet.h
parent36c530dec917d548de24d5c31ed77a2ab565ed05 (diff)
rewrite edgenet fill bmesh operator.
previous code created faces with mixed face-flipping and could get very slow, test with ~60,000 edges here hung my system for over 2min (didnt wait for it to finish), new code executes in about 1 second. new code doesn't attempt to flip faces correctly, its quite involved to do so, especially when the new faces are not created adjacent to eachother. so simpler to calculate normals afterwards.
Diffstat (limited to 'source/blender/bmesh/tools/bmesh_edgenet.h')
-rw-r--r--source/blender/bmesh/tools/bmesh_edgenet.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/source/blender/bmesh/tools/bmesh_edgenet.h b/source/blender/bmesh/tools/bmesh_edgenet.h
new file mode 100644
index 00000000000..ffb3fa133da
--- /dev/null
+++ b/source/blender/bmesh/tools/bmesh_edgenet.h
@@ -0,0 +1,32 @@
+/*
+ * ***** 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_EDGENET_H__
+#define __BMESH_EDGENET_H__
+
+/** \file blender/bmesh/tools/bmesh_edgenet.h
+ * \ingroup bmesh
+ */
+
+void BM_mesh_edgenet(BMesh *bm, const bool use_edge_tag, const short face_oflag);
+
+#endif /* __BMESH_EDGENET_H__ */