[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [18869] branches/bmesh/blender/source/ blender/bmesh/operators/subdivideop.h: forgot this file
Joseph Eagar
joeedh at gmail.com
Sun Feb 8 18:31:03 CET 2009
Revision: 18869
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18869
Author: joeedh
Date: 2009-02-08 18:31:03 +0100 (Sun, 08 Feb 2009)
Log Message:
-----------
forgot this file
Added Paths:
-----------
branches/bmesh/blender/source/blender/bmesh/operators/subdivideop.h
Added: branches/bmesh/blender/source/blender/bmesh/operators/subdivideop.h
===================================================================
--- branches/bmesh/blender/source/blender/bmesh/operators/subdivideop.h (rev 0)
+++ branches/bmesh/blender/source/blender/bmesh/operators/subdivideop.h 2009-02-08 17:31:03 UTC (rev 18869)
@@ -0,0 +1,37 @@
+#ifndef _SUBDIVIDEOP_H
+#define _SUBDIVIDEOP_H
+
+typedef struct subdparams {
+ int numcuts;
+ int flag;
+ float rad;
+ GHash *percenthash;
+} subdparams;
+
+typedef void (*subd_pattern_fill_fp)(BMesh *bm, BMFace *face, BMVert **verts,
+ subdparams *params);
+
+/*
+note: this is a pattern-based edge subdivider.
+it tries to match a pattern to edge selections on faces,
+then executes functions to cut them.
+*/
+typedef struct subdpattern {
+ int seledges[20]; //selected edges mask, for splitting
+
+ /*verts starts at the first new vert cut, not the first vert in the
+ face*/
+ subd_pattern_fill_fp connectexec;
+ int len; /*total number of verts, before any subdivision*/
+} subdpattern;
+
+/*generic subdivision rules:
+
+ * two selected edges in a face should make a link
+ between them.
+
+ * one edge should do, what? make pretty topology, or just
+ split the edge only?
+*/
+
+#endif /* _SUBDIVIDEOP_H */
\ No newline at end of file
More information about the Bf-blender-cvs
mailing list