diff --git a/models.lock.json b/models.lock.json index d98289a..e923c36 100644 --- a/models.lock.json +++ b/models.lock.json @@ -67,7 +67,7 @@ "address": "@medieval-kit/wooden-barrel", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.803Z", + "installedAt": "2026-08-22T06:23:58.070Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-barrel\\model.ts", @@ -82,7 +82,7 @@ "address": "@medieval-kit/core", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.779Z", + "installedAt": "2026-08-22T06:23:58.053Z", "files": [ { "path": "src\\models\\medieval-kit\\core\\geometry.ts", @@ -129,7 +129,7 @@ "address": "@medieval-kit/wooden-crate", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.809Z", + "installedAt": "2026-08-22T06:23:58.074Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-crate\\model.ts", @@ -144,7 +144,7 @@ "address": "@medieval-kit/kit", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.817Z", + "installedAt": "2026-08-22T06:23:58.080Z", "files": [], "dependencies": [] }, @@ -152,7 +152,7 @@ "address": "@medieval-kit/iron-anvil", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.788Z", + "installedAt": "2026-08-22T06:23:58.059Z", "files": [ { "path": "src\\models\\medieval-kit\\iron-anvil\\model.ts", @@ -167,7 +167,7 @@ "address": "@medieval-kit/wooden-bucket", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.806Z", + "installedAt": "2026-08-22T06:23:58.072Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-bucket\\model.ts", @@ -182,7 +182,7 @@ "address": "@medieval-kit/wooden-fence", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.810Z", + "installedAt": "2026-08-22T06:23:58.075Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-fence\\model.ts", @@ -197,7 +197,7 @@ "address": "@medieval-kit/wooden-hoe", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.811Z", + "installedAt": "2026-08-22T06:23:58.076Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-hoe\\model.ts", @@ -212,7 +212,7 @@ "address": "@medieval-kit/wooden-ladder", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.813Z", + "installedAt": "2026-08-22T06:23:58.077Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-ladder\\model.ts", @@ -227,7 +227,7 @@ "address": "@medieval-kit/wooden-pitchfork", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.814Z", + "installedAt": "2026-08-22T06:23:58.078Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-pitchfork\\model.ts", @@ -242,7 +242,7 @@ "address": "@medieval-kit/wooden-shovel", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.815Z", + "installedAt": "2026-08-22T06:23:58.079Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-shovel\\model.ts", @@ -257,7 +257,7 @@ "address": "@medieval-kit/wooden-stool", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.817Z", + "installedAt": "2026-08-22T06:23:58.080Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-stool\\model.ts", @@ -272,7 +272,7 @@ "address": "@medieval-kit/cart-wheel", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.783Z", + "installedAt": "2026-08-22T06:23:58.056Z", "files": [ { "path": "src\\models\\medieval-kit\\cart-wheel\\model.ts", @@ -287,7 +287,7 @@ "address": "@medieval-kit/log-pile", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.794Z", + "installedAt": "2026-08-22T06:23:58.064Z", "files": [ { "path": "src\\models\\medieval-kit\\log-pile\\model.ts", @@ -302,7 +302,7 @@ "address": "@medieval-kit/trestle-table", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.800Z", + "installedAt": "2026-08-22T06:23:58.068Z", "files": [ { "path": "src\\models\\medieval-kit\\trestle-table\\model.ts", @@ -317,7 +317,7 @@ "address": "@medieval-kit/wooden-chest", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.807Z", + "installedAt": "2026-08-22T06:23:58.073Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-chest\\model.ts", @@ -332,7 +332,7 @@ "address": "@medieval-kit/hay-bale", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.787Z", + "installedAt": "2026-08-22T06:23:58.059Z", "files": [ { "path": "src\\models\\medieval-kit\\hay-bale\\model.ts", @@ -347,7 +347,7 @@ "address": "@medieval-kit/pitch-torch", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.796Z", + "installedAt": "2026-08-22T06:23:58.065Z", "files": [ { "path": "src\\models\\medieval-kit\\pitch-torch\\model.ts", @@ -362,7 +362,7 @@ "address": "@medieval-kit/wooden-bench", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.805Z", + "installedAt": "2026-08-22T06:23:58.071Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-bench\\model.ts", @@ -377,7 +377,7 @@ "address": "@medieval-kit/linen-sack", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.792Z", + "installedAt": "2026-08-22T06:23:58.062Z", "files": [ { "path": "src\\models\\medieval-kit\\linen-sack\\model.ts", @@ -392,7 +392,7 @@ "address": "@medieval-kit/oak-tankard", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.795Z", + "installedAt": "2026-08-22T06:23:58.064Z", "files": [ { "path": "src\\models\\medieval-kit\\oak-tankard\\model.ts", @@ -407,11 +407,11 @@ "address": "@medieval-kit/straw-broom", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.798Z", + "installedAt": "2026-08-22T06:23:58.066Z", "files": [ { "path": "src\\models\\medieval-kit\\straw-broom\\model.ts", - "sourceHash": "a55d370e7f56e741c2f5c93286862fcaf68f4b0372a73c6c6a0f3af3836eab37" + "sourceHash": "24e819d136d3e04a39885a07ce0314a79146b88a926ae2c28414bfcd4ab11928" } ], "dependencies": [ @@ -422,7 +422,7 @@ "address": "@medieval-kit/bronze-bell", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.781Z", + "installedAt": "2026-08-22T06:23:58.054Z", "files": [ { "path": "src\\models\\medieval-kit\\bronze-bell\\model.ts", @@ -437,7 +437,7 @@ "address": "@medieval-kit/iron-lantern", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.790Z", + "installedAt": "2026-08-22T06:23:58.061Z", "files": [ { "path": "src\\models\\medieval-kit\\iron-lantern\\model.ts", @@ -452,7 +452,7 @@ "address": "@medieval-kit/tavern-sign", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.799Z", + "installedAt": "2026-08-22T06:23:58.067Z", "files": [ { "path": "src\\models\\medieval-kit\\tavern-sign\\model.ts", @@ -467,7 +467,7 @@ "address": "@medieval-kit/coin-pouch", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.784Z", + "installedAt": "2026-08-22T06:23:58.056Z", "files": [ { "path": "src\\models\\medieval-kit\\coin-pouch\\model.ts", @@ -482,7 +482,7 @@ "address": "@medieval-kit/glass-phial", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.786Z", + "installedAt": "2026-08-22T06:23:58.058Z", "files": [ { "path": "src\\models\\medieval-kit\\glass-phial\\model.ts", @@ -497,7 +497,7 @@ "address": "@medieval-kit/leather-book", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.791Z", + "installedAt": "2026-08-22T06:23:58.062Z", "files": [ { "path": "src\\models\\medieval-kit\\leather-book\\model.ts", @@ -512,7 +512,7 @@ "address": "@medieval-kit/wicker-basket", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-22T05:07:43.802Z", + "installedAt": "2026-08-22T06:23:58.069Z", "files": [ { "path": "src\\models\\medieval-kit\\wicker-basket\\model.ts", diff --git a/my-registry/meta.ts b/my-registry/meta.ts index 94849ca..4afd1e0 100644 --- a/my-registry/meta.ts +++ b/my-registry/meta.ts @@ -285,7 +285,7 @@ export const MODEL_META: Readonly> = { }, headLength: { type: 'number', label: 'Bundle length', min: 0.2, max: 0.55, step: 0.01 }, tieRadius: { type: 'number', label: 'Binding radius', min: 0.03, max: 0.09, step: 0.002, unit: 'm' }, - tipRadius: { type: 'number', label: 'Tip radius', min: 0.04, max: 0.2, step: 0.005, unit: 'm' }, + tipRadius: { type: 'number', label: 'Tip radius', min: 0.04, max: 0.26, step: 0.005, unit: 'm' }, bristles: { type: 'number', label: 'Bristle count', min: 8, max: 60, step: 2 }, bindings: { type: 'number', label: 'Binding count', min: 0, max: 5, step: 1 }, seed: { type: 'number', label: 'Variation seed', min: 1, max: 64, step: 1 }, diff --git a/my-registry/models/straw-broom/model.ts b/my-registry/models/straw-broom/model.ts index 2d1be7d..a0cf24d 100644 --- a/my-registry/models/straw-broom/model.ts +++ b/my-registry/models/straw-broom/model.ts @@ -62,10 +62,17 @@ export interface StrawBroomConfig { export const strawBroomDefaults: StrawBroomConfig = { length: 1.2, shaftRadius: 0.018, - headLength: 0.42, + // Measured from the binding down, the old default left only 36% of the + // broom as bundle against roughly half in the reference -- the head looked + // stuck on the end of an over-long stick. + headLength: 0.52, tieRadius: 0.058, - tipRadius: 0.102, - bristles: 32, + // A 20-degree spray, not a 5-degree one. Derived rather than guessed: + // atan((tip - tie) / span), which at the old 0.102 came to five degrees and + // gave a narrow cone. The reference fans out until the spread at the sweeping + // end is comparable to the length of the bundle itself. + tipRadius: 0.17, + bristles: 46, bindings: 3, seed: 59, } @@ -130,10 +137,30 @@ export function createModel(overrides: Partial = {}) { // flattening the bundle. (The flat fan broom is a 19th-century Shaker // invention, an anachronism here.) const wear = 1 + 0.1 * Math.cos(angle - faceAngle) - const length = (span / Math.cos(flare)) * wear * (0.97 + random() * 0.06) + // Lengths vary by nearly a third, not by three percent. + // + // At +-0.03 every twig finished within a few millimetres of its + // neighbours and the bundle ended in a straight cut across the + // bottom. That single edge is what made the head read as a lampshade + // pushed onto a stick: no bundle of cut birch ends level, and the + // ragged, feathered tip is most of what identifies a besom in a + // photograph. Nothing is left floating by this -- every twig is held + // at the tie, and it is only the free end that varies. + // The spread runs DOWN from 1.0, never above it. Centring it on 1.0 + // let the longest twigs overshoot the sweeping end and the model came + // out 1.32 m for a declared length of 1.2 -- caught by the size + // guard, and a real inconsistency, since `length` is supposed to mean + // the whole broom. The span is the longest twig; the rest fall short + // of it by up to a third. + const length = (span / Math.cos(flare)) * wear * (0.68 + random() * 0.32) - const width = config.shaftRadius * (1.7 + random() * 0.28) - const depth = config.shaftRadius * (0.78 + random() * 0.16) + // Narrower, and more of them. At 1.7 shaft radii each sheaf was a + // 31 mm slat, and thirty-two slats read as a fan of laths rather + // than as a bundle of twigs. Trading width for count keeps roughly + // the same mass in the bundle while making the individual pieces + // read at the right scale. + const width = config.shaftRadius * (1.05 + random() * 0.24) + const depth = config.shaftRadius * (0.6 + random() * 0.14) // The cross-section TAPERS DOWNWARDS. Previously it was exactly the // reverse — the lower end was both wider and thicker, i.e. the bundle // swelled towards the bottom; whereas the sweeping end wears thin diff --git a/src/models/medieval-kit/straw-broom/model.ts b/src/models/medieval-kit/straw-broom/model.ts index 2d1be7d..a0cf24d 100644 --- a/src/models/medieval-kit/straw-broom/model.ts +++ b/src/models/medieval-kit/straw-broom/model.ts @@ -62,10 +62,17 @@ export interface StrawBroomConfig { export const strawBroomDefaults: StrawBroomConfig = { length: 1.2, shaftRadius: 0.018, - headLength: 0.42, + // Measured from the binding down, the old default left only 36% of the + // broom as bundle against roughly half in the reference -- the head looked + // stuck on the end of an over-long stick. + headLength: 0.52, tieRadius: 0.058, - tipRadius: 0.102, - bristles: 32, + // A 20-degree spray, not a 5-degree one. Derived rather than guessed: + // atan((tip - tie) / span), which at the old 0.102 came to five degrees and + // gave a narrow cone. The reference fans out until the spread at the sweeping + // end is comparable to the length of the bundle itself. + tipRadius: 0.17, + bristles: 46, bindings: 3, seed: 59, } @@ -130,10 +137,30 @@ export function createModel(overrides: Partial = {}) { // flattening the bundle. (The flat fan broom is a 19th-century Shaker // invention, an anachronism here.) const wear = 1 + 0.1 * Math.cos(angle - faceAngle) - const length = (span / Math.cos(flare)) * wear * (0.97 + random() * 0.06) + // Lengths vary by nearly a third, not by three percent. + // + // At +-0.03 every twig finished within a few millimetres of its + // neighbours and the bundle ended in a straight cut across the + // bottom. That single edge is what made the head read as a lampshade + // pushed onto a stick: no bundle of cut birch ends level, and the + // ragged, feathered tip is most of what identifies a besom in a + // photograph. Nothing is left floating by this -- every twig is held + // at the tie, and it is only the free end that varies. + // The spread runs DOWN from 1.0, never above it. Centring it on 1.0 + // let the longest twigs overshoot the sweeping end and the model came + // out 1.32 m for a declared length of 1.2 -- caught by the size + // guard, and a real inconsistency, since `length` is supposed to mean + // the whole broom. The span is the longest twig; the rest fall short + // of it by up to a third. + const length = (span / Math.cos(flare)) * wear * (0.68 + random() * 0.32) - const width = config.shaftRadius * (1.7 + random() * 0.28) - const depth = config.shaftRadius * (0.78 + random() * 0.16) + // Narrower, and more of them. At 1.7 shaft radii each sheaf was a + // 31 mm slat, and thirty-two slats read as a fan of laths rather + // than as a bundle of twigs. Trading width for count keeps roughly + // the same mass in the bundle while making the individual pieces + // read at the right scale. + const width = config.shaftRadius * (1.05 + random() * 0.24) + const depth = config.shaftRadius * (0.6 + random() * 0.14) // The cross-section TAPERS DOWNWARDS. Previously it was exactly the // reverse — the lower end was both wider and thicker, i.e. the bundle // swelled towards the bottom; whereas the sweeping end wears thin