This repository has been archived on 2023-10-09. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
blender-archive/source/blender/bmesh/operators/subdivideop.h
Joseph Eagar 815d8fce22 Added a new slot type, that maps geometric elements to
client-defined data.  Made edge subdivide use it.

Also removed the float and int slot buffer types, as per
discussion with Briggs, until such a time as we see
a use for them.
2009-02-09 06:36:59 +00:00

37 lines
910 B
C++

#ifndef _SUBDIVIDEOP_H
#define _SUBDIVIDEOP_H
typedef struct subdparams {
int numcuts;
int flag;
float rad;
BMOperator *op;
} 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 */