
Generate a simple furniture CSV file for the building model
generate_furniture_csv.Rdgenerate_furniture_csv() creates a CSV file with furniture definitions for
the generated building model. It assigns room types (kitchen, bathroom, bedrooms)
and populates each room with appropriate furniture items.
Arguments
- model
list, a building model generated by
generate_model()- output_path
character, path where to save the furniture.csv file
Details
The function assigns room types as follows:
First room: kitchen
Second room: bathroom
Remaining rooms: bedrooms
Furniture is assigned based on room type:
Kitchen: oven, fridge, dishwasher, washing machine, tableware, shelves, table, chairs
Bathroom: minimal furniture (shelves for storage)
Bedrooms: beds, wardrobes, shelves, chairs