Skip to contents

generate_model() coordinates the generation of geometric boundaries, converts them into an exportable YAML structure, and populates rooms with furniture.

Usage

generate_model(
  n_room = 2,
  surface = 100,
  thickness_wall_ext = 0.25,
  thickness_wall_int = 0.1,
  ...
)

Arguments

n_room

integer, total number of rooms to generate (default: 2).

surface

numeric, total floor surface area in square meters (default: 100).

thickness_wall_ext

numeric, exterior wall thickness in meters (default: 0.25).

thickness_wall_int

numeric, interior partition wall thickness in meters (default: 0.10).

...

additional arguments forwarded to convert_model().

Value

A named list with 2 elements:

  • structure: list, structured model hierarchy ready for YAML serialization.

  • furniture: data.frame, tabular catalogue of indoor furniture and fittings.

Details

The pipeline operates in three consecutive steps:

  1. Computes structural coordinates via generate_model_coordinate().

  2. Transforms coordinates into a formatted YAML structure via convert_model(), passing down ... arguments.

  3. Computes the associated furniture layout via generate_furniture().

See also

write_model_generate() for exporting the output to disk.