From 6894526265818ff5188f1fd82616c81ae9015ae5 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Tue, 25 Oct 2005 13:57:37 +0000 Subject: 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. :) --- source/blender/include/BIF_editmesh.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/include/BIF_editmesh.h') 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); -- cgit v1.2.3