Class Index | File Index

Classes


Class URBGEN.CityElement.City


Extends URBGEN.CityElement.

Defined in: UrbGen.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Represents a city.
Field Summary
Field Attributes Field Name and Description
 
This city's blocks.
 
This city's geometry.
 
An array of points, each with up to four neighbors, representing this city's road network.
Fields borrowed from class URBGEN.CityElement:
area, height, poly
Method Summary
Method Attributes Method Name and Description
 
Returns an array of the plots of this city.
Class Detail
URBGEN.CityElement.City(poly)
Represents a city.
Parameters:
{URBGEN.Poly} poly
- The footprint of this city.
Field Detail
{URBGEN.CityElement.Block[]} blocks
This city's blocks.

{URBGEN.Geometry} geometry
This city's geometry.

{URBGEN.Point[]} roads
An array of points, each with up to four neighbors, representing this city's road network.
Method Detail
getPlots()
Returns an array of the plots of this city.
Returns:
URBGEN.CityElement.Plot[] The plots of this city.

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Sep 04 2014 11:25:29 GMT+0100 (BST)