diff --git a/models.lock.json b/models.lock.json index 95b1706..fa30de6 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:49:46.104Z", + "installedAt": "2026-08-23T04:56:51.944Z", "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:49:46.085Z", + "installedAt": "2026-08-23T04:56:51.925Z", "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:49:46.108Z", + "installedAt": "2026-08-23T04:56:51.948Z", "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:49:46.114Z", + "installedAt": "2026-08-23T04:56:51.954Z", "files": [], "dependencies": [] }, @@ -152,7 +152,7 @@ "address": "@medieval-kit/iron-anvil", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T04:49:46.093Z", + "installedAt": "2026-08-23T04:56:51.932Z", "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:49:46.106Z", + "installedAt": "2026-08-23T04:56:51.946Z", "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:49:46.109Z", + "installedAt": "2026-08-23T04:56:51.949Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-fence\\model.ts", @@ -197,11 +197,11 @@ "address": "@medieval-kit/wooden-hoe", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T04:49:46.110Z", + "installedAt": "2026-08-23T04:56:51.950Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-hoe\\model.ts", - "sourceHash": "70e5a600459f56ff419f6a30f91c5bd981aa5be74448ea7021e005864f252295" + "sourceHash": "460f389c08df5daba8493fec8e4ece7c2056c1edbc29ca9eddabb4a1e9ccb6a6" } ], "dependencies": [ @@ -212,7 +212,7 @@ "address": "@medieval-kit/wooden-ladder", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T04:49:46.111Z", + "installedAt": "2026-08-23T04:56:51.951Z", "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:49:46.112Z", + "installedAt": "2026-08-23T04:56:51.952Z", "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:49:46.113Z", + "installedAt": "2026-08-23T04:56:51.953Z", "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:49:46.114Z", + "installedAt": "2026-08-23T04:56:51.954Z", "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:49:46.089Z", + "installedAt": "2026-08-23T04:56:51.928Z", "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:49:46.097Z", + "installedAt": "2026-08-23T04:56:51.936Z", "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-23T04:49:46.102Z", + "installedAt": "2026-08-23T04:56:51.942Z", "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-23T04:49:46.107Z", + "installedAt": "2026-08-23T04:56:51.947Z", "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:49:46.092Z", + "installedAt": "2026-08-23T04:56:51.931Z", "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:49:46.099Z", + "installedAt": "2026-08-23T04:56:51.938Z", "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-23T04:49:46.105Z", + "installedAt": "2026-08-23T04:56:51.945Z", "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-23T04:49:46.096Z", + "installedAt": "2026-08-23T04:56:51.935Z", "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:49:46.098Z", + "installedAt": "2026-08-23T04:56:51.937Z", "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:49:46.100Z", + "installedAt": "2026-08-23T04:56:51.939Z", "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:49:46.088Z", + "installedAt": "2026-08-23T04:56:51.927Z", "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:49:46.094Z", + "installedAt": "2026-08-23T04:56:51.933Z", "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:49:46.101Z", + "installedAt": "2026-08-23T04:56:51.940Z", "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:49:46.090Z", + "installedAt": "2026-08-23T04:56:51.929Z", "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:49:46.091Z", + "installedAt": "2026-08-23T04:56:51.930Z", "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:49:46.095Z", + "installedAt": "2026-08-23T04:56:51.934Z", "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:49:46.103Z", + "installedAt": "2026-08-23T04:56:51.943Z", "files": [ { "path": "src\\models\\medieval-kit\\wicker-basket\\model.ts", diff --git a/my-registry/models/wooden-hoe/model.ts b/my-registry/models/wooden-hoe/model.ts index b00d851..a5c0541 100644 --- a/my-registry/models/wooden-hoe/model.ts +++ b/my-registry/models/wooden-hoe/model.ts @@ -27,6 +27,7 @@ import { bendGeometry, chamferedBoxGeometry, createKitModel, + dishedSheetGeometry, ironTint, steelTint, jitter, @@ -35,6 +36,7 @@ import { toolShaft, toolSocket, type Level, + type SheetLevel, } from '../core/index.ts' export interface WoodenHoeConfig { @@ -53,7 +55,18 @@ export interface WoodenHoeConfig { export const woodenHoeDefaults: WoodenHoeConfig = { length: 1.14, shaftRadius: 0.021, - bladeWidth: 0.2, + bladeWidth: 0.23, + // 112 stands. I lowered it to 95 after reading a render in which the blade + // happened to sit edge-on to the camera, and mistook foreshortening for the + // wrong angle. + // + // It is also worth recording that the reference generated for this model is + // a plain strap hoe, where this one is deliberately a GOOSENECK -- a curved + // forged neck carrying the blade ahead of the shaft axis, as the + // description says. Both are period-correct, and bending the model towards + // the photograph on that point would be changing the design rather than + // fixing a fault. The blade's depth and wedge are another matter: a hoe + // blade is the heavy end of the tool whichever neck it hangs from. neckSweep: 112, dish: 1, seed: 23, @@ -110,22 +123,43 @@ export function createModel(overrides: Partial = {}) { // --- Blade --------------------------------------------------------------- // Continues from the tip of the neck. Built base-at-origin so that the // dish is actually visible. - const bladeLength = config.length * 0.115 + // 0.17 of the tool, not 0.115. A field hoe's blade is the heavy end of + // it -- in the reference it is close to a fifth of the whole length -- + // and at 131 mm ours read as a tab riveted to a stick. + const bladeLength = config.length * 0.15 const thick = config.length * 0.028 const thin = config.length * 0.006 - const blade = chamferedBoxGeometry( - [config.bladeWidth * 0.72, thick], - [config.bladeWidth, thin], - bladeLength, - thin * 0.6, - [0, bladeLength / 2, 0], - steelTint(random, -0.04), - steelTint(random, 0.05), + // A dished sheet, not a bent box. + // + // The blade was a `chamferedBoxGeometry` put through `bendGeometry`. + // That has exactly four levels in Y, and once the blade was made deep + // enough to look right the bend had to work a 50-degree arc across those + // four -- the cutting edge came out visibly faceted, a row of steps + // instead of a curve. `dishedSheetGeometry` exists for this: it produces + // one seamless concave surface whose cross-section is curved at every + // level, which is what the shovel's blade is built from. + // + // The hoe is a wedge: narrow where the neck carries it, wide where it + // meets the ground. That taper is most of what identifies the + // silhouette, and it was nearly parallel-sided before. + const halfEdge = config.bladeWidth / 2 + // `curve` is an absolute rise in metres, not a ratio, so it has to be + // scaled to the blade. Written as `-0.34 * dish` it asked for a 340 mm + // rise across a 230 mm blade -- seven times its own half-width -- and + // the sheet came out as a pair of wings. The shovel gets this right: + // `bladeWidth * dish`, with its own dish slider running 0 to 0.22. This + // one's runs 0 to 2, so the coefficient differs; the quantity does not. + const curve = config.bladeWidth * 0.13 * config.dish + const profile: SheetLevel[] = [ + { y: 0, halfWidth: halfEdge * 0.34, thickness: thick, curve: curve * 0.15 }, + { y: bladeLength * 0.18, halfWidth: halfEdge * 0.6, thickness: thick * 0.9, curve: curve * 0.5 }, + { y: bladeLength * 0.52, halfWidth: halfEdge * 0.86, thickness: thick * 0.6, curve: curve * 0.9 }, + { y: bladeLength * 0.86, halfWidth: halfEdge, thickness: thin * 1.6, curve }, + { y: bladeLength, halfWidth: halfEdge * 0.99, thickness: thin, curve: curve * 0.95 }, + ] + const blade = dishedSheetGeometry( + profile, 7, steelTint(random, -0.04), steelTint(random, 0.05), ) - // Dish: the cutting edge curves back towards the user, so that it can hold - // the soil in front of it. NEGATIVE curvature, otherwise the hoe turns - // into a scoop that pushes the soil away from itself. - if (config.dish > 0) bendGeometry(blade, (-0.9 * config.dish) / bladeLength) // A forged blade is not perfectly symmetric. blade.rotateY(jitter(random, 0.04)) // Align to the tangent at the neck tip, then move it there — order is critical. diff --git a/scripts/verify-model.ts b/scripts/verify-model.ts index 778663f..2763364 100644 --- a/scripts/verify-model.ts +++ b/scripts/verify-model.ts @@ -311,7 +311,7 @@ const CASES: readonly Case[] = [ variants: [{ legCount: 5 }, { splay: 0 }] , maxSize: [0.5, 0.55, 0.5] }, { id: 'wooden-hoe', make: as(createHoe), patch: { bladeWidth: 0.26, neckSweep: 130 }, parts: 3, ownSlot: 'iron', borrowSlot: 'oak', - variants: [{ neckSweep: 45 }, { bladeWidth: 0.3 }, { dish: 0 }] , maxSize: [0.32, 1.6, 0.42] }, + variants: [{ neckSweep: 45 }, { bladeWidth: 0.3 }, { dish: 0 }] , maxSize: [0.34, 1.6, 0.48] }, { id: 'wooden-shovel', make: as(createShovel), patch: { bladeWidth: 0.3, bladeLength: 0.36, dish: 0.22 }, parts: 3, ownSlot: 'iron', borrowSlot: 'oak', variants: [{ bladeLength: 0.18 }, { bladeLength: 0.4 }, { dish: 0 }, { bladeAngle: 25 }] , maxSize: [0.3, 1.4, 0.15] }, diff --git a/src/models/medieval-kit/wooden-hoe/model.ts b/src/models/medieval-kit/wooden-hoe/model.ts index b00d851..a5c0541 100644 --- a/src/models/medieval-kit/wooden-hoe/model.ts +++ b/src/models/medieval-kit/wooden-hoe/model.ts @@ -27,6 +27,7 @@ import { bendGeometry, chamferedBoxGeometry, createKitModel, + dishedSheetGeometry, ironTint, steelTint, jitter, @@ -35,6 +36,7 @@ import { toolShaft, toolSocket, type Level, + type SheetLevel, } from '../core/index.ts' export interface WoodenHoeConfig { @@ -53,7 +55,18 @@ export interface WoodenHoeConfig { export const woodenHoeDefaults: WoodenHoeConfig = { length: 1.14, shaftRadius: 0.021, - bladeWidth: 0.2, + bladeWidth: 0.23, + // 112 stands. I lowered it to 95 after reading a render in which the blade + // happened to sit edge-on to the camera, and mistook foreshortening for the + // wrong angle. + // + // It is also worth recording that the reference generated for this model is + // a plain strap hoe, where this one is deliberately a GOOSENECK -- a curved + // forged neck carrying the blade ahead of the shaft axis, as the + // description says. Both are period-correct, and bending the model towards + // the photograph on that point would be changing the design rather than + // fixing a fault. The blade's depth and wedge are another matter: a hoe + // blade is the heavy end of the tool whichever neck it hangs from. neckSweep: 112, dish: 1, seed: 23, @@ -110,22 +123,43 @@ export function createModel(overrides: Partial = {}) { // --- Blade --------------------------------------------------------------- // Continues from the tip of the neck. Built base-at-origin so that the // dish is actually visible. - const bladeLength = config.length * 0.115 + // 0.17 of the tool, not 0.115. A field hoe's blade is the heavy end of + // it -- in the reference it is close to a fifth of the whole length -- + // and at 131 mm ours read as a tab riveted to a stick. + const bladeLength = config.length * 0.15 const thick = config.length * 0.028 const thin = config.length * 0.006 - const blade = chamferedBoxGeometry( - [config.bladeWidth * 0.72, thick], - [config.bladeWidth, thin], - bladeLength, - thin * 0.6, - [0, bladeLength / 2, 0], - steelTint(random, -0.04), - steelTint(random, 0.05), + // A dished sheet, not a bent box. + // + // The blade was a `chamferedBoxGeometry` put through `bendGeometry`. + // That has exactly four levels in Y, and once the blade was made deep + // enough to look right the bend had to work a 50-degree arc across those + // four -- the cutting edge came out visibly faceted, a row of steps + // instead of a curve. `dishedSheetGeometry` exists for this: it produces + // one seamless concave surface whose cross-section is curved at every + // level, which is what the shovel's blade is built from. + // + // The hoe is a wedge: narrow where the neck carries it, wide where it + // meets the ground. That taper is most of what identifies the + // silhouette, and it was nearly parallel-sided before. + const halfEdge = config.bladeWidth / 2 + // `curve` is an absolute rise in metres, not a ratio, so it has to be + // scaled to the blade. Written as `-0.34 * dish` it asked for a 340 mm + // rise across a 230 mm blade -- seven times its own half-width -- and + // the sheet came out as a pair of wings. The shovel gets this right: + // `bladeWidth * dish`, with its own dish slider running 0 to 0.22. This + // one's runs 0 to 2, so the coefficient differs; the quantity does not. + const curve = config.bladeWidth * 0.13 * config.dish + const profile: SheetLevel[] = [ + { y: 0, halfWidth: halfEdge * 0.34, thickness: thick, curve: curve * 0.15 }, + { y: bladeLength * 0.18, halfWidth: halfEdge * 0.6, thickness: thick * 0.9, curve: curve * 0.5 }, + { y: bladeLength * 0.52, halfWidth: halfEdge * 0.86, thickness: thick * 0.6, curve: curve * 0.9 }, + { y: bladeLength * 0.86, halfWidth: halfEdge, thickness: thin * 1.6, curve }, + { y: bladeLength, halfWidth: halfEdge * 0.99, thickness: thin, curve: curve * 0.95 }, + ] + const blade = dishedSheetGeometry( + profile, 7, steelTint(random, -0.04), steelTint(random, 0.05), ) - // Dish: the cutting edge curves back towards the user, so that it can hold - // the soil in front of it. NEGATIVE curvature, otherwise the hoe turns - // into a scoop that pushes the soil away from itself. - if (config.dish > 0) bendGeometry(blade, (-0.9 * config.dish) / bladeLength) // A forged blade is not perfectly symmetric. blade.rotateY(jitter(random, 0.04)) // Align to the tangent at the neck tip, then move it there — order is critical.