diff --git a/models.lock.json b/models.lock.json index 57ce624..8c725d6 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-23T06:13:59.314Z", + "installedAt": "2026-08-23T06:21:57.397Z", "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-23T06:13:59.288Z", + "installedAt": "2026-08-23T06:21:57.373Z", "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-23T06:13:59.319Z", + "installedAt": "2026-08-23T06:21:57.403Z", "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-23T06:13:59.327Z", + "installedAt": "2026-08-23T06:21:57.410Z", "files": [], "dependencies": [] }, @@ -152,7 +152,7 @@ "address": "@medieval-kit/iron-anvil", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T06:13:59.297Z", + "installedAt": "2026-08-23T06:21:57.382Z", "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-23T06:13:59.316Z", + "installedAt": "2026-08-23T06:21:57.400Z", "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-23T06:13:59.321Z", + "installedAt": "2026-08-23T06:21:57.404Z", "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-23T06:13:59.322Z", + "installedAt": "2026-08-23T06:21:57.405Z", "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-23T06:13:59.324Z", + "installedAt": "2026-08-23T06:21:57.406Z", "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-23T06:13:59.325Z", + "installedAt": "2026-08-23T06:21:57.408Z", "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-23T06:13:59.326Z", + "installedAt": "2026-08-23T06:21:57.409Z", "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-23T06:13:59.327Z", + "installedAt": "2026-08-23T06:21:57.410Z", "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-23T06:13:59.292Z", + "installedAt": "2026-08-23T06:21:57.377Z", "files": [ { "path": "src\\models\\medieval-kit\\cart-wheel\\model.ts", @@ -287,11 +287,11 @@ "address": "@medieval-kit/log-pile", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T06:13:59.303Z", + "installedAt": "2026-08-23T06:21:57.387Z", "files": [ { "path": "src\\models\\medieval-kit\\log-pile\\model.ts", - "sourceHash": "0cae2e57ac46fedf3ad63211901671c0ace45520b893f5443c3be23008751369" + "sourceHash": "d0a68191cd5e464c7f8d699277a1d9c132947ae5fcf4d4e54636baf1a5665b5d" } ], "dependencies": [ @@ -302,7 +302,7 @@ "address": "@medieval-kit/trestle-table", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T06:13:59.311Z", + "installedAt": "2026-08-23T06:21:57.394Z", "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-23T06:13:59.318Z", + "installedAt": "2026-08-23T06:21:57.401Z", "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-23T06:13:59.296Z", + "installedAt": "2026-08-23T06:21:57.381Z", "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-23T06:13:59.305Z", + "installedAt": "2026-08-23T06:21:57.389Z", "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-23T06:13:59.315Z", + "installedAt": "2026-08-23T06:21:57.398Z", "files": [ { "path": "src\\models\\medieval-kit\\wooden-bench\\model.ts", - "sourceHash": "91169da4e428d4ffa11818a249df4cc230db341ab9bbfbcfe47bf6c50891cfb2" + "sourceHash": "3b3468721c72911d1fd9eb54da61828cdc666c1b5a86871c5c5997ab9cc37533" } ], "dependencies": [ @@ -377,7 +377,7 @@ "address": "@medieval-kit/linen-sack", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T06:13:59.301Z", + "installedAt": "2026-08-23T06:21:57.386Z", "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-23T06:13:59.304Z", + "installedAt": "2026-08-23T06:21:57.388Z", "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-23T06:13:59.308Z", + "installedAt": "2026-08-23T06:21:57.392Z", "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-23T06:13:59.291Z", + "installedAt": "2026-08-23T06:21:57.375Z", "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-23T06:13:59.299Z", + "installedAt": "2026-08-23T06:21:57.383Z", "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-23T06:13:59.310Z", + "installedAt": "2026-08-23T06:21:57.393Z", "files": [ { "path": "src\\models\\medieval-kit\\tavern-sign\\model.ts", @@ -467,11 +467,11 @@ "address": "@medieval-kit/coin-pouch", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T06:13:59.294Z", + "installedAt": "2026-08-23T06:21:57.378Z", "files": [ { "path": "src\\models\\medieval-kit\\coin-pouch\\model.ts", - "sourceHash": "0f3f18fbe15f17b0fefe335586bb2f3bfb4753d422f62aad2bb42e95d39fad78" + "sourceHash": "53798f5add1ae70354be451840cd34c59f0370b93358ee75710395e2288fabcc" } ], "dependencies": [ @@ -482,7 +482,7 @@ "address": "@medieval-kit/glass-phial", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T06:13:59.295Z", + "installedAt": "2026-08-23T06:21:57.379Z", "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-23T06:13:59.300Z", + "installedAt": "2026-08-23T06:21:57.384Z", "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-23T06:13:59.312Z", + "installedAt": "2026-08-23T06:21:57.396Z", "files": [ { "path": "src\\models\\medieval-kit\\wicker-basket\\model.ts", @@ -527,7 +527,7 @@ "address": "@medieval-kit/post-mill", "source": "file:my-registry/dist/registry.json", "version": "workspace", - "installedAt": "2026-08-23T06:13:59.307Z", + "installedAt": "2026-08-23T06:21:57.391Z", "files": [ { "path": "src\\models\\medieval-kit\\post-mill\\model.ts", diff --git a/my-registry/models/coin-pouch/model.ts b/my-registry/models/coin-pouch/model.ts index 8df7bb8..0080cc5 100644 --- a/my-registry/models/coin-pouch/model.ts +++ b/my-registry/models/coin-pouch/model.ts @@ -111,6 +111,7 @@ export function createModel(overrides: Partial = {}) { const coinPieces: BufferGeometry[] = [] // Scatter DIRECTION: all one way, because spilled money flows to one side. const spillAngle = random() * Math.PI * 2 + let previous: { x: number; z: number; top: number } | undefined for (let i = 0; i < count; i += 1) { const t = (i + 0.6) / count // Distance grows with a square root: piled at the pouch, thin further out. @@ -118,11 +119,19 @@ export function createModel(overrides: Partial = {}) { const spread = jitter(random, 0.75) * (0.35 + t * 0.65) const angle = spillAngle + spread const thickness = config.coinRadius * (0.13 + random() * 0.06) - // The overlapping ones: every third coin lands on top of the previous. - const stack = i % 3 === 2 ? thickness * 1.6 : 0 + // Every third coin lands ON the one before it -- which means taking + // that coin's PLACE, not just its height. + // + // The lift was applied while the position stayed independent, so the + // stacking coin was almost never above anything and simply hovered + // about 3 mm off the ground. The support check missed it at its default + // resolution: the voxel is the model's extent over 64, which on a 0.19 m + // pouch is 3 mm -- exactly the size of the gap it had to see. + const stacking = i % 3 === 2 && previous !== undefined + const lower = config.coinRadius * (0.92 + random() * 0.16) const coin = prismGeometry( - config.coinRadius * (0.92 + random() * 0.16), + lower, config.coinRadius * (0.9 + random() * 0.16), thickness, 9, [0, 0, 0], tint('brass', jitter(random, 0.06), 0.5), ) @@ -130,11 +139,26 @@ export function createModel(overrides: Partial = {}) { const tilt = random() < 0.22 ? 0.5 + random() * 0.7 : jitter(random, 0.12) coin.rotateX(tilt) coin.rotateY(random() * Math.PI * 2) - coin.translate( - Math.sin(angle) * distance, - floor + thickness / 2 + stack + Math.sin(tilt) * config.coinRadius * 0.5, - Math.cos(angle) * distance, - ) + // A tilted disc has to rise by half of (its diameter's projection plus + // its own thickness) for its lowest edge to reach the ground, not by + // half its thickness alone. + // The APOTHEM, not the circumradius, and this coin's own radius rather + // than the nominal one. A coin is a nine-sided prism; rolled onto its + // edge it can come to rest on a face rather than a corner, so lifting + // it by the circumradius leaves it standing on nothing. Erring towards + // the smaller radius beds it into the ground instead, which is the + // right way to be wrong. + const rest = (Math.sin(tilt) * lower * 2 * Math.cos(Math.PI / 9) + + thickness * Math.cos(tilt)) / 2 + const x = stacking + ? previous!.x + jitter(random, config.coinRadius * 0.45) + : Math.sin(angle) * distance + const z = stacking + ? previous!.z + jitter(random, config.coinRadius * 0.45) + : Math.cos(angle) * distance + const y = stacking ? previous!.top + rest : floor + rest + coin.translate(x, y, z) + previous = { x, z, top: y + rest * 0.55 } coinPieces.push(coin) } diff --git a/my-registry/models/log-pile/model.ts b/my-registry/models/log-pile/model.ts index 16fc458..3de89df 100644 --- a/my-registry/models/log-pile/model.ts +++ b/my-registry/models/log-pile/model.ts @@ -162,8 +162,24 @@ export function createModel(overrides: Partial = {}) { capBottom: false, }) const grain = endTint() - const capA = headGeometry(profile.at(-1)!.radius, length / 2, 7, 'up', grain, 3, 0.07) - const capB = headGeometry(profile[0]!.radius, -length / 2, 7, 'down', grain, 3, 0.07) + // The sawn end stands a shade PROUD of the bark, and it has to. + // + // Cut to exactly the body's end radius, the disc and the lathe's open + // rim meet along a seam of no width at all: they touch and never + // overlap. Raising the support check's resolution showed that up at + // once -- the ends came away from the logs they belong to, because + // there was never anything joining them, only two edges in the same + // place. Three percent of the radius is two millimetres here, which + // nobody will see, and it is true of a real log anyway: bark wears + // back from a cut face. + // Set a little INSIDE the end as well as wider than it, so the rim + // passes through the wall rather than sitting level with its edge. + // Widening alone left one cap in five still meeting the body edge to + // edge, which is a joint only in the sense that two things are in the + // same place. + const seat = length * 0.02 + const capA = headGeometry(profile.at(-1)!.radius * 1.03, length / 2 - seat, 7, 'up', grain, 3, 0.07) + const capB = headGeometry(profile[0]!.radius * 1.03, -length / 2 + seat, 7, 'down', grain, 3, 0.07) // Each log is rolled randomly about its own axis: with every facet at // the same angle the pile looks mechanical, and on top of that diff --git a/my-registry/models/wooden-bench/model.ts b/my-registry/models/wooden-bench/model.ts index 103a871..bea13b4 100644 --- a/my-registry/models/wooden-bench/model.ts +++ b/my-registry/models/wooden-bench/model.ts @@ -136,15 +136,27 @@ export function createModel(overrides: Partial = {}) { )) } - // 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. + // Tenon: the end of the leg running THROUGH the seat and showing on + // top of it as a panel of end grain. It is the most recognisable + // detail of a medieval bench -- and it is nearly FLUSH. + // + // At 1.9 seat thicknesses it stood 42 mm proud of the seat: a block of + // oak the size of a thumb sticking straight up out of the surface you + // are meant to sit on. A real through-tenon is wedged and then planed + // back, so what shows is the grain and a hairline of shoulder, not a + // peg. Three millimetres proud, ten millimetres housed below. + const proud = seatThickness * 0.05 + const housed = seatThickness * 0.16 legPieces.push(chamferedBoxGeometry( [legWidth * 0.34, timber * 0.85], [legWidth * 0.32, timber * 0.8], - seatThickness * 1.9, + seatThickness + proud + housed, timber * 0.16, - [side * legX, seatBottom + seatThickness * 0.75, jitter(random, timber * 0.1)], + [ + side * legX, + seatBottom + (seatThickness + proud - housed) / 2, + jitter(random, timber * 0.1), + ], tint('oak', 0.09), )) } diff --git a/scripts/verify-model.ts b/scripts/verify-model.ts index e62fcb8..ee9711c 100644 --- a/scripts/verify-model.ts +++ b/scripts/verify-model.ts @@ -449,7 +449,14 @@ for (const testCase of CASES) { // rung length assumed, and the basket's fruit hung level with the rim of a // basket deep enough to swallow it. { - const report = findFloating(model.root as never, { resolution: 64 }) + // 112, not 64. + // + // The voxel is the model's own extent divided by this, so on a 0.19 m coin + // pouch 64 gives a 3 mm voxel -- and a coin hovering 3 mm off the ground + // was bridged by it and passed. Someone looking at the model saw the gap + // immediately. A check that is coarser than the defect it exists to find + // is worth very little, and the cost of halving the voxel is seconds. + const report = findFloating(model.root as never, { resolution: 112 }) const detail = report.floating .map((piece) => `${piece.parts.join('+')} @${piece.clearance}m`) .join(', ') diff --git a/src/models/medieval-kit/coin-pouch/model.ts b/src/models/medieval-kit/coin-pouch/model.ts index 8df7bb8..0080cc5 100644 --- a/src/models/medieval-kit/coin-pouch/model.ts +++ b/src/models/medieval-kit/coin-pouch/model.ts @@ -111,6 +111,7 @@ export function createModel(overrides: Partial = {}) { const coinPieces: BufferGeometry[] = [] // Scatter DIRECTION: all one way, because spilled money flows to one side. const spillAngle = random() * Math.PI * 2 + let previous: { x: number; z: number; top: number } | undefined for (let i = 0; i < count; i += 1) { const t = (i + 0.6) / count // Distance grows with a square root: piled at the pouch, thin further out. @@ -118,11 +119,19 @@ export function createModel(overrides: Partial = {}) { const spread = jitter(random, 0.75) * (0.35 + t * 0.65) const angle = spillAngle + spread const thickness = config.coinRadius * (0.13 + random() * 0.06) - // The overlapping ones: every third coin lands on top of the previous. - const stack = i % 3 === 2 ? thickness * 1.6 : 0 + // Every third coin lands ON the one before it -- which means taking + // that coin's PLACE, not just its height. + // + // The lift was applied while the position stayed independent, so the + // stacking coin was almost never above anything and simply hovered + // about 3 mm off the ground. The support check missed it at its default + // resolution: the voxel is the model's extent over 64, which on a 0.19 m + // pouch is 3 mm -- exactly the size of the gap it had to see. + const stacking = i % 3 === 2 && previous !== undefined + const lower = config.coinRadius * (0.92 + random() * 0.16) const coin = prismGeometry( - config.coinRadius * (0.92 + random() * 0.16), + lower, config.coinRadius * (0.9 + random() * 0.16), thickness, 9, [0, 0, 0], tint('brass', jitter(random, 0.06), 0.5), ) @@ -130,11 +139,26 @@ export function createModel(overrides: Partial = {}) { const tilt = random() < 0.22 ? 0.5 + random() * 0.7 : jitter(random, 0.12) coin.rotateX(tilt) coin.rotateY(random() * Math.PI * 2) - coin.translate( - Math.sin(angle) * distance, - floor + thickness / 2 + stack + Math.sin(tilt) * config.coinRadius * 0.5, - Math.cos(angle) * distance, - ) + // A tilted disc has to rise by half of (its diameter's projection plus + // its own thickness) for its lowest edge to reach the ground, not by + // half its thickness alone. + // The APOTHEM, not the circumradius, and this coin's own radius rather + // than the nominal one. A coin is a nine-sided prism; rolled onto its + // edge it can come to rest on a face rather than a corner, so lifting + // it by the circumradius leaves it standing on nothing. Erring towards + // the smaller radius beds it into the ground instead, which is the + // right way to be wrong. + const rest = (Math.sin(tilt) * lower * 2 * Math.cos(Math.PI / 9) + + thickness * Math.cos(tilt)) / 2 + const x = stacking + ? previous!.x + jitter(random, config.coinRadius * 0.45) + : Math.sin(angle) * distance + const z = stacking + ? previous!.z + jitter(random, config.coinRadius * 0.45) + : Math.cos(angle) * distance + const y = stacking ? previous!.top + rest : floor + rest + coin.translate(x, y, z) + previous = { x, z, top: y + rest * 0.55 } coinPieces.push(coin) } diff --git a/src/models/medieval-kit/log-pile/model.ts b/src/models/medieval-kit/log-pile/model.ts index 16fc458..3de89df 100644 --- a/src/models/medieval-kit/log-pile/model.ts +++ b/src/models/medieval-kit/log-pile/model.ts @@ -162,8 +162,24 @@ export function createModel(overrides: Partial = {}) { capBottom: false, }) const grain = endTint() - const capA = headGeometry(profile.at(-1)!.radius, length / 2, 7, 'up', grain, 3, 0.07) - const capB = headGeometry(profile[0]!.radius, -length / 2, 7, 'down', grain, 3, 0.07) + // The sawn end stands a shade PROUD of the bark, and it has to. + // + // Cut to exactly the body's end radius, the disc and the lathe's open + // rim meet along a seam of no width at all: they touch and never + // overlap. Raising the support check's resolution showed that up at + // once -- the ends came away from the logs they belong to, because + // there was never anything joining them, only two edges in the same + // place. Three percent of the radius is two millimetres here, which + // nobody will see, and it is true of a real log anyway: bark wears + // back from a cut face. + // Set a little INSIDE the end as well as wider than it, so the rim + // passes through the wall rather than sitting level with its edge. + // Widening alone left one cap in five still meeting the body edge to + // edge, which is a joint only in the sense that two things are in the + // same place. + const seat = length * 0.02 + const capA = headGeometry(profile.at(-1)!.radius * 1.03, length / 2 - seat, 7, 'up', grain, 3, 0.07) + const capB = headGeometry(profile[0]!.radius * 1.03, -length / 2 + seat, 7, 'down', grain, 3, 0.07) // Each log is rolled randomly about its own axis: with every facet at // the same angle the pile looks mechanical, and on top of that diff --git a/src/models/medieval-kit/wooden-bench/model.ts b/src/models/medieval-kit/wooden-bench/model.ts index 103a871..bea13b4 100644 --- a/src/models/medieval-kit/wooden-bench/model.ts +++ b/src/models/medieval-kit/wooden-bench/model.ts @@ -136,15 +136,27 @@ export function createModel(overrides: Partial = {}) { )) } - // 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. + // Tenon: the end of the leg running THROUGH the seat and showing on + // top of it as a panel of end grain. It is the most recognisable + // detail of a medieval bench -- and it is nearly FLUSH. + // + // At 1.9 seat thicknesses it stood 42 mm proud of the seat: a block of + // oak the size of a thumb sticking straight up out of the surface you + // are meant to sit on. A real through-tenon is wedged and then planed + // back, so what shows is the grain and a hairline of shoulder, not a + // peg. Three millimetres proud, ten millimetres housed below. + const proud = seatThickness * 0.05 + const housed = seatThickness * 0.16 legPieces.push(chamferedBoxGeometry( [legWidth * 0.34, timber * 0.85], [legWidth * 0.32, timber * 0.8], - seatThickness * 1.9, + seatThickness + proud + housed, timber * 0.16, - [side * legX, seatBottom + seatThickness * 0.75, jitter(random, timber * 0.1)], + [ + side * legX, + seatBottom + (seatThickness + proud - housed) / 2, + jitter(random, timber * 0.1), + ], tint('oak', 0.09), )) }