Skip to content

Shadow Processing Step

Goal

Calculates the percentage of shadow on every building surface, cast by neighbouring buildings and vegetation. Sun positions above the horizon are considered on the 21st of June, August, September, October and December. Results are cached and reused for the same model.

Technical information

Class ShadowProcessingStep
Superclass WorkflowStepWithSimStadtGraphics
Author
Maintainer
Source location simstadt-workflows-shadowing/src/main/java/de/hftstuttgart/simstadtworkflowsteps/shadow/ShadowProcessingStep.java
Package de.hftstuttgart.simstadtworkflowsteps.shadow
Project simstadt-workflows-shadowing

Dependencies

Parameters

Maximum triangle area in [m²] (maxTriangleArea)

Surfaces are split into triangles of at most this area. Smaller triangles are more precise but slower.

  • Type : float
  • Default : 2.5
  • Getter : getMaxTriangleArea()
  • Setter : setMaxTriangleArea(float)

Time resolution in [min] (minuteResolution)

Time interval between two calculated sun positions.

  • Type : int
  • Default : 60
  • Getter : getMinuteResolution()
  • Setter : setMinuteResolution(int)

Keep shadow model? (storeShadowCity)

Keeps the 3D shadow model in memory, e.g. for the viewer. The cache is then ignored and shadows are always recalculated.

  • Type : boolean
  • Default : false
  • Getter : isStoreShadowCity()
  • Setter : setStoreShadowCity(boolean)

Vegetation shadowing factor (vegetationShadowingFactor)

Fraction of sunlight blocked by vegetation, between 0 (transparent) and 1 (opaque).

  • Type : float
  • Default : 0.6
  • Getter : getVegetationShadowingFactor()
  • Setter : setVegetationShadowingFactor(float)

Used in