示例#1
0
 public void bundleSitio()
 {
     foreach (Edge e in edges)
     {
         if (!bundles.Exists(x => x.name == nodes[e.start].name))
         {
             //create a new one
             EdgeBundle eb = new EdgeBundle();
             eb.name = nodes[e.start].name;
             eb.imports.Add(nodes[e.end].name);
             bundles.Add(eb);
         }
         else
         {
             EdgeBundle eb = bundles.Find(x => x.name == nodes[e.start].name);
             eb.imports.Add(nodes[e.end].name);
         }
     }
     outputBundles(@"C:\Users\Admin\Documents\projects\LostCity\viewNet\sitioNet.json");
 }
示例#2
0
 public void bundlePoint()
 {
     foreach (Edge e in edges)
     {
         string startname = "s." + nodes[e.start].name + "_p_" + nodes[e.start].id;
         string endname   = "s." + nodes[e.end].name + "_p_" + nodes[e.end].id;
         if (!bundles.Exists(x => x.name == startname))
         {
             //create a new one
             EdgeBundle eb = new EdgeBundle();
             eb.name = startname;
             eb.imports.Add(endname);
             bundles.Add(eb);
         }
         else
         {
             EdgeBundle eb = bundles.Find(x => x.name == startname);
             eb.imports.Add(endname);
         }
     }
     outputBundles(@"C:\Users\Admin\Documents\projects\LostCity\viewNet\pointNet.json");
 }