/// <summary> /// Scan Routine will add new lots to lots list from the result of ScanTerraRetLotVertex() /// </summary> /// <param name="inPolyDiv">how many div ex 5x5 a real poly will have</param> /// <param name="polyX">real polys in X will cover in each scan pass</param> /// <param name="polyZ">real polys in Z will cover in each scan pass</param> private void ScanProcedure(int inPolyDiv, int polyX, int polyZ) { //return; List <Vector3> newLotVertex = new List <Vector3>(); newLotVertex = ScanTerraRetLotVertex(inPolyDiv, polyX, polyZ); Lots.Add(new Lot(newLotVertex, Lots.Count, lotStart, lotEnd)); //print("LotsScanned:" + Lots.Count); AllVertexs = UList.AddOneListToList(AllVertexs, newLotVertex); }
public LotOptions GetLotOptions(Lot lot) { if (lot == null) { return(null); } else { LotOptions options; if (!Lots.TryGetValue(lot.LotId, out options)) { options = new LotOptions(lot); mLotOptions.Add(options); Lots.Add(lot.LotId, options); } return(options); } }
public void AddLot(Lot lot) { Lots.Add(lot); }