Revision: 17766
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=17766
Author:   theeth
Date:     2008-12-09 21:46:25 +0100 (Tue, 09 Dec 2008)

Log Message:
-----------
Reeb graph filtering

Add exception to normal nodes preservation when that node is the root node. In 
that case, pruning the arc is A-OK and in fact needed.

Modified Paths:
--------------
    branches/etch-a-ton/source/blender/src/reeb.c

Modified: branches/etch-a-ton/source/blender/src/reeb.c
===================================================================
--- branches/etch-a-ton/source/blender/src/reeb.c       2008-12-09 17:48:34 UTC 
(rev 17765)
+++ branches/etch-a-ton/source/blender/src/reeb.c       2008-12-09 20:46:25 UTC 
(rev 17766)
@@ -1662,10 +1662,11 @@
                                middleNode = arc->head;
                        }
                        
-                       if (middleNode->degree == 2)
+                       if (middleNode->degree == 2 && middleNode != 
rg->nodes.first)
                        {
 #if 1
                                // If middle node is a normal node, it will be 
removed later
+                               // Only if middle node is not the root node
                                /* USE THIS IF YOU WANT TO PROLONG ARCS TO 
THEIR TERMINAL NODES
                                 * FOR HANDS, THIS IS NOT THE BEST RESULT 
                                 * */


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to