Skip to contents

plot_model_coordinate() visualizes a generated building model by plotting the exterior building outline, individual room polygons, door, and window.

Usage

plot_model_coordinate(model)

Arguments

model

list, a building model generated by generate_model()

Value

Invisible NULL. The function is called for its side effect of creating a plot.

Details

The plot displays:

  • Exterior building shell in gray

  • Individual rooms as white polygons with room names labeled at their centers

  • Doors as red circles (large dots)

  • Windows as blue triangles

The plot uses a coordinate system with x (longitude) and y (latitude) in meters. The view is automatically scaled to fit the entire building.

Examples


# Generate and plot a 4-room building
model = generate_model(n_room = 4, surface = 120)
if (FALSE) { # \dontrun{
plot_model_coordinate(model)
} # }