# Anatomy models — license

Two bodies: the male one (this folder) from Z-Anatomy, and the female one (`female/`) from
the Human Reference Atlas.

## Male body

`skin.glb`, `muscle.glb`, `organ.glb` and `bone.glb` are adapted from **Z-Anatomy** and are
licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/)
(CC BY-SA 4.0). You may share and adapt them, including commercially, as long as you give
credit and share your adaptations under the same license.

### Attribution

- **"BodyParts3D - The Database Center for Life Science - CC-BY-SA 2.1 Japan"** —
  the original models: https://dbarchive.biosciencedbc.jp/en/bodyparts3d/download.html
- **"Z-Anatomy - The libre 3D atlas of anatomy - CC-BY-SA 4.0"** —
  https://github.com/Z-Anatomy/Models-of-human-anatomy
- Z-Anatomy also used as reference or adapted: "Brainder" and "White matter" from the
  University of Washington.

### Changes made for Meddiary

Structures were selected per layer; hair, membranes, lymph nodes, fascia and deep muscle
sheets were left out, as were the two models Z-Anatomy lists under NonCommercial terms (the
kidney and the inner ear). The structures were grouped into Meddiary's body regions (one
mesh per region): skin areas and organs whole; muscles and bones by the skin area they lie
under, cut where they cross from one to the next. They were simplified to fit mobile
devices and compressed with Draco. The 2D body map's shapes (`src/components/body-map/figure.generated.ts` in the
Meddiary repository) are traced from `skin.glb` seen from the front and the back, and are
under the same license. So is the app icon's figure (`scripts/icon-silhouette.generated.ts`
and the icons drawn from it: `src/app/icon.svg`, `favicon.ico`, `apple-icon.png`,
`public/icons/`, and the email header's mark), an outline traced from `skin.glb` from the
front. The build is reproducible with `scripts/anatomy/` in the Meddiary repository.

## Female body

`female/skin.glb`, `female/muscle.glb`, `female/organ.glb` and `female/bone.glb` combine
the **Human Reference Atlas**'s female body (CC BY 4.0) with parts adapted from Z-Anatomy
(the male body above, CC BY-SA 4.0), so each is shared under the
[Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/)
(CC BY-SA 4.0), as is the female 2D body map traced from her skin
(`src/components/body-map/figure-female.generated.ts` in the Meddiary repository). The
Atlas's own structures in them remain available from the Atlas under CC BY 4.0.

What comes from where:

- From the Atlas: her skin, her organs, and her spine (C1–L6, sacrum, coccyx), pelvis,
  femurs, tibias, fibulas, kneecaps and menisci.
- From Z-Anatomy, fitted to her body: her skin's area borders, all her muscles, the rest of
  her skeleton (skull, ribs, breastbone, shoulders, arms, hands and feet, the
  intervertebral discs and the joints' cartilage), and the organs of her face, mouth and nose (the parotid glands, the tongue,
  palate, gums and sublingual glands, the lining of the nose).

### Attribution

- **"3D Reference Organ Set for United, Female, v1.6"** by Kristen Browne and Heidi
  Schlehlein, Human Reference Atlas, HuBMAP Consortium — CC BY 4.0:
  https://lod.humanatlas.io/ref-organ/united-female/v1.6 (built on the Visible Human
  Project's female dataset from the U.S. National Library of Medicine; the brain is the
  Allen Institute's model included in the Atlas).
- Z-Anatomy and BodyParts3D, as credited for the male body above.

### Changes made for Meddiary

Moved to the male layers' frame (feet on the ground, midline at zero). The skin was given
the male skin's body areas: the two bodies were lined up (height, per-slice width and depth,
the arms turned to the male angle), each triangle took the area of the nearest male one,
and the borders were smoothed; skin over the breasts became a "breasts" area. Organs were
chosen by name (outer surfaces only: no vessels, nerves, lymph nodes, ligaments, or the
pregnancy placenta the Atlas also models), placed in Meddiary's body regions, and simplified.
Z-Anatomy's muscles, bones and face organs were moved into her body: by the same line-up for
the trunk, legs and head, by a fit of each part of the arm and each foot, and, for bones,
onto her own spine, pelvis and legs where she has them; anything left outside her skin was
pulled just inside it. Muscles and bones were then split into body areas by following her
skin. All files are Draco-compressed. Reproducible with `scripts/anatomy/build-female.py`
and `scripts/anatomy/derive-female.py`.
