Example #1
0
 public void RenderWires()
 {
     this.Wires = new Model3DGroup();
     if (Properties.Settings.Default.wires)
     {
         var wires = BP.GetWires();
         foreach (dynamic wire in wires.Values)
         {
             Addblob(wire.pos, wire.color.ToString());
             if (wire.connections != null)
             {
                 foreach (dynamic connid in wire.connections)
                 {
                     if (wires.ContainsKey(Convert.ToInt32(connid.id.ToString())))
                     {
                         Addwire(wire.pos, wires[Convert.ToInt32(connid.id.ToString())].pos, wire.color.ToString());
                     }
                 }
             }
         }
         Image_blueprint.DataContext = null;
         Image_blueprint.DataContext = this;
     }
 }