示例#1
0
    /// <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);
    }
示例#2
0
        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);
            }
        }
示例#3
0
 public void AddLot(Lot lot)
 {
     Lots.Add(lot);
 }