// Defining some points - Ground level...//

Point(1) = {0, 0, 0, 1};
Point(2) = {75, -10, 0, 1};
Point(3) = {80, 90, 0, 1};
Point(4) = {30, 100, 0, 1};

// Defining lines...//

Line(1) = {1,2};
Line(2) = {2,3};
Line(3) = {3,4};
Line(4) = {4,1};

// Looping the lines...//

Line Loop(1) = {1,2,3,4};

// Defining points for surrounding buildings...//

// Caffe Nero //

Point(5) = {2, 1, 0, 1};
Point(6) = {9, 0, 0, 1};
Point(7) = {11, 13, 0, 1};

// Translating points...//
 
 
Translate {-3, 2, 0} { Duplicata{ Point{7}; } }

Translate {2, 7, 0} { Duplicata{ Point{8}; } }

Translate {3, -1, 0} { Duplicata{ Point{9}; } }

Translate {0.5, 1, 0} { Duplicata{ Point{10}; } }

Translate {-5.5, 2, 0} { Duplicata{ Point{11}; } }

Translate {-6.5, -22, 0} { Duplicata{ Point{12}; } }

Line(5) = {5,6};
Line(6) = {6,7};
Line(7) = {7,8};
Line(8) = {8,9};
Line(9) = {9,10};
Line(10) = {10,11};
Line(11) = {11,12};
Line(12) = {12,13};
Line(13) = {13,5};

Line Loop(2) = {5,6,7,8,9,10,11,12,13};
Plane Surface(2) = {2};

Extrude {0, 0, 15} { Surface{2}; }

Delete {Volume{1};}

Delete {Surface{2};}

// 20 Fenchurch Street Office //

Translate {7, -1, 0} { Duplicata{ Point{6}; } }

Translate {1, 8, 0} { Duplicata{ Point{44}; } }

Translate {3, -1, 0} { Duplicata{ Point{45}; } }

Translate {0.5, 0.5, 0} { Duplicata{ Point{46}; } }

Translate {4, -1, 0} { Duplicata{ Point{47}; } }

Translate {1, 5, 0} { Duplicata{ Point{48}; } }

Translate {-4, 1, 0} { Duplicata{ Point{49}; } }

Translate {0.5, 0.5, 0} { Duplicata{ Point{50}; } }

Translate {-3, 1, 0} { Duplicata{ Point{51}; } }

Translate {1, 1.5, 0} { Duplicata{ Point{52}; } }

Line(55) = {6,44};
Line(56) = {44,45};
Line(57) = {45,46};
Line(58) = {46,47};
Line(59) = {47,48};
Line(60) = {48,49};
Line(61) = {49,50};
Line(62) = {50,51};
Line(63) = {51,52};
Line(64) = {52,53};
Line(65) = {53,11};

Line Loop(3) = {55,56,57,58,59,60,61,62,63,64,65,-10,-9,-8,-7,-6};
Plane Surface(3) = {3};

Extrude {0, 0, 20} { Surface{3}; }

Delete {Volume{1};}

Delete {Surface{3};}

// Deleting common walls...//

Delete {Surface{31};}

Delete {Surface{35, 39, 43, 47};}

Delete {Surface{138, 142, 134, 146, 130};}


// 20 Fenchurch Street 2nd Office //

Translate {9, -1, 0} { Duplicata{ Point{44}; }}

Translate {3, 13, 0} { Duplicata{ Point{112}; } }

Line(142) = {44,112};
Line(143) = {112,113};
Line(144) = {113,53};

Line Loop(4) = {142,143,144,-64,-63,-62,-61,-60,-59,-58,-57,-56};
Plane Surface(4) = {4};

Extrude {0, 0, 15} { Surface{4}; }

Delete {Volume{1};}

Delete {Surface{4};}

Delete {Surface{90, 94, 98,102, 106, 110, 114, 118, 122};}

Delete {Surface{208, 204, 200, 196, 192, 188, 184, 180, 176};}


// Contractors Offices //

Translate {18, -1, 0} { Duplicata{ Point{112}; }}

Translate {2, 11, 0} { Duplicata{ Point{156}; }}

Line(168) = {112,156};
Line(169) = {156,157};
Line(170) = {157,113};

Line Loop(5) = {168,169,170,-143};
Plane Surface(5) = {5};

Extrude {0, 0, 15} { Surface{5}; }

Delete {Volume{1};}

Delete {Surface{5};}

Delete {Surface{168};}


// Box Behind Contractors Offices //

Translate {-2.5, 2.5, 0} { Duplicata{ Point{157}; }}

Translate {0, 7, 0} { Duplicata{ Point{164}; }}

Translate {-7, 0, 0} { Duplicata{ Point{165}; }}

Translate {0, -6, 0} { Duplicata{ Point{166}; }}

Line(222) = {164,165};
Line(223) = {165,166};
Line(224) = {166,167};
Line(225) = {167,164};

Line Loop(6) = {222,223,224,225};
Plane Surface(6) = {6};

Extrude {0, 0, 15} { Surface{6}; }

Delete {Volume{1};}

Delete {Surface{6};}


// 20 Fenchurch Street Parnetship //

Translate {8, -1, 0} { Duplicata{ Point{156}; }}

Translate {6, -1, 0} { Duplicata{ Point{178}; }}

Translate {2, 11, 0} { Duplicata{ Point{179}; }}

Line(248) = {156,178};
Line(249) = {178,179};
Line(250) = {179,180};
Line(251) = {180,157};

Line Loop(7) = {248,249,250,251,-169};
Plane Surface(7) = {7};

Extrude {0, 0, 15} { Surface{7}; }

Delete {Volume{1};}

Delete {Surface{7};}

Delete {Surface{222};}

// The Insurance Insider //

Translate {15, -3, 0} { Duplicata{ Point{179}; }}

Translate {1.5, 2, 0} { Duplicata{ Point{191}; }}

Translate {1, 23, 0} { Duplicata{ Point{192}; }}

Translate {-14, 2, 0} { Duplicata{ Point{193}; }}

Line(271) = {179,191};
Line(272) = {191,192};
Line(273) = {192,193};
Line(274) = {193,194};
Line(275) = {194,180};

Line Loop(8) = {271,272,273,274,275,-250};
Plane Surface(8) = {8};

Extrude {0, 0, 20} { Surface{8}; }

Delete {Volume{1};}

Delete {Surface{8};}

Delete {Surface{271, 311};}


// Walkie-Talkie Building //

Translate {13, 8, 0} { Duplicata{ Point{12}; }}

Translate {42, -4, 0} { Duplicata{ Point{213}; }}

Translate {3, 38, 0} { Duplicata{ Point{214}; }}

Translate {-35, 6, 0} { Duplicata{ Point{215}; }}

Line(307) = {213,214};
Line(308) = {214,215};
Line(309) = {215,216};
Line(310) = {216,213};

Line Loop(9) = {307,308,309,310};

Translate {-7, -7, 160} { Duplicata{ Point{213}; }}

Translate {7, -7, 160} { Duplicata{ Point{214}; }}

Translate {7, 7, 145} { Duplicata{ Point{215}; }}

Translate {-7, 7, 145} { Duplicata{ Point{216}; }}

Translate {-7, -50.94, -80} { Duplicata{ Point{220}; }}

Ellipse(313) = {217, 221, 220, 220};

Translate {0, -100, -150} { Duplicata{ Point{217}; }}

Ellipse(314) = {217, 222, 213, 213};

Translate {0, 100, -140} { Duplicata{ Point{220}; }}

Ellipse(315) = {220, 223, 216, 216};

Line Loop(10) = {310,-314,313,315};
Ruled Surface(10) = {10};

my_new_surfs[] = Translate {35,-6,0} {Duplicata{ Surface{10};}};

Translate {7, 2, 0} {Point{225};}

Translate {20, 0, 0} {Point{231};}

Translate {15, 0, 0} {Point{236};}

Delete {Point{219};}

Delete {Point{218};}

Translate {27, 1, -35} { Duplicata{ Point{217}; }}

Ellipse(321) = {231, 242, 217, 217};

Line Loop(11) = {307,318,321,314};
Ruled Surface(11) = {11};

Translate {27, -6, -35} { Duplicata{ Point{220}; }}

Ellipse(322) = {236, 243, 220, 220};

Line Loop(12) = {-309,-320,322,315};
Ruled Surface(12) = {12};

Line Loop(13) = {-321,319,322,-313};
Ruled Surface(13) = {13};


// Block In Front Of The Walkie-Talkie Building //

Translate {-4, -4, 0} { Duplicata{ Point{1}; }}

Translate {24, -4, 0} { Duplicata{ Point{244}; }}

Translate {3, -0.5, 0} { Duplicata{ Point{245}; }}

Translate {28, -3.5, 0} { Duplicata{ Point{246}; }}

Translate {23, -3.5, 0} { Duplicata{ Point{247}; }}

Translate {-5, -30, 0} { Duplicata{ Point{244}; }}

Translate {-2, -30, 0} { Duplicata{ Point{245}; }}

Line(323) = {250,245};
Line(324) = {245,244};
Line(325) = {244,249};

Translate {3, -0.5, 0} { Duplicata{ Point{250}; }}

Translate {-2, -30, 0} { Duplicata{ Point{248}; }}

Delete {Point{247};}

Line(326) = {252,248};
Line(327) = {248,246};
Line(328) = {246,251};


// Howden //

Translate {1, -1.5, 0} { Duplicata{ Point{244}; }}

Translate {21.5, -3.5, 0} { Duplicata{ Point{253}; }}

Translate {-3, -20, 0} { Duplicata{ Point{253}; }}

Translate {23, -3.5, 0} { Duplicata{ Point{255}; }}

Line(329) = {255,256};
Line(330) = {256,254};
Line(331) = {254,253};
Line(332) = {253,255};

Line Loop(14) = {329,330,331,332};
Ruled Surface(14) = {14};

Extrude {0, 0, 20} { Surface{14}; }

Delete {Volume{1};}

Delete {Surface{14};}


// Peek House //

Translate {1, -1.5, 0} { Duplicata{ Point{246}; }}

Translate {-1, -20, 0} { Duplicata{ Point{267}; }}

Translate {27, -3.8, 0} { Duplicata{ Point{267}; }}

Translate {27, -3.8, 0} { Duplicata{ Point{268}; }}

Line(349) = {268,270};
Line(350) = {270,269};
Line(351) = {269,267};
Line(352) = {267,268};

Line Loop(15) = {349,350,351,352};
Ruled Surface(15) = {15};

Extrude {0, 0, 20} { Surface{15}; }

Delete {Volume{1};}

Delete {Surface{15};}


// Pre-Style //

Translate {21, -3.2, 0} { Duplicata{ Point{269}; }}

Translate {21, -3.2, 0} { Duplicata{ Point{270}; }}

Line(371) = {270,282};
Line(372) = {282,281};
Line(373) = {281,269};

Line Loop(16) = {371,372,373,-350};
Plane Surface(16) = {16};

Extrude {0, 0, 25} { Surface{16}; }

Delete {Volume{1};}

Delete {Surface{16};}

Delete {Surface{367,397};}


// Block Diagonal South West Of The Walkie-Talkie Building //

Translate {-3, 0.6, 0} { Duplicata{ Point{244}; }}

Translate {-3, 0.6, 0} { Duplicata{ Point{249}; }}

Translate {-30, 4, 0} { Duplicata{ Point{293}; }}

Line(393) = {294,293};
Line(394) = {293,295};


// Post Office //

Translate {-1.8, -1.5, 0} { Duplicata{ Point{293}; }}

Translate {-15, 2.1, 0} { Duplicata{ Point{296}; }}

Translate {-4, -20, 0} { Duplicata{ Point{297}; }}

Translate {15.5, -2.1, 0} { Duplicata{ Point{298}; }}

Line(395) = {298,299};
Line(396) = {299,296};
Line(397) = {296,297};
Line(398) = {297,298};

Line Loop(17) = {395,396,397,398};
Ruled Surface(17) = {17};

Extrude {0, 0, 20} { Surface{17}; }

Delete {Volume{1};}

Delete {Surface{17};}


// Block Left Hand Side Of The Walkie-Talkie Building //

Translate {-3, 0.5, 0} { Duplicata{ Point{1}; }}

Translate {-3, 0.5, 0} { Duplicata{ Point{4}; }}

Translate {-30, 4, 0} { Duplicata{ Point{310}; }}

Translate {-30, 5, 0} { Duplicata{ Point{311}; }}

Line(415) = {312,310};
Line(416) = {310,311};
Line(417) = {311,313};


// Pret A Manger //

Translate {-1, 1.3, 0} { Duplicata{ Point{310}; }}

Translate {4, 15, 0} { Duplicata{ Point{314}; }}

Translate {-20, 2.8, 0} { Duplicata{ Point{314}; }}

Translate {-20, 2.8, 0} { Duplicata{ Point{315}; }}

Line(418) = {316,314};
Line(419) = {314,315};
Line(420) = {315,317};
Line(421) = {317,316};

Line Loop(18) = {418,419,420,421};
Plane Surface(18) = {18};

Extrude {0, 0, 15} { Surface{18}; }

Delete {Volume{1};}

Delete {Surface{18};}

Delete {Surface{443};}

Translate {-2, 2.5, 2} { Duplicata{ Point{319}; }}

Translate {-3.1, -2, 2} { Duplicata{ Point{323}; }}

Translate {3.1, 2, 2} { Duplicata{ Point{318}; }}

Translate {2, -2.5, 2} { Duplicata{ Point{327}; }}

Line(438) = {318,330};
Line(439) = {319,328};
Line(440) = {323,329};
Line(441) = {327,331};

Line(442) = {330,328};
Line(443) = {328,329};
Line(444) = {329,331};
Line(445) = {331,330};

Line Loop(19) = {423,439,-442,-438};
Ruled Surface(19) = {19};

Line Loop(20) = {424,440,-443,-439};
Ruled Surface(20) = {20};

Line Loop(21) = {425,441,-444,-440};
Ruled Surface(21) = {21};

Line Loop(22) = {426,438,-445,-441};
Ruled Surface(22) = {22};

Line Loop(23) = {442,443,444,445};
Plane Surface(23) = {23};

// Philpot Tandoori//

Translate {3, 10, 0} { Duplicata{ Point{315}; }}

Translate {3, 10, 0} { Duplicata{ Point{317}; }}

Line(446) = {315,332};
Line(447) = {332,333};
Line(448) = {333,317};

Line Loop(24) = {446,447,448,-420};
Plane Surface(24) = {24};

Extrude {0, 0, 15} { Surface{24}; }

Delete {Volume{1};}

Delete {Surface{24};}

Delete {Surface{438};}


// Spice Trader //

Translate {3, 10, 0} { Duplicata{ Point{332}; }}

Translate {3, 10, 0} { Duplicata{ Point{333}; }}

Line(461) = {332,340};
Line(462) = {340,341};
Line(463) = {341,333};

Line Loop(25) = {461,462,463,-447};
Plane Surface(25) = {25};

Extrude {0, 0, 10} { Surface{25}; }

Delete {Volume{1};}

Delete {Surface{25};}

Delete {Surface{461,491};}


// Associative //

Translate {0.3, 1, 0} { Duplicata{ Point{340}; }}

Translate {3, 10, 0} { Duplicata{ Point{352}; }}

Translate {-10, 1.5, 0} { Duplicata{ Point{353}; }}

Translate {-10, 1.5, 0} { Duplicata{ Point{352}; }}

Line(483) = {352,353};
Line(484) = {353,354};
Line(485) = {354,355};
Line(487) = {355,352};

Line Loop(26) = {483,484,485,487};
Plane Surface(26) = {26};

Extrude {0, 0, 10} { Surface{26}; }

Delete {Volume{1};}

Delete {Surface{26};}

// 5 5 //

Translate {5.5, 20, 0} { Duplicata{ Point{353}; }}

Translate {-20, 3, 0} { Duplicata{ Point{366}; }}

Translate {-20, 3, 0} { Duplicata{ Point{353}; }}

Translate {0, 0, 10} { Duplicata{ Point{366}; }}

Translate {-5, 1, 0} { Duplicata{ Point{361}; }}

Translate {3, 15, 0} { Duplicata{ Point{370}; }}

Translate {10, -1, 0} { Duplicata{ Point{371}; }}

Translate {1.5, 5, 0} { Duplicata{ Point{372}; }}

Translate {0, 0, 5} { Duplicata{ Point{370}; }}

Translate {0, 0, 5} { Duplicata{ Point{371}; }}

Translate {0, 0, 5} { Duplicata{ Point{372}; }}

Translate {0, 0, 5} { Duplicata{ Point{373}; }}

Translate {0, 0, 15} { Duplicata{ Point{367}; }}

Translate {0, 0, 15} { Duplicata{ Point{368}; }}

Line(509) = {353,366};
Line(510) = {366,367};
Line(511) = {367,368};
Line(512) = {368,354};
Line(513) = {366,369};
Line(514) = {369,357};
Line(515) = {361,370};
Line(516) = {370,374};
Line(517) = {374,379};
Line(518) = {379,368};
Line(519) = {369,373};
Line(520) = {373,372};
Line(521) = {372,371};
Line(522) = {371,370};
Line(523) = {367,378};
Line(524) = {378,379};
Line(525) = {373,377};
Line(526) = {377,378};
Line(527) = {377,376};
Line(528) = {376,372};
Line(529) = {371,375};
Line(530) = {376,375};
Line(531) = {375,374};

Line Loop(32) = {-514,519,520,521,522,-515,-495};
Plane Surface(32) = {32};

Line Loop(30) = {-484,500,495,515,516,517,518,512};

Line Loop(29) = {509,513,514,-500};
Plane Surface(29) = {29};

Line Loop(28) = {509,510,511,512,-484};

Line Loop(33) = {-511,523,524,518};
Plane Surface(33) = {33};

Line Loop(34) = {513,519,525,526,-523,-510};
Plane Surface(34) = {34};

Line Loop(36) = {-520,525,527,528};
Plane Surface(36) = {36};

Line Loop(37) = {-528,530,-529,-521};
Plane Surface(37) = {37};

Line Loop(38) = {-522,529,531,-516};
Plane Surface(38) = {38};

Line Loop(41) = {526,524,-517,-531,-530,-527};
Plane Surface(41) = {41};

Delete {Surface{505};}

// Vodafone //

Translate {-4.0,-1.5, 0} { Duplicata{ Point{311}; }}

Translate {1, -1.5, 0} { Duplicata{ Point{380}; }}

Translate {-6.5, -23, 0} { Duplicata{ Point{381}; }}

Translate {-45, 7.5, 0} { Duplicata{ Point{380}; }}

Translate {-1.5, -1.5, 0} { Duplicata{ Point{383}; }}

Translate {-7.5, -25.5, 0} { Duplicata{ Point{380}; }}

Translate {-5, 0.7, 0} { Duplicata{ Point{385}; }}

Translate {-2.5, 7.5, 0} { Duplicata{ Point{386}; }}

Translate {-27.5, 5.5, 0} { Duplicata{ Point{387}; }}

Translate {-5, -5, 0} { Duplicata{ Point{388}; }}

Translate {-5, 0.7, 0} { Duplicata{ Point{389}; }}

Translate {-2, 2.5, 0} { Duplicata{ Point{390}; }}

Line(532) = {382,381};
Line(533) = {381,380};
Line(534) = {380,383};
Line(535) = {383,384};
Line(536) = {384,391};
Line(537) = {391,390};
Line(538) = {390,389};
Line(539) = {389,388};
Line(540) = {388,387};
Line(541) = {387,386};
Line(542) = {386,385};
Line(543) = {385,382};

Line Loop(42) = {532,533,534,535,536,537,538,539,540,541,542,543};
Plane Surface(42) = {42};

Extrude {0, 0, 30} { Surface{42}; }

Delete {Volume{1};}

Delete {Surface{42};}


Translate {6, 2, 0} { Duplicata{ Point{425}; }}

Translate {3, 11, 0} { Duplicata{ Point{434}; }}

Translate {-37, 6.5, 0} { Duplicata{ Point{435}; }}

Translate {-38, 7.5, 0} { Duplicata{ Point{434}; }}

Line(600) = {434,435};
Line(601) = {435,436};
Line(602) = {436,437};
Line(603) = {437,434};

Line Loop(44) = {600,601,602,603};
Plane Surface(44) = {44};

Extrude {0, 0, 5} { Surface{44}; }

Delete {Volume{1};}

Delete {Surface{44};}

// Block Diagonal North West Of The Walkie-Talkie Building //

Translate {9, 3, 0} { Duplicata{ Point{311}; }}

Translate {-40, 6, 0} { Duplicata{ Point{448}; }}

Translate {8, 30, 0} { Duplicata{ Point{448}; }}

Line(623) = {448,449};
Line(624) = {448,450};

// Clinton Cards //

Translate {-1.5, 2, 0} { Duplicata{ Point{448}; }}

Translate {7.5, 30, 0} { Duplicata{ Point{451}; }}

Translate {-30, 6.3, 0} { Duplicata{ Point{448}; }}

Translate {7.5, 30, 0} { Duplicata{ Point{453}; }}

Translate {2.5, 10, 0} { Duplicata{ Point{451}; }}

Translate {-10, 1.5, 0} { Duplicata{ Point{451}; }}

Translate {-10.16, 1.5, 0} { Duplicata{ Point{455}; }}

Delete {Point{451};}

Translate {15, -2.2, 0} { Duplicata{ Point{453}; }}

Translate {3.5, 15, 0} { Duplicata{ Point{453}; }}

Translate {15, -2.41541, 0} { Duplicata{ Point{459}; }}

Delete {Point{453};}

Line(625) = {455,452};
Line(626) = {452,454};
Line(627) = {454,459};
Circle(628) = {459,460,458};
Line(629) = {458,456};
Circle(630) = {456,457,455};

Line Loop(45) = {625,626,627,628,629,630};
Plane Surface(45) = {45};

Extrude {0, 0, 25} { Surface{45}; }

Delete {Volume{1};}

Delete {Surface{45};}


// Block Behind The Walkie-Talkie Building //

Translate {85, -17, 0} { Duplicata{ Point{448}; }}

Translate {3, -1, 0} { Duplicata{ Line{624}; }}

Line(664) = {485,484};

// TM Lewin //

Translate {2, 0.5, 0} { Duplicata{ Point{485}; }}

Translate {1.4, 1.5, 0} { Duplicata{ Point{485}; }}

Translate {15, -2.7, 0} { Duplicata{ Point{487}; }}

Translate {3, 10, 0} { Duplicata{ Point{489}; }}

Translate {-16, 3.5, 0} { Duplicata{ Point{490}; }}

Line(665) = {487,489};
Line(666) = {489,490};
Line(667) = {490,491};
Line(668) = {491,488};
Line(669) = {488,487};

Line Loop(46) = {665,666,667,668,669};
Plane Surface(46) = {46};

Extrude {0, 0, 20} { Surface{46}; }

Delete {Volume{1};}

Delete {Surface{46};}

Delete {Surface{683};}


// The Carephone Warehouse //

Translate {10,-1.9, 0} { Duplicata{ Point{489}; }}

Translate {8, 29, 0} { Duplicata{ Point{506}; }}

Translate {6, -1, 0} { Duplicata{ Point{507}; }}

Translate {3, 10, 0} { Duplicata{ Point{508}; }}

Translate {1.5, 5, 0} { Duplicata{ Point{490}; }}

Translate {4, -1, 0} { Duplicata{ Point{510}; }}

Translate {-12, 2.5, 0} { Duplicata{ Point{509}; }}

Line(691) = {489,506};
Line(692) = {506,507};
Line(693) = {507,508};
Line(694) = {508,509};
Line(695) = {509,512};
Line(696) = {512,511};
Line(697) = {511,510};
Line(698) = {510,490};

Line Loop(48) = {691,692,693,694,695,696,697,698,-666};
Plane Surface(48) = {48};

Extrude {0, 0, 25} { Surface{48}; }

Delete {Volume{1};}

Delete {Surface{48};}

Delete {Surface{740};}

Delete {Surface{744};}

// Moss //

Translate {6, -1, 0} { Duplicata{ Point{506}; }}

Delete {Line{739};}

Line(740) = {506,543};
Line(741) = {543,508};

Line Loop(49) = {740,741,-693,-692};
Plane Surface(49) = {49};

Extrude {0, 0, 15} { Surface{49}; }

Delete {Volume{1};}

Delete {Surface{49};}

Delete {Surface{716};}

Delete {Surface{720};}

Delete {Surface{762};}

Delete {Surface{766};}


// Offices To Let //

Translate {11, -2, 0} { Duplicata{ Point{543}; }}

Translate {8, 29, 0} { Duplicata{ Point{554}; }}

Line(754) = {543,554};
Line(755) = {554,555};
Line(756) = {555,508};

Line Loop(50) = {754,755,756,-741};
Plane Surface(50) = {50};

Extrude {0, 0, 17.5} { Surface{50}; }

Delete {Volume{1};}

Delete {Surface{50};}

Delete {Surface{758};}

Delete {Surface{788};}

// Sack Ville House //

Translate {1, 1, 0} { Duplicata{ Point{554}; }}

Translate {30, -5.5, 0} { Duplicata{ Point{566}; }}

Translate {1.5, 5, 0} { Duplicata{ Point{567}; }}

Translate {-10, 3, 0} { Duplicata{ Point{568}; }}

Translate {5, 15, 0} { Duplicata{ Point{569}; }}

Translate {-15, 4, 0} { Duplicata{ Point{570}; }}

Translate {-5, -15, 0} { Duplicata{ Point{571}; }}

Translate {-4.5, 1, 0} { Duplicata{ Point{572}; }}

Line(780) = {566,567};
Line(781) = {567,568};
Line(782) = {568,569};
Line(788) = {569,570};
Line(784) = {570,571};
Line(785) = {571,572};
Line(786) = {572,573};
Line(787) = {573,566};

Line Loop(52) = {780,781,782,788,784,785,786,787};
Plane Surface(52) = {52};

Extrude {0, 0, 20} { Surface{52}; }

Delete {Volume{1};}

Delete {Surface{52};}

// Block Right Hand Side Of The Walkie-Talkie Building //

Translate {3, -0.5, 0} { Duplicata{ Point{3}; }}

Translate {3, -0.5, 0} { Duplicata{ Point{2}; }}

Translate {-3, -65, 0} { Duplicata{ Point{600}; }}

Translate {0, -3, 0} { Duplicata{ Point{602}; }}

Translate {30, -6, 0} { Duplicata{ Point{600}; }}

Translate {30, -6, 0} { Duplicata{ Point{602}; }}

Translate {30, -6, 0} { Duplicata{ Point{603}; }}
			
Translate {30, -6, 0} { Duplicata{ Point{601}; }}

Line(826) = {604,600};
Line(827) = {600,602};
Line(828) = {602,605};
Line(829) = {606,603};
Line(830) = {603,601};
Line(831) = {601,607};

// Molton Brown //

Translate {1.5, -2, 0} { Duplicata{ Point{600}; }}

Translate {45, -9, 0} { Duplicata{ Point{608}; }}

Translate {1.5, 1.5, 0} { Duplicata{ Point{602}; }}

Translate {45, -9, 0} { Duplicata{ Point{610}; }}

Line(832) = {610,611};
Line(833) = {611,609};
Line(834) = {609,608};
Line(835) = {608,610};

Line Loop(53) = {832,833,834,835};
Plane Surface(53) = {53};

Extrude {0, 0, 25} { Surface{53}; }

Delete {Volume{1};}

Delete {Surface{53};}

Delete {Surface{857};}

Translate {7, -7, 0} { Duplicata{ Point{621}; }}

Translate {-7, -4.5, 0} { Duplicata{ Point{617}; }}

Translate {-7, 7, 0} { Duplicata{ Point{613}; }}

Translate {7, 4.5, 0} { Duplicata{ Point{612}; }}

Line(852) = {625,624};
Line(853) = {624,623};
Line(854) = {623,622};
Line(855) = {622,625};

Line Loop(54) = {852,853,854,855};
Plane Surface(54) = {54};

Extrude {0, 0, 5} { Surface{54}; }

Delete {Volume{1};}

Delete {Surface{54};}

Delete {Surface{878};}

Translate {7, -7, 0} { Duplicata{ Point{635}; }}

Translate {-7, -4.5, 0} { Duplicata{ Point{631}; }}

Translate {-7, 7, 0} { Duplicata{ Point{627}; }}

Translate {7, 4.5, 0} { Duplicata{ Point{626}; }}

Line(874) = {639,638};
Line(875) = {638,637};
Line(876) = {637,636};
Line(877) = {636,639};

Line Loop(56) = {874,875,876,877};
Plane Surface(56) = {56};

Extrude {0, 0, 10} { Surface{56}; }

Delete {Volume{1};}

Delete {Surface{56};}

// St Margaret Pattens Church Of England //

Translate {1, -1.5, 0} { Duplicata{ Point{603}; }}

Translate {10, -2, 0} { Duplicata{ Point{650}; }}

Translate {-0.6, -10, 0} { Duplicata{ Point{651}; }}

Translate {-10, 1.5, 0} { Duplicata{ Point{652}; }}

Line(896) = {653,652};
Line(897) = {652,651};
Line(898) = {651,650};
Line(899) = {650,653};

Line Loop(57) = {896,897,898,899};
Plane Surface(57) = {57};

Extrude {0, 0, 20} { Surface{57}; }

Delete {Volume{1};}

Delete {Surface{57};}

Delete {Surface{921};}

Translate {2.5,-1, 0} { Duplicata{ Point{663}; }}

Translate {5, -1, 0} { Duplicata{ Point{664}; }}

Translate {2.5, 0.1, 0} { Duplicata{ Point{654}; }}

Translate {5, -0.8, 0} { Duplicata{ Point{666}; }}

Translate {-0.7, -2.5, 0} { Duplicata{ Point{659}; }}

Translate {-0.2, -5, 0} { Duplicata{ Point{668}; }}

Translate {0.4, -2.5, 0} { Duplicata{ Point{663}; }}

Translate {-0.3, -5, 0} { Duplicata{ Point{670}; }}

Line(918) = {666,667};
Line(919) = {667,669};
Line(920) = {669,668};
Line(921) = {668,665};
Line(922) = {665,664};
Line(923) = {664,670};
Line(924) = {670,671};
Line(925) = {671,666};

Line Loop(58) = {918,919,920,921,922,923,924,925};

Translate {4.7, -6, 0} { Duplicata{ Point{663}; }}

Translate {0, 0, 15} { Duplicata{ Point{672}; }}

Delete {Point{672};}

Line(926) = {666,673};
Line(927) = {667,673};
Line(928) = {669,673};
Line(929) = {668,673};
Line(930) = {665,673};
Line(931) = {664,673};
Line(932) = {670,673};
Line(933) = {671,673};

Line Loop(61) = {918,927,-926};
Plane Surface(61) = {61};

Line Loop(62) = {919,928,-927};
Plane Surface(62) = {62};

Line Loop(63) = {920,929,-928};
Plane Surface(63) = {63};

Line Loop(64) = {921,930,-929};
Plane Surface(64) = {64};

Line Loop(65) = {922,931,-930};
Plane Surface(65) = {65};

Line Loop(66) = {923,932,-931};
Plane Surface(66) = {66};

Line Loop(67) = {924,933,-932};
Plane Surface(67) = {67};

Line Loop(68) = {925,926,-933};
Plane Surface(68) = {68};

Translate {27.5, -5.5, 0} { Duplicata{ Point{651}; }}

Translate {-1, -10, 0} { Duplicata{ Point{674}; }}

Line(934) = {652,675};
Line(935) = {675,674};
Line(936) = {674,651};

Line Loop(69) = {934,935,936,-897};
Plane Surface(69) = {69};

Extrude {0, 0, 10} { Surface{69}; }

Delete {Volume{1};}

Delete {Surface{69};}

Delete {Surface{912};}

Delete {Surface{957};}

Delete {Surface{908};}

Translate {-1, -15, 0} { Duplicata{ Point{653}; }}

Translate {37.5, -8, 0} { Duplicata{ Point{686}; }}

Line(949) = {653,686};
Line(950) = {686,687};
Line(951) = {687,675};

Line Loop(70) = {949,950,951,-934,-896};
Plane Surface(70) = {70};

Extrude {0, 0, 10} { Surface{70}; }

Delete {Volume{1};}

Delete {Surface{70};}

Delete {Surface{945};}

Delete {Surface{984};}

Delete {Surface{985};}

Translate {-0.5, -7.5, 3} { Duplicata{ Point{688}; }}

Translate {-0.5, -7.5, 3} { Duplicata{ Point{677}; }}

Line(972) = {688,694};
Line(973) = {694,689};

Line Loop(71) = {-960,972,973};
Plane Surface(71) = {71};

Line(974) = {694,695};
Line(975) = {677,695};
Line(976) = {695,693};

Line Loop(72) = {974,-975,-938,964,972};
Plane Surface(72) = {72};

Line Loop(73) = {961,-976,-974,973};
Ruled Surface(73) = {73};

Line Loop(74) = {962,975,976};
Plane Surface(74) = {74};

// Block Diagonal South East Of The Walkie-Talkie Building //

Translate {3, -0.5, 0} { Duplicata{ Line{326}; }}

Translate {30, -5.5, 0} { Duplicata{ Point{697}; }}

Line(977) = {697,698};

Translate {1.5, -2, 0} { Duplicata{ Point{697}; }}

Translate {30, -5.5, 0} { Duplicata{ Point{699}; }}

Translate {-1.5, -25, 0} { Duplicata{ Point{699}; }}

Translate {6, -1.2, 0} { Duplicata{ Point{701}; }}

Translate {0.5, 5, 0} { Duplicata{ Point{702}; }}

Translate {7, -1.2, 0} { Duplicata{ Point{703}; }}

Translate {0.5, 5, 0} { Duplicata{ Point{704}; }}

Translate {16, -3, 0} { Duplicata{ Point{705}; }}

Translate {5, -0.9, 0} { Duplicata{ Point{699}; }}

Translate {-0.9, -5, 0} { Duplicata{ Point{707}; }}

Translate {-5, 0.9, 0} { Duplicata{ Point{708}; }}

Translate {-5, 0.9, 0} { Duplicata{ Point{700}; }}

Translate {-0.4, -5, 0} { Duplicata{ Point{700}; }}

Translate {-5, 0.844915, 0} { Duplicata{ Point{711}; }}

Delete {Point{699, 700};}

Line(987) = {701,702};
Line(988) = {702,703};
Line(989) = {703,704};
Line(990) = {704,705};
Line(991) = {705,706};
Line(992) = {706,711};
Circle(993) = {711,712,710};
Line(994) = {710,707};
Circle(995) = {707,708,709};
Line(996) = {709,701};

Line Loop(75) = {987,988,989,990,991,992,993,994,995,996};
Plane Surface(75) = {75};

Extrude {0, 0, 25} { Surface{75}; }

Delete {Volume{1};}

Delete {Surface{75};}


////////////////////////////////////////////////////////////////////////////////// Creating New Surfaces //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Line(1043) = {15, 54};
Line(1044) = {54, 111};
Line(1045) = {111, 19};
Line(1046) = {19, 15};

Line Loop(76)= {1043,1044,1045,1046};
Plane Surface (76) = {76}; 

Line(1047) = {19, 111};
Line(1048) = {111, 107};
Line(1049) = {107, 23};
Line(1050) = {23, 19};

Line Loop(77)= {1047,1048,1049,1050};
Plane Surface (77) = {77};

Line(1051) = {23, 107};
Line(1052) = {107, 103};
Line(1053) = {103, 27};
Line(1054) = {27, 23};

Line Loop(78)= {1051,1052,1053,1054};
Plane Surface (78) = {78};

Line(1055) = {27, 103};
Line(1056) = {103, 99};
Line(1057) = {99 , 31};
Line(1058) = {31, 27};

Line Loop(79)= {1055,1056,1057,1058};
Plane Surface (79) = {79};

Line(1059) = {31, 99};
Line(1060) = {99, 95};
Line(1061) = {95 , 35};
Line(1062) = {35, 31};

Line Loop(80)= {1059,1060,1061,1062};
Plane Surface (80) = {80};

Line(1063) = {114, 155};
Line(1064) = {155, 59};
Line(1065) = {59 , 55};
Line(1066) = {55, 114};

Line Loop(81)= {1063,1064,1065,1066};
Plane Surface (81) = {81};

Line(1067) = {155, 151};
Line(1068) = {151, 63};
Line(1069) = {63 , 59};
Line(1070) = {59, 155};

Line Loop(82)= {1067,1068,1069,1070};
Plane Surface (82) = {82};

Line(1071) = {151, 147};
Line(1072) = {147, 67};
Line(1073) = {67 , 63};
Line(1074) = {63, 151};

Line Loop(83)= {1071,1072,1073,1074};
Plane Surface (83) = {83};

Line(1075) = {147, 143};
Line(1076) = {143, 71};
Line(1077) = {71 , 67};
Line(1078) = {67, 147};

Line Loop(84)= {1075,1076,1077,1078};
Plane Surface (84) = {84};

Line(1079) = {143, 139};
Line(1080) = {139, 75};
Line(1081) = {75 , 71};
Line(1082) = {71, 143};

Line Loop(85)= {1079,1080,1081,1082};
Plane Surface (85) = {85};

Line(1083) = {139, 135};
Line(1084) = {135, 79};
Line(1085) = {79 , 75};
Line(1086) = {75, 139};

Line Loop(87)= {1083,1084,1085,1086};
Plane Surface (87) = {87};

Line(1087) = {135, 131};
Line(1088) = {131, 83};
Line(1089) = {83 , 79};
Line(1090) = {79, 135};

Line Loop(88)= {1087,1088,1089,1090};
Plane Surface (88) = {88};

Line(1091) = {131, 127};
Line(1092) = {127, 87};
Line(1093) = {87 , 83};
Line(1094) = {83, 131};

Line Loop(89)= {1091,1092,1093,1094};
Plane Surface (89) = {89};

Line(1095) = {127, 123};
Line(1096) = {123, 91};
Line(1097) = {91 , 87};
Line(1098) = {87, 127};

Line Loop(90)= {1095,1096,1097,1098};
Plane Surface (90) = {90};

Line(1099) = {186, 195};
Line(1100) = {195, 212};
Line(1101) = {212 , 190};
Line(1102) = {190, 186};

Line Loop(91)= {1099,1100,1101,1102};
Plane Surface (91) = {91};

Line(1103) = {272, 283};
Line(1104) = {283, 292};
Line(1105) = {292 , 276};
Line(1106) = {276, 272};

Line Loop(92)= {1103,1104,1105,1106};
Plane Surface (92) = {92};

Line(1107) = {351, 339};
Line(1108) = {339, 335};
Line(1109) = {335 , 342};
Line(1110) = {342,351};

Line Loop(93)= {1107,1108,1109,1110};
Plane Surface (93) = {93};

Line(1111) = {368, 354};
Line(1112) = {354, 361};
Line(1113) = {361 , 370};
Line(1114) = {370,374};
Line(1115) = {374,379};
Line(1116) = {379,368};

Line Loop(94)= {1111,1112,1113,1114,1115,1116};
Plane Surface (94) = {94};

Line Loop(95) = {545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556};
Plane Surface(95) = {44, 95};

Delete {Surface{605};}

Line(1117) = {493, 513};
Line(1118) = {513, 542};
Line(1119) = {542 , 538};
Line(1120) = {538,510};
Line(1121) = {510,490};
Line(1122) = {490,497};
Line(1123) = {497,493};

Line Loop(96)= {1117,1118,1119,1120,1121,1122,1123};
Plane Surface (96) = {96};

Line(1124) = {553,518};
Line(1125) = {518,514};
Line(1126) = {514,544};
Line(1127) = {544,553};

Line Loop(97)= {1124,1125,1126,1127};
Plane Surface (97) = {97};

Line(1128) = {549,522};
Line(1129) = {522,518};
Line(1130) = {518,553};
Line(1131) = {553,549};

Line Loop(98)= {1128,1129,1130,1131};
Plane Surface (98) = {98};

Line(1132) = {545,556};
Line(1133) = {556,565};
Line(1134) = {565,549};
Line(1135) = {549,545};

Line Loop(99)= {1132,1133,1134,1135};
Plane Surface (99) = {99};

Line Loop(100) = {837, 838, 839, 840};
Plane Surface(100) = {54, 100};

Line Loop(101) = {858, 859, 860, 861};
Plane Surface(101) = {56, 101};

Line Loop(102) = {901, 902, 903, 904};
Plane Surface(102) = {58, 102};

Line(1136) = {676,685};
Line(1137) = {685,659};
Line(1138) = {659,655};
Line(1139) = {655,676};

Line Loop(103)= {1136,1137,1138,1139};
Plane Surface (103) = {103};

Line(1140) = {676,655};
Line(1141) = {655,654};
Line(1142) = {654,688};
Line(1143) = {688,676};

Line Loop(104)= {1140,1141,1142,1143};
Plane Surface (104) = {104};

//Computational domain - ground level // 

Point(749) = {-300.0, -300.0, 0.0, 1.0};
Point(750) = {300.0, -300.0, 0.0, 1.0};
Point(751) = {300.0, 300.0, 0.0, 1.0};
Point(752) = {-300.0, 300.0, 0.0, 1.0};

// Computational domain - at Height H= 400.0 // 

Point(753) = {-300.0, -300.0, 400.0, 1.0};
Point(754) = {300.0, -300.0, 400.0, 1.0};
Point(755) = {300.0, 300.0, 400.0, 1.0};
Point(756) = {-300.0, 300.0, 400.0, 1.0};

//Defining Lines between the points // 

// Horizontal lines 

Line(1144) = {749, 750};
Line(1145) = {750, 751};
Line(1146) = {751, 752};
Line(1147) = {752, 749};
Line(1148) = {753, 754};
Line(1149) = {754, 755};
Line(1150) = {755, 756};
Line(1151) = {756, 753};

//Vertical Lines //

Line(1152)  = {749, 753};
Line(1153) = {750, 754};
Line(1154) = {751, 755};
Line(1155) = {752, 756};


// Define Surfaces 

Line Loop(105) = {1151, -1152, -1147, 1155};
Plane Surface(105) = {105}; //inlet //

Line Loop(106) = {1150, -1155, -1146, 1154};
Plane Surface(106) = {106}; //right side //

Line Loop(107) = {1149, -1154, -1145, 1153};
Plane Surface(107) = {107}; //outlet //

Line Loop(108) = {1148, -1153, -1144, 1152};
Plane Surface(108) = {108}; //left side //

Line Loop(109) = {1151, 1148, 1149, 1150};
Plane Surface(109) = {109}; // TOP OF COMP. DOMAIN // 

//Line Loop(110) = {1144, 1145, 1146, 1147};//
//Plane Surface(110) = {110}; //BOTTOM OF COMP. DOMAIN //

Physical Surface(1) = {105};  //inlet//
Physical Surface(2) = {106, 107, 108}; //sides + outlet //
Physical Surface(3) = {109}; //top //

// LINE LOOP FOR  BOTTOM OF WHOLE DOMAIN//

Line Loop(110) = {1144, 1145, 1146, 1147};   //The Domain //

//COLLECTING ALL THE LOOPS FORMING THE BOTTOMS OF EACH BUILDING // 
// We need these because we want to form the SUrface ARea ENCLOSED by these loops & the WHole Domain & then Assign the 
//Physical Surface value corresponding to a Solid // 

//Line Loop(2) = {5,6,7,8,9,10,11,12,13}; // Caffe Nero //
//Line Loop(3) = {55,56,57,58,59,60,61,62,63,64,65,-10,-9,-8,-7,-6}; // 20 Fenchurch Street Office //
//Line Loop(4) = {142,143,144,-64,-63,-62,-61,-60,-59,-58,-57,-56}; // 20 Fenchurch Street 2nd Office //
//Line Loop(5) = {168,169,170,-143}; // Contractors Offices //
//Line Loop(6) = {222,223,224,225}; // Box Behind Contractors Offices //
//Line Loop(7) = {248,249,250,251,-169}; // 20 Fenchurch Street Parnetship //
//Line Loop(8) = {271,272,273,274,275,-250}; // The Insurance Insider //
//Line Loop(9) = {307,308,309,310}; // Walkie-Talkie Building //
//Line Loop(14) = {329,330,331,332}; // Howden //
//Line Loop(15) = {349,350,351,352}; //Peek house //
//Line Loop(16) = {371,372,373,374}; //Pre-Style building //
//Line Loop(17) = {395,396,397,398};  //Post Office //
//Line Loop(18) = {418,419,420,421}; // Pret A Manger //
//Line Loop(24) = {446,447,448,-420}; // Philpot Tandoori//
//Line Loop(25) = {461,462,463,-447}; // Spice Trader //
//Line Loop(26) = {483,484,485,487}; // Associative //
//Line Loop(28) = {509,510,511,512,-484}; // 5 5 //
//Line Loop(42) = {532,533,534,535,536,537,538,539,540,541,542,543}; // Vodafone //
//Line Loop(45) = {625,626,627,628,629,630}; // Clinton Cards //
//Line Loop(46) = {665,666,667,668,669}; // TM Lewin //
//Line Loop(48) = {691,692,693,694,695,696,697,698,-666}; // The Carephone Warehouse //
//Line Loop(49) = {740,741,-693,-692}; // Moss //
//Line Loop(50) = {754,755,756,-741}; // Offices To Let //
//Line Loop(52) = {780,781,782,788,784,785,786,787}; // Sack Ville House //
//Line Loop(53) = {832,833,834,835}; // Molton Brown //
//Line Loop(57) = {896,897,898,899}; Line Loop(69) = {934,935,936,-897}; Line Loop(70) = {949,950,951,-934,-896}; // St Margaret Pattens Church Of England //
//Line Loop(75) = {987,988,989,990,991,992,993,994,995,996}; //// Block Diagonal South East Of The Walkie-Talkie Building //

Plane Surface (111) = {110,2,3,4,5,6,7,8,9,14,15,16,17,18,24,25,26,28,42,45,46,48,49,50,52,53,57,75};  //BOTTOM OF DOAMIN THAT IS SOLID//

Physical Surface(4)={111,55, 59, 27, 51, 60, 80, 79, 78, 77, 76, 86, 81, 82, 83, 84, 85, 87, 88, 89, 90, 126, 147, 164, 209, 172, 218, 231, 226, 252, 240, 244, 248, 253, 263, 280, 275, 267, 291, 91, 307, 303, 299, 312, 385, 389, 398, 393, 92, 363, 376, 371, 375, 341, 345, 354, 349, 353, 407, 411, 415, 419, 420, 442, 430, 434, 19, 22, 21, 20, 23, 465, 93, 470, 457, 487, 492, 479, 483, 513, 509, 514, 501, 94, 33, 34, 41, 38, 37, 36, 32, 29, 592, 596, 600, 604, 560, 568, 576, 580, 584, 588, 95, 626, 614, 618, 622, 627, 653, 657, 661, 641, 645, 649, 662, 10, 11, 12, 316, 13, 679, 691, 687, 696, 96, 736, 712, 732, 728, 724, 98, 745, 97, 767, 99, 789, 754, 776, 784, 780, 802, 806, 810, 814, 818, 822, 826, 830, 831, 848, 844, 856, 852, 100, 869, 865, 877, 873, 101, 890, 886, 898, 894, 899, 68, 61, 62, 63, 64, 65, 66, 67, 102, 920, 104, 103, 916, 958, 953, 949, 968, 71, 972, 976, 74, 73, 72, 1011, 1015, 1019, 1023, 1027, 1031, 1035, 1039, 1043, 1047, 1048};  //all solid surfaces!!// 



//CREATING A SURFACE LOOP AS TO DEFINE THE VOLUME TO BE MESHED //


Surface Loop (1) = {105,106,107,108,109,111,55, 59, 27, 51, 60, 80, 79, 78, 77, 76, 86, 81, 82, 83, 84, 85, 87, 88, 89, 90, 126, 147, 164, 209, 172, 218, 231, 226, 252, 240, 244, 248, 253, 263, 280, 275, 267, 291, 91, 307, 303, 299, 312, 385, 389, 398, 393, 92, 363, 376, 371, 375, 341, 345, 354, 349, 353, 407, 411, 415, 419, 420, 442, 430, 434, 19, 22, 21, 20, 23, 465, 93, 470, 457, 487, 492, 479, 483, 513, 509, 514, 501, 94, 33, 34, 41, 38, 37, 36, 32, 29, 592, 596, 600, 604, 560, 568, 576, 580, 584, 588, 95, 626, 614, 618, 622, 627, 653, 657, 661, 641, 645, 649, 662, 10, 11, 12, 316, 13, 679, 691, 687, 696, 96, 736, 712, 732, 728, 724, 98, 745, 97, 767, 99, 789, 754, 776, 784, 780, 802, 806, 810, 814, 818, 822, 826, 830, 831, 848, 844, 856, 852, 100, 869, 865, 877, 873, 101, 890, 886, 898, 894, 899, 68, 61, 62, 63, 64, 65, 66, 67, 102, 920, 104, 103, 916, 958, 953, 949, 968, 71, 972, 976, 74, 73, 72, 1011, 1015, 1019, 1023, 1027, 1031, 1035, 1039, 1043, 1047, 1048};  //all solid surfaces!!// 

Volume(2) = {1};
Physical Volume(1) = {2};
