Author: tomithy
Date: 2010-08-17 20:14:33 -0700 (Tue, 17 Aug 2010)
New Revision: 21444

Modified:
   cytoscapeweb/branches/gsoc2010/gbeb/src/gbeb/util/Pathfinder.as
Log:


Modified: cytoscapeweb/branches/gsoc2010/gbeb/src/gbeb/util/Pathfinder.as
===================================================================
--- cytoscapeweb/branches/gsoc2010/gbeb/src/gbeb/util/Pathfinder.as     
2010-08-18 00:35:41 UTC (rev 21443)
+++ cytoscapeweb/branches/gsoc2010/gbeb/src/gbeb/util/Pathfinder.as     
2010-08-18 03:14:33 UTC (rev 21444)
@@ -67,6 +67,7 @@
                        var searchSpaceTrace:String = ""; //debug
                        
                        //kmeans_Pathfinding(edge, searchSpace);
+                       removeSharpEdges2(edge);
                        Kmeans_Pathfinding2(edge);
                        
                        //AStar_pathfindingAlgrithm(edge, searchSpace);
@@ -270,6 +271,22 @@
                        
                        return false;
                }
+               
+               private function removeSharpEdges2(edge:EdgeSprite):void
+               {
+                       var ctrl:Array = edge.props.$controlPointsArray;
+                       var source:Point = new Point(edge.source.x, 
edge.source.y);
+                       var target:Point = new Point(edge.target.x, 
edge.target.y);
+                       
+                       var turnsArray:Array = []; //stores in consecutive 
lists the number of points per turn.
+                       
+                       for each (var p:Point in ctrl)
+                       {
+                               trace("Pathfinder: removeSharpEdges2: " + edge, 
ctrl.length);
+                       }
+                       
+                       
+               }
 
        } //end of class
 }
\ No newline at end of file

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to