Class Index | File Index

Classes


Class URBGEN.CityElement.Block


Extends URBGEN.CityElement.

Defined in: UrbGen.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
URBGEN.CityElement.Block(poly, streetWidth)
Represents a block.
Field Summary
Field Attributes Field Name and Description
 
This block's inner polygon, exluding space for streets and sidewalks.
 
This block's plots.
 
This block's street width.
Fields borrowed from class URBGEN.CityElement:
area, height, poly
Method Summary
Method Attributes Method Name and Description
 
Sets this block's inner polygon.
Class Detail
URBGEN.CityElement.Block(poly, streetWidth)
Represents a block.
Parameters:
{URBGEN.Poly} poly
- This block's outer polygon, including any space for streets and sidewalks.
{number} streetWidth
- The width of the streets surrounding this block.
Field Detail
{URBGEN.Poly} innerPoly
This block's inner polygon, exluding space for streets and sidewalks.

{URBGEN.CityElement.Plot[]} plots
This block's plots.

{number} streetWidth
This block's street width.
Method Detail
setInnerPoly()
Sets this block's inner polygon. This is the polygon that this block's plots lie within, excluding any space for streets and sidewalks.

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