
Compute surface areas for the building model
compute_surface_model.Rdcompute_surface_model() calculates the surface areas for the exterior and interior polygons of a generated building model.
Arguments
- model
list, a building model generated by
generate_model()
Details
The function returns a list with the following components:
summary: A vector with the surface area of the exterior and interior polygons.detail: A vector with the surface areas of each individual polygon.
Examples
# Generate a 4-room building
model = generate_model(n_room = 4, surface = 120)
compute_surface_model(model)
#> $summary
#> exterior.exterior interior
#> 120.0000 106.8323
#>
#> $detail
#> exterior room_1 room_2 room_3 room_4
#> 120.00000 26.70808 26.70808 26.70808 26.70808
#>