diff --git a/models.lock.json b/models.lock.json index d9a496f..95b1706 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-23T04:20:17.528Z", + "installedAt": "2026-08-23T04:49:46.104Z", "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-23T04:20:17.509Z", + "installedAt": "2026-08-23T04:49:46.085Z", "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-23T04:20:17.533Z", + "installedAt": "2026-08-23T04:49:46.108Z", "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-23T04:20:17.539Z", + "installedAt": "2026-08-23T04:49:46.114Z", "files": [], "dependencies": [] }, @@ -152,7 +152,7 @@ "address": "@medieval-kit/iron-anvil", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T04:20:17.517Z", + "installedAt": "2026-08-23T04:49:46.093Z", "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-23T04:20:17.530Z", + "installedAt": "2026-08-23T04:49:46.106Z", "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-23T04:20:17.534Z", + "installedAt": "2026-08-23T04:49:46.109Z", "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-23T04:20:17.535Z", + "installedAt": "2026-08-23T04:49:46.110Z", "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-23T04:20:17.536Z", + "installedAt": "2026-08-23T04:49:46.111Z", "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-23T04:20:17.537Z", + "installedAt": "2026-08-23T04:49:46.112Z", "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-23T04:20:17.538Z", + "installedAt": "2026-08-23T04:49:46.113Z", "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-23T04:20:17.539Z", + "installedAt": "2026-08-23T04:49:46.114Z", "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-23T04:20:17.512Z", + "installedAt": "2026-08-23T04:49:46.089Z", "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-23T04:20:17.521Z", + "installedAt": "2026-08-23T04:49:46.097Z", "files": [ { "path": "src\\models\\medieval-kit\\log-pile\\model.ts", @@ -302,11 +302,11 @@ "address": "@medieval-kit/trestle-table", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T04:20:17.526Z", + "installedAt": "2026-08-23T04:49:46.102Z", "files": [ { "path": "src\\models\\medieval-kit\\trestle-table\\model.ts", - "sourceHash": "ef48caef433213140c94db23e833851b3a07a234c58309bb496b4f1af23578b1" + "sourceHash": "5cb5c80b9994d3a3094773b4acfe73a4aef2a5fcabb3a95979ce36f529fe187c" } ], "dependencies": [ @@ -317,7 +317,7 @@ "address": "@medieval-kit/wooden-chest", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T04:20:17.531Z", + "installedAt": "2026-08-23T04:49:46.107Z", "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-23T04:20:17.516Z", + "installedAt": "2026-08-23T04:49:46.092Z", "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-23T04:20:17.523Z", + "installedAt": "2026-08-23T04:49:46.099Z", "files": [ { "path": "src\\models\\medieval-kit\\pitch-torch\\model.ts", @@ -362,11 +362,11 @@ "address": "@medieval-kit/wooden-bench", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T04:20:17.529Z", + "installedAt": "2026-08-23T04:49:46.105Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-bench\\model.ts", - "sourceHash": "64cdd722639917c16957167e25529baf44d65c50ae4ef38c48f2ba8e0565c7e7" + "sourceHash": "91169da4e428d4ffa11818a249df4cc230db341ab9bbfbcfe47bf6c50891cfb2" } ], "dependencies": [ @@ -377,7 +377,7 @@ "address": "@medieval-kit/linen-sack", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T04:20:17.520Z", + "installedAt": "2026-08-23T04:49:46.096Z", "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-23T04:20:17.522Z", + "installedAt": "2026-08-23T04:49:46.098Z", "files": [ { "path": "src\\models\\medieval-kit\\oak-tankard\\model.ts", @@ -407,7 +407,7 @@ "address": "@medieval-kit/straw-broom", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T04:20:17.524Z", + "installedAt": "2026-08-23T04:49:46.100Z", "files": [ { "path": "src\\models\\medieval-kit\\straw-broom\\model.ts", @@ -422,7 +422,7 @@ "address": "@medieval-kit/bronze-bell", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T04:20:17.511Z", + "installedAt": "2026-08-23T04:49:46.088Z", "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-23T04:20:17.518Z", + "installedAt": "2026-08-23T04:49:46.094Z", "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-23T04:20:17.525Z", + "installedAt": "2026-08-23T04:49:46.101Z", "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-23T04:20:17.513Z", + "installedAt": "2026-08-23T04:49:46.090Z", "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-23T04:20:17.514Z", + "installedAt": "2026-08-23T04:49:46.091Z", "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-23T04:20:17.519Z", + "installedAt": "2026-08-23T04:49:46.095Z", "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-23T04:20:17.527Z", + "installedAt": "2026-08-23T04:49:46.103Z", "files": [ { "path": "src\\models\\medieval-kit\\wicker-basket\\model.ts", diff --git a/my-registry/models/trestle-table/model.ts b/my-registry/models/trestle-table/model.ts index 3b2964a..6f32fd0 100644 --- a/my-registry/models/trestle-table/model.ts +++ b/my-registry/models/trestle-table/model.ts @@ -56,7 +56,11 @@ export function createModel(overrides: Partial = {}) { return tint } const half = config.height / 2 - const board = config.height * 0.045 + // 0.07 of the height, not 0.045: a 52 mm plank rather than a 33 mm one + // across 1.9 m. Same reasoning as the bench -- a trestle top is a slab + // laid on frames and taken off again, and it has to be stiff enough to + // carry itself between two supports. + const board = config.height * 0.07 const timber = config.height * 0.075 // --- top: separate boards with a thin gap between them --- diff --git a/my-registry/models/wooden-bench/model.ts b/my-registry/models/wooden-bench/model.ts index 1b202c6..103a871 100644 --- a/my-registry/models/wooden-bench/model.ts +++ b/my-registry/models/wooden-bench/model.ts @@ -55,7 +55,15 @@ export function createModel(overrides: Partial = {}) { build: ({ config, random }) => { const tint = createTinter(random) const half = config.height / 2 - const seatThickness = config.height * 0.09 + // 0.135 of the height, not 0.09. + // + // At 0.09 the seat came out 40 mm on a bench 1.62 m long -- one + // fortieth of its own span, where the reference reads about one + // twentieth. Medieval furniture is riven, not machined: the board is + // whatever the log gave, and that is thick. A thin slab over a long + // span also looks like it would flex, which is the specific way these + // pieces were reading as flimsy. + const seatThickness = config.height * 0.135 const seatTop = half const seatBottom = seatTop - seatThickness const timber = config.width * 0.09 @@ -80,18 +88,54 @@ export function createModel(overrides: Partial = {}) { const legPieces = [] for (const side of [-1, 1]) { - // Leg board: it widens on the way down. The splay is in the measure, - // not in the angle — widening the bottom face instead of rotating is - // both cheaper and lets the foot sit FLAT on the ground, whereas a - // rotated leg stands on its edge. + // Leg board with an arch cut out of its foot. + // + // The board widens on the way down. The splay is in the measure, not + // in the angle — widening the bottom face instead of rotating is both + // cheaper and lets the foot sit FLAT on the ground, whereas a rotated + // leg stands on its edge. + // + // The arch is not decoration. A plank leg standing on its whole edge + // rocks on any floor that is not flat, and no medieval floor was; the + // cut leaves two feet, and two feet on each board give the bench four + // points to find the ground with. It is also the single most + // recognisable thing about the silhouette, and the reference has it. + // + // It is cut by building the board in three pieces rather than + // subtracting: the geometry here is all non-indexed triangle soup with + // no boolean operations, so a notch is made by not filling it. + const archHeight = legHeight * 0.3 + const archFrac = archHeight / legHeight + const footWidth = legWidth + spread * 2 + const widthAtArch = legWidth + spread * 2 * (1 - archFrac) + + // Upper board: from the top of the arch to the underside of the seat. legPieces.push(taperedBoxGeometry( - [legWidth + spread * 2, timber * 1.35], + [widthAtArch, timber * 1.35], [legWidth, timber * 1.35], - legHeight, - [side * legX, -half + legHeight / 2, 0], + legHeight - archHeight, + [side * legX, -half + archHeight + (legHeight - archHeight) / 2, 0], tint('oak', -0.02), )) + // The two feet. They run PAST the top of the arch into the board above, + // so the joint is an overlap rather than two faces meeting. + const footThickness = footWidth * 0.3 + const footRise = archHeight + legHeight * 0.07 + for (const foot of [-1, 1]) { + legPieces.push(taperedBoxGeometry( + [footThickness, timber * 1.35], + [footThickness * 0.92, timber * 1.35], + footRise, + [ + side * legX + foot * (footWidth - footThickness) / 2, + -half + footRise / 2, + 0, + ], + tint('oak', -0.04), + )) + } + // Tenon: the end of the leg that runs THROUGH the seat and shows on // top of it. It overshoots the seat's top face — the most recognisable // detail of a medieval bench. diff --git a/src/models/medieval-kit/trestle-table/model.ts b/src/models/medieval-kit/trestle-table/model.ts index 3b2964a..6f32fd0 100644 --- a/src/models/medieval-kit/trestle-table/model.ts +++ b/src/models/medieval-kit/trestle-table/model.ts @@ -56,7 +56,11 @@ export function createModel(overrides: Partial = {}) { return tint } const half = config.height / 2 - const board = config.height * 0.045 + // 0.07 of the height, not 0.045: a 52 mm plank rather than a 33 mm one + // across 1.9 m. Same reasoning as the bench -- a trestle top is a slab + // laid on frames and taken off again, and it has to be stiff enough to + // carry itself between two supports. + const board = config.height * 0.07 const timber = config.height * 0.075 // --- top: separate boards with a thin gap between them --- diff --git a/src/models/medieval-kit/wooden-bench/model.ts b/src/models/medieval-kit/wooden-bench/model.ts index 1b202c6..103a871 100644 --- a/src/models/medieval-kit/wooden-bench/model.ts +++ b/src/models/medieval-kit/wooden-bench/model.ts @@ -55,7 +55,15 @@ export function createModel(overrides: Partial = {}) { build: ({ config, random }) => { const tint = createTinter(random) const half = config.height / 2 - const seatThickness = config.height * 0.09 + // 0.135 of the height, not 0.09. + // + // At 0.09 the seat came out 40 mm on a bench 1.62 m long -- one + // fortieth of its own span, where the reference reads about one + // twentieth. Medieval furniture is riven, not machined: the board is + // whatever the log gave, and that is thick. A thin slab over a long + // span also looks like it would flex, which is the specific way these + // pieces were reading as flimsy. + const seatThickness = config.height * 0.135 const seatTop = half const seatBottom = seatTop - seatThickness const timber = config.width * 0.09 @@ -80,18 +88,54 @@ export function createModel(overrides: Partial = {}) { const legPieces = [] for (const side of [-1, 1]) { - // Leg board: it widens on the way down. The splay is in the measure, - // not in the angle — widening the bottom face instead of rotating is - // both cheaper and lets the foot sit FLAT on the ground, whereas a - // rotated leg stands on its edge. + // Leg board with an arch cut out of its foot. + // + // The board widens on the way down. The splay is in the measure, not + // in the angle — widening the bottom face instead of rotating is both + // cheaper and lets the foot sit FLAT on the ground, whereas a rotated + // leg stands on its edge. + // + // The arch is not decoration. A plank leg standing on its whole edge + // rocks on any floor that is not flat, and no medieval floor was; the + // cut leaves two feet, and two feet on each board give the bench four + // points to find the ground with. It is also the single most + // recognisable thing about the silhouette, and the reference has it. + // + // It is cut by building the board in three pieces rather than + // subtracting: the geometry here is all non-indexed triangle soup with + // no boolean operations, so a notch is made by not filling it. + const archHeight = legHeight * 0.3 + const archFrac = archHeight / legHeight + const footWidth = legWidth + spread * 2 + const widthAtArch = legWidth + spread * 2 * (1 - archFrac) + + // Upper board: from the top of the arch to the underside of the seat. legPieces.push(taperedBoxGeometry( - [legWidth + spread * 2, timber * 1.35], + [widthAtArch, timber * 1.35], [legWidth, timber * 1.35], - legHeight, - [side * legX, -half + legHeight / 2, 0], + legHeight - archHeight, + [side * legX, -half + archHeight + (legHeight - archHeight) / 2, 0], tint('oak', -0.02), )) + // The two feet. They run PAST the top of the arch into the board above, + // so the joint is an overlap rather than two faces meeting. + const footThickness = footWidth * 0.3 + const footRise = archHeight + legHeight * 0.07 + for (const foot of [-1, 1]) { + legPieces.push(taperedBoxGeometry( + [footThickness, timber * 1.35], + [footThickness * 0.92, timber * 1.35], + footRise, + [ + side * legX + foot * (footWidth - footThickness) / 2, + -half + footRise / 2, + 0, + ], + tint('oak', -0.04), + )) + } + // Tenon: the end of the leg that runs THROUGH the seat and shows on // top of it. It overshoots the seat's top face — the most recognisable // detail of a medieval bench.