Skip to content

feat(domain): onion-shaped hero domain for layers visualization #46

@domattioli

Description

@domattioli

Motivation

Need a domain shaped like a real onion — bulbous body, small stem nub at top, flat root-plate dimple at bottom — as a hero image for the QuADMESH layers concept. An onion cross-section is literally a nested-ring structure; the concentric CHILmesh skeleton layers map 1-to-1 onto the biological layers of the onion. Better than any abstract polygon for communicating what the algorithm does.

Geometry spec

         ___
        /   \      ← stem nub: small convex protrusion, ~5–8% of total height
       / ___  \
      |/     \|
     /  BODY   \   ← main body: oblate ellipse, width ≈ 1.4× height
    |           |
     \         /
      \_______/    ← root plate: slight inward concavity / flat dimple
         |||       ← root hairs (optional, decorative only)

Key geometric features:

  • Body: oblate ellipse (a ≈ 1.0, b ≈ 0.70) — onions are wider than tall
  • Stem nub: small convex bump at top (blend radius ~0.05), roughly centred
  • Root plate: shallow concave indent at bottom (depth ~0.03–0.05), width ~30% of body diameter
  • Silhouette should be recognisable at thumbnail scale (~300×300 px)

Intended use

  1. Export .14 (ADCIRC fort.14 format) via ADMESH-Domains (see cross-post issue there).
  2. Run QuADMESH faithful path → 30+ skeleton layers → screenshot the layer sweep.
  3. Use rendered animation / still as README / docs hero image illustrating the layer-by-layer quad sweep.

Acceptance criteria

  • Polygon is watertight, no self-intersections
  • Triangulated mesh in .14 format, ~2 000–5 000 elements (fine enough for smooth layers, fast enough for demo)
  • Recognisable onion silhouette with stem nub + root plate features
  • ≥ 20 concentric CHILmesh skeleton layers (validates nested structure)
  • Zero interior tris after tri2quad faithful pass
  • Screenshot / render committed alongside mesh file

Cross-post

ADMESH-Domains issue for the .14 generation: domattioli/Valence#93

References

  • README layers diagram (current placeholder uses rectangular grid)
  • tests/fixtures/meshes/ — existing .14 fixtures for format reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions