[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43755] branches/bmesh/blender/source/ blender/modifiers/intern/MOD_remesh.c: avoid an extra mesh copy in remesh modifier

Campbell Barton ideasman42 at gmail.com
Sun Jan 29 23:13:12 CET 2012


Revision: 43755
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43755
Author:   campbellbarton
Date:     2012-01-29 22:13:08 +0000 (Sun, 29 Jan 2012)
Log Message:
-----------
avoid an extra mesh copy in remesh modifier

Modified Paths:
--------------
    branches/bmesh/blender/source/blender/modifiers/intern/MOD_remesh.c

Modified: branches/bmesh/blender/source/blender/modifiers/intern/MOD_remesh.c
===================================================================
--- branches/bmesh/blender/source/blender/modifiers/intern/MOD_remesh.c	2012-01-29 21:59:47 UTC (rev 43754)
+++ branches/bmesh/blender/source/blender/modifiers/intern/MOD_remesh.c	2012-01-29 22:13:08 UTC (rev 43755)
@@ -186,26 +186,11 @@
 	CDDM_lower_num_tessfaces(result, output->curface);
 	MEM_freeN(output);
 
-	CDDM_calc_edges_tessface(result);
+	CDDM_tessfaces_to_faces(result); /* BMESH_TODO - create polygons */
 
-	/* BMESH_TODO - create polygons */
-
-#if 0
-
+	CDDM_calc_edges(result);
 	CDDM_calc_normals(result);
 	return result;
-
-#else /* BMESH ONLY */
-
-	dm = CDDM_copy_from_tessface(result); /*builds ngon faces from tess (mface) faces*/
-	CDDM_calc_normals(dm);
-	result->needsFree = 1;
-	result->release(result);
-
-	return dm;
-
-#endif
-
 }
 
 #else /* !WITH_MOD_REMESH */



More information about the Bf-blender-cvs mailing list