cartagen.BuildingSquarenessConstraint

cartagen.BuildingSquarenessConstraint#

class BuildingSquarenessConstraint(agent, importance, angle_tolerance=15.0)#

Agent constraint to handle building squareness.

This constraint asks for the building squaring if its angles are not exactly square.

Parameters:
  • agent (BuildingAgent) – The building agent object to apply the constraint to.

  • importance (int) – The Importance of the constraint.

  • angle_tolerance (float, optional) – The angle tolerance in degree to consider an angle right or flat.

See also

run_agents

Execute the AGENT process.

BuildingGranularityConstraint

Agent constraint to handle building granularity.

BuildingSizeConstraint

Agent constraint to handle building size.