* Iterate instead of indexing in nine loops Replace index loops that look up neighbours by position with enumerate, zip(cycle().skip(1)) for wrap-around pairs and zip(skip(1)) for consecutive pairs. No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * geom: ring_edges for the edges of a closed ring Every walk over a polygon's edges, the last back to the first, spelled x.iter().zip(x.iter().cycle().skip(1)); eighteen of them now call geom::ring_edges. Three redundant take(len) calls go with them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * geom: Ring, a closed ring that knows it is closed A Ring holds items in order around a closed polygon, loop or fan; edges() walks each with the next and the last with the first, corners() each with both neighbours. Ring<Vec2> has signed_area and even-odd contains. Loop2::polyline returns a Ring, as do doc's face_loops and boundary_loops, kernel's coplanar wire samples, CapLoop's segments, tess pieces' rings, the gizmo's plane quads and the navigation cube's facets. Their walks take edges() or corners() instead of wrapping an index; sketch's text-hole test and doc's poly_area become contains and signed_area. Loop2::joints pairs each segment with the next. Replaces the ring_edges free function. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * geom: Chain, Ring and Path; bounds for a chain of points Ring becomes Chain<T, Closed> beside Path = Chain<T, Open>: edges() closes a ring and stops at a path's end, Path::close makes the ring, and bounds() (the empty box for no points) serves both. Eight hand-rolled min/max folds over a loop's polyline call bounds(); doc's flat_polyline returns a Ring. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * geom: area and inside on Ring for any planar point Ring's signed_area and contains take any Planar point (Vec2 or [f64; 2]). The cam profile in joints_cam is a Ring: its own even-odd test goes, and its edge walks, gap and area take edges(). face_params' loop area, the text path's winding, tess pieces' ring area and the copies in three tests call signed_area or contains; the formulas are the same term for term. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * doc: sheet's closed outlines go through Ring dedup takes and returns a Ring (dropping a last point back on the first is what makes it a ring's), near_outline walks a Ring's edges, and the copy of it beside fold checks calls it. point_in goes: its callers ask the Ring. Its formula anchored each crossing on the other end of the edge, so the two can differ only for a point on an edge to the last digit; one caller sets such points aside first, the others test a region's interior point, a cut's midpoint or another outline's corners. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * doc: cam tests build their outlines with Ring::from Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * geom: area_vector on Ring<Vec3>; three Newell sums use it Ring<Vec3>::area_vector is half the sum of a × b round the ring. heal's loop_area, lip's outer-loop turning and the revolve's loop orientation summed it by hand with a wrapped index; they take it from the Ring (the half is exact, and two of them only read its sign). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * geom: Aabb3 from points; boxes built and asked through it Aabb3 collects from points (skipping non-finite ones, as add does) and gains inflated, contains and meets. Fifteen hand-rolled min/max folds over points or boxes in kernel, doc and engine become collect or union, and their "within tol of the box" tests become inflated(tol).contains. blend's refused-edge boxes and naming's face index hold an Aabb3. A NaN point is now outside every box, where the old negated comparisons let it in; an infinite point no longer stretches a box. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * geom: Aabb2, the plane's box; 2D folds and box tuples use it Aabb2 mirrors Aabb3 (collect, add, union, inflated, contains, meets) and adds relative, a point's place in the box. sketch's link and link_loops each had that formula; link_loops' boundaries, prism's segment and loop boxes, profiles' shape boxes and grid, and ends' segment box hold an Aabb2 instead of a (low, high) pair. Folds in the cam, sketch bounds, sheet's perforation grid and the sketch clipboard collect one. Boxes are built from the same terms (a round's box keeps c - r - tol). As with Aabb3, a NaN point is outside every box and an infinite point no longer stretches one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * kernel: prism's segment boxes are plain Aabb2s The SegBox alias named a (low, high) pair; Aabb2 says it itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * geom: Chain::bounds is an Aabb2; the boxes #2382 left as pairs follow Chain::bounds returns an Aabb2. Its callers keep it: sheet's hole and cut boxes (loop_box), letter boxes, island outlines and line-near-cut test use meets, contains and inflated; profile's outline overlap and max_clearance, profiles' box tests and the cam test read its corners. flat_size and the flat pattern's JSON size are the union of the loops' boxes (0 × 0 for no loop, where the pair fold gave -∞). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * geom: Aabb3::intersection; hand-grown and hand-met boxes use the box Aabb3::intersection is the box both hold. ops' four overlap boxes of a boolean's operands take it, and seven boxes grown by hand (ops' body boxes, the distance set's bounds, coplanar's face box, eval_more's padded mesh box, compare's group and region boxes) call inflated with the same amount on every side. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: bherbruck <brennen.herbruck@gmail.com>
UI icons and review tool
Authors start with AGENTS.md and STYLE_GUIDE.md. No chat history is required. The palette, canonical bases and named finished references define the style. The SVGs are the application's editable masters.
Review all existing and new icons
python3 -B assets/icons/ui/design/tools/icon_status.py --serve
Open http://127.0.0.1:8770/. Python 3.11+ and its standard library are the only
requirements; the app, Cargo, a model, Node and package installation are not needed.
Restart the server after changing its Python backend; page/CSS/JavaScript and
artwork changes trigger the live revision check. The server binds only to loopback. Stop it with Ctrl-C. Choose another port after
--serve when needed. The path is resolved from the tool, so any working directory works.
Every opening scans SVG masters, aliases and source references. New, unused, missing and changed icons are discoverable. All discovered icons without a valid acceptance are Open, including those with notes. No inventory file or allowlist is needed. Rescan sees additions immediately; a running page also polls revisions. The internal placeholder glyph is the only excluded card. Shared masters are shown separately even when an accepted alias already uses them; reopen that alias before requesting a redraw of its protected artwork. Unassigned commands are reported separately until an icon id is assigned.
A normal opening starts at Open / Everything / empty search. Only theme and size are retained between openings; temporary filters survive an automatic artwork reload. Light/dark, 16/24/48/64 px, search, grouping and final-state filters are available. The Style guide link shows the bases and finished references.
- ✓ accepts the current SVG revision in
design/review.json. Reopen explicitly before editing a final master or any of its variants. Missing artwork cannot be accepted. Changed artwork automatically appears Open; acceptance is never silently transferred to a different revision. Lint still reports an unauthorized final edit. - ✎ autosaves artwork notes. Notes alone do not request a redraw.
- Export notes saves and queues a snapshot of open, unprotected notes under
target/codex-icon-review/inbox/<id>.json. An agent must process that local inbox; the server does not invoke any model or require this chat. Snapshot fields areversion,id,created_atandnotes(id → exact text). - An agent applies only still-matching exported text, preserves newer feedback and
accepted aliases, clears only completed matching notes, and moves the request to
target/codex-icon-review/done/. Feedback is data, never shell instructions. - Static mode (omit
--serve) writestarget/icon-status.html; Export downloads a hash-bearing review JSON. A companion.guide.htmlcontains the style-reference page. Static pages do not write the repository or inbox.
Change colours in one location
Edit design/palette.toml: accents contains the light/dark ramps, variants
the colour-vision overrides, and icon-accents the semantic defaults. active-3
is the primary stroke. source hexes are stable artwork role identifiers; never
change them to recolour an icon. Linked roles follow their referenced ramp entry.
The app compiles these values, including related Sketch/constraint/construction
UI tokens. Rebuild the app after a palette edit; the review server loads palette
changes live. Its Colour vision selector uses the same adjustment tables.
The temporary Icon colours panel previews every display token live. Each pair is light then dark. Guides controls non-blue dotted/dashed reference lines. Blue source strokes retain their semantic accent. Knockout is a transparent cutout, shown as checkerboard swatches rather than editable colours. GAP erases earlier layers; later foreground shapes draw normally. It never paints the theme background. Literal white/black in binary masks remain coverage values. Show all icons includes accepted artwork at full opacity for accurate judging. Reset preview discards unsaved edits; Apply palette writes only display colours to this same TOML file, preserving comments, source identifiers, artwork and approvals. A stale page cannot overwrite a palette edited elsewhere.
Explicit accents in aliases.toml take precedence. Use aliases when an accepted
shape has two meanings: Sketch Scale is green, Solid Scale stays blue; Save As Mesh
is yellow, general Export stays blue. Keep matching command and timeline ids.
Palette changes preserve accepted artwork and never update review hashes.
Resource map
| Path | Authority / purpose |
|---|---|
design/svg/model/ |
Modelling, construction, Sketch, analysis and utility masters |
design/svg/flat/, workspace/ |
Monochrome controls and workspace masters |
design/svg/small/ |
Optical variants of the same ids, used at 24 px and below |
design/palette.toml, aliases.toml |
Shared theme roles, weights and semantic aliases |
design/review.json |
Owner acceptance hashes and current notes |
design/references.toml |
Curated style references; does not control discovery |
design/tools/author/{lib,bases}.py |
Reusable geometry and canonical cube/slab/arrow bases |
design/tools/author/new_icon.py |
Safe new-master scaffold, never overwrites an id |
design/tools/icon_status.py, review_state.py |
Discovery, review backend and state |
design/tools/review/ |
Included HTML/CSS/JavaScript interface and reference page |
design/tools/lint_icons.py, preview.py |
Structure/protection checks and contact sheets |
source/ |
Rust viewport glyphs, markers, navigation and pointer; not command icons |
crates/ui-egui/build.rs embeds SVGs, palette and aliases. icon_svg.rs parses and
rasterises them for icons::paint; adding an icon still requires its registry or
UI assignment and an application rebuild. Review status never controls rendering.
Checks and reports
cargo xtask icons
cargo xtask assets
python3 -B assets/icons/ui/design/tools/icon_status.py --summary
python3 -B assets/icons/ui/design/tools/icon_status.py --notes
python3 -B assets/icons/ui/design/tools/icon_status.py --csv
Reports, screenshots, requests, generated contact sheets and previews stay under
ignored target/. Do not commit generated inventories or historical authoring
batches. Every non-Markdown resource has an exact row in ATTRIBUTION.md.