# forms_of

Python reference for `nagasim.appearance.forms_of`. Provisional: it may change between minor versions, see [Appearance](../../appearance.md).

`nagasim.appearance.forms_of`

```python
forms_of(document)
```

The form and drawn size of every entity type in a model.

One `ItemForm` per Entities name and BATCH `carrier_type`, upper-cased. A declared `size`
wins; else the form's own size (a EUR pallet, a person, a vehicle, an ISO container by its
20, 40 or 45 feet); a type with no row is the `default_carton_size` carton. A `prop` (such
as a stretcher) gets its `PROP_M` size and name: which mesh draws it, and what to draw
without one, is the renderer's choice. A disc has no size.

Parameters
----------
document : ModelDocument
    The model, `ModelDocument.load(path)`.

Returns
-------
dict of str to ItemForm
    `{TYPE: ItemForm(form, size, prop)}`, sizes in metres (length, width, height).

See Also
--------
nagasim.appearance.default_carton_size : The size of an unsized carton.
nagasim.appearance.form_of : The form rules for one row.

Examples
--------
>>> from nagasim.appearance import forms_of
>>> from nagasim.appearance import ModelDocument
>>> forms_of(ModelDocument({"entities": [{"name": "Patient"}]}))["PATIENT"]
ItemForm(form='person', size=(0.3, 0.5, 1.7), prop=None)
