override public void createGeometry()
        {
            var block = getCityBlock();

            geometry = Ward.createAlleys(block,
                                         Mathf.Sqrt(block.square) * (1 + Random.value),
                                         0.1f + Random.value * 0.3f, 0.3f, // regular
                                         0.25f);                           // squares
        }
Example #2
0
        override public void createGeometry()
        {
            var housing = Polygon.rect(4, 4);
            var pos     = GeomUtils.interpolate(patch.shape[Random.Range(0, patch.shape.Count - 1)], patch.shape.centroid, 0.3f + Random.value * 0.4f);

            housing.rotate(Random.value * Mathf.PI);
            housing.offset(pos);

            geometry = Ward.createOrthoBuilding(housing, 8, 0.5f);
        }
Example #3
0
        override public void createGeometry()
        {
            var block = getCityBlock();

            geometry = Ward.createAlleys(block, minSq, gridChaos, sizeChaos, emptyProb);

            if (!model.isEnclosed(patch))
            {
                filterOutskirts();
            }
        }
Example #4
0
 public override void createGeometry()
 {
     geometry = Random.value < (0.4) ?
                Cutter.ring(getCityBlock(), 2 + Random.value * 4) :
                Ward.createOrthoBuilding(getCityBlock(), 50, 0.8f);
 }
Example #5
0
        override public void createGeometry()
        {
            var block = patch.shape.shrinkEq(Ward.MAIN_STREET * 2);

            geometry = Ward.createOrthoBuilding(block, Mathf.Sqrt(block.square) * 4, 0.6f);
        }