> For the complete documentation index, see [llms.txt](https://lexset-1.gitbook.io/lexset-seahaven/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lexset-1.gitbook.io/lexset-seahaven/tutorials/starting-and-managing-your-simulation/tutorial-materials/placement-rules/floorplan.yaml.md).

# floorPlan.yaml

This configuration is what will be used to generate the various rooms within your space.

```yaml
[
  {
    "name": "livingroom",
    "diagonal": [
      [0, 0], 
      [[5, 8], [7, 8]]
    ],
    "components": [
      {"type": "window", "size": 2, "segment": 2}
    ]
  },

  {
    "name": "bedroom1",
    "diagonal": [
      [[2,4], [0, 2]], 
      [[-1, -2], [-5, -6]]
    ],
    "components": [
      {"type": "door", "size": 1.2, "segment": 2, "u": [0, 0.4], "opening": [75, 90]},
      {"type": "window", "size": 2, "segment": 0, "u": 0.5}
    ]
  },

  {
    "name": "bedroom2",
    "diagonal": [
      "[rooms['bedroom1'].corners[1][0], rooms['bedroom1'].corners[1][1]+2]", 
      [[8, 10], 1]
    ],
    "components": [
      {"type": "door", "size": 1.2, "segment": 2, "u": [0.7, 1], "opening": [75, 90]},
      {"type": "window", "size": 2, "segment": 0}
    ]
  },

]
```
