diff options
author | Ton Roosendaal <ton@blender.org> | 2005-10-25 17:57:37 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-10-25 17:57:37 +0400 |
commit | 6894526265818ff5188f1fd82616c81ae9015ae5 (patch) | |
tree | f8b35cecd0251f595737c0f0b89ce8607d4b42dd /source/blender/include | |
parent | d21d25538959611bd090c7d5c3709164290d4b42 (diff) |
Subdivide recode assistance!
- Added subdivide sck upport for vertex groups
- Brought back subdivide-smooth, but it doesn't work as good as before yet,
it used to catch an exception for subdividing the middle vertex of a quad,
with edge-based subdivide it's not that simple. Will check later.
- made "number of cuts" a static variable, so it doesn't jump back to 2
all the time
Coder level notes:
- removed the old subdivide code (yay, over 30k code less!)
- did some minor layout cleanups in the new code (just consistant syntax)
- removed redundant code parts, to enable smooth & vgroup subdiv
- subdivide smooth can do multiple cuts too, but i like to see that only
as option when our smooth formula is good!
Compliment:
I think Johnny really made comprehensible design and nice code here. Was a
joy to work with. :)
Diffstat (limited to 'source/blender/include')
-rw-r--r-- | source/blender/include/BIF_editmesh.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/include/BIF_editmesh.h b/source/blender/include/BIF_editmesh.h index 1895a960f70..f2e759ad6d6 100644 --- a/source/blender/include/BIF_editmesh.h +++ b/source/blender/include/BIF_editmesh.h @@ -171,8 +171,9 @@ extern void convert_to_triface(int direction); extern int removedoublesflag(short flag, float limit); extern void xsortvert_flag(int flag); extern void hashvert_flag(int flag); -extern void subdivideflag(int flag, float rad, int beauty); + extern void esubdivideflag(int flag, float rad, int beauty, int numcuts, int selecttype); + extern void extrude_mesh(void); extern void split_mesh(void); extern void extrude_repeat_mesh(int steps, float offs); |