Designers should be aware of building-code requirements affecting design of the roof. Model building codes and many state and local codes have provisions related to roof systems (for new construction, as well as reroofing).
Fire and wind resistance, material standards, storm water drainage, structural loading, and energy efficiency are some of the many objectives of building codes that are common to roof design. Many local jurisdictions have such requirements for residential and/or commercial construction.