Lay the mill's windshaft along its own axis, and band it
Opening the viewer showed the mill reporting one material while declaring two. It declared an `iron` slot and used it nowhere: the windshaft's own comment called it iron-banded and then painted it oak like everything else. Four sails pull on one shaft from four directions and what holds the whips to it is iron strapping, so the bands are real and now exist. Adding them exposed something that had been wrong since the model was written. `taperedBoxGeometry` takes its third argument as a Y height, so the shaft -- written with no rotation and only a z offset -- was a short vertical post standing inside the buck rather than a shaft projecting from the front gable. Buried in the body it survived every render unseen. The bands, built the same way, came out coaxial with it, and the z-fight check reported that immediately. Two smaller things settled on the way. The bands first went into `trestle`, where the support check found them hanging at the model's origin: they are authored around the hub, so they only make sense in the frame of the part whose origin is the hub. They belong to `sails` anyway, since the shaft turns with them -- in a real mill the sails are keyed to it. And the four sails converged on the hub in perfect symmetry with their faces meeting there. The fix is how the sails are actually carried: TWO stocks pass through the shaft at right angles, one behind the other, each carrying a sail at both ends. Four timbers cannot occupy one crossing, and the check was right to say so. Worth recording how the shaft was found, because reasoning about it failed three times. Rebuilding the four sails alone, in every combination of whip, rail and bars, gave zero overlaps -- which ruled the sails out and left only what else was in that part. 28 models, 20 547 triangles, all checks pass, 0 floating cases, GLB round-trip clean, Conformant, build clean.
This commit is contained in:
parent
7e4189eea3
commit
67dde42642
3 changed files with 129 additions and 39 deletions
|
|
@ -67,7 +67,7 @@
|
|||
"address": "@medieval-kit/wooden-barrel",
|
||||
"source": "file:my-registry/dist/registry.json",
|
||||
"version": "workspace",
|
||||
"installedAt": "2026-08-23T05:59:27.359Z",
|
||||
"installedAt": "2026-08-23T06:13:59.314Z",
|
||||
"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-23T05:59:27.330Z",
|
||||
"installedAt": "2026-08-23T06:13:59.288Z",
|
||||
"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-23T05:59:27.366Z",
|
||||
"installedAt": "2026-08-23T06:13:59.319Z",
|
||||
"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-23T05:59:27.375Z",
|
||||
"installedAt": "2026-08-23T06:13:59.327Z",
|
||||
"files": [],
|
||||
"dependencies": []
|
||||
},
|
||||
|
|
@ -152,7 +152,7 @@
|
|||
"address": "@medieval-kit/iron-anvil",
|
||||
"source": "file:my-registry/dist/registry.json",
|
||||
"version": "workspace",
|
||||
"installedAt": "2026-08-23T05:59:27.340Z",
|
||||
"installedAt": "2026-08-23T06:13:59.297Z",
|
||||
"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-23T05:59:27.363Z",
|
||||
"installedAt": "2026-08-23T06:13:59.316Z",
|
||||
"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-23T05:59:27.367Z",
|
||||
"installedAt": "2026-08-23T06:13:59.321Z",
|
||||
"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-23T05:59:27.369Z",
|
||||
"installedAt": "2026-08-23T06:13:59.322Z",
|
||||
"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-23T05:59:27.370Z",
|
||||
"installedAt": "2026-08-23T06:13:59.324Z",
|
||||
"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-23T05:59:27.371Z",
|
||||
"installedAt": "2026-08-23T06:13:59.325Z",
|
||||
"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-23T05:59:27.373Z",
|
||||
"installedAt": "2026-08-23T06:13:59.326Z",
|
||||
"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-23T05:59:27.375Z",
|
||||
"installedAt": "2026-08-23T06:13:59.327Z",
|
||||
"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-23T05:59:27.334Z",
|
||||
"installedAt": "2026-08-23T06:13:59.292Z",
|
||||
"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-23T05:59:27.346Z",
|
||||
"installedAt": "2026-08-23T06:13:59.303Z",
|
||||
"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-23T05:59:27.356Z",
|
||||
"installedAt": "2026-08-23T06:13:59.311Z",
|
||||
"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-23T05:59:27.364Z",
|
||||
"installedAt": "2026-08-23T06:13:59.318Z",
|
||||
"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-23T05:59:27.339Z",
|
||||
"installedAt": "2026-08-23T06:13:59.296Z",
|
||||
"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-23T05:59:27.349Z",
|
||||
"installedAt": "2026-08-23T06:13:59.305Z",
|
||||
"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-23T05:59:27.361Z",
|
||||
"installedAt": "2026-08-23T06:13:59.315Z",
|
||||
"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-23T05:59:27.345Z",
|
||||
"installedAt": "2026-08-23T06:13:59.301Z",
|
||||
"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-23T05:59:27.347Z",
|
||||
"installedAt": "2026-08-23T06:13:59.304Z",
|
||||
"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-23T05:59:27.353Z",
|
||||
"installedAt": "2026-08-23T06:13:59.308Z",
|
||||
"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-23T05:59:27.332Z",
|
||||
"installedAt": "2026-08-23T06:13:59.291Z",
|
||||
"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-23T05:59:27.342Z",
|
||||
"installedAt": "2026-08-23T06:13:59.299Z",
|
||||
"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-23T05:59:27.354Z",
|
||||
"installedAt": "2026-08-23T06:13:59.310Z",
|
||||
"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-23T05:59:27.335Z",
|
||||
"installedAt": "2026-08-23T06:13:59.294Z",
|
||||
"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-23T05:59:27.337Z",
|
||||
"installedAt": "2026-08-23T06:13:59.295Z",
|
||||
"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-23T05:59:27.343Z",
|
||||
"installedAt": "2026-08-23T06:13:59.300Z",
|
||||
"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-23T05:59:27.358Z",
|
||||
"installedAt": "2026-08-23T06:13:59.312Z",
|
||||
"files": [
|
||||
{
|
||||
"path": "src\\models\\medieval-kit\\wicker-basket\\model.ts",
|
||||
|
|
@ -527,11 +527,11 @@
|
|||
"address": "@medieval-kit/post-mill",
|
||||
"source": "file:my-registry/dist/registry.json",
|
||||
"version": "workspace",
|
||||
"installedAt": "2026-08-23T05:59:27.351Z",
|
||||
"installedAt": "2026-08-23T06:13:59.307Z",
|
||||
"files": [
|
||||
{
|
||||
"path": "src\\models\\medieval-kit\\post-mill\\model.ts",
|
||||
"sourceHash": "f7404c896166861bf20d2dd758c65eaf0f1c20c506cfafdc092612172c0110fd"
|
||||
"sourceHash": "924d4cbbc2b86aea9ecbd3afaabbb2e0545b3247922e61af1959517458b1a8c2"
|
||||
}
|
||||
],
|
||||
"dependencies": [
|
||||
|
|
|
|||
|
|
@ -257,14 +257,42 @@ export function createModel(overrides: Partial<PostMillConfig> = {}) {
|
|||
const bars = Math.max(2, Math.round(config.sailBars))
|
||||
|
||||
const rig: BufferGeometry[] = []
|
||||
// Windshaft: iron-banded oak, poking out of the gable.
|
||||
rig.push(taperedBoxGeometry(
|
||||
const ironWork: BufferGeometry[] = []
|
||||
// Windshaft: iron-banded oak, poking out of the gable ALONG Z.
|
||||
//
|
||||
// `taperedBoxGeometry` takes its third argument as a Y height, so written
|
||||
// without a rotation this was a short vertical post standing inside the
|
||||
// buck rather than a shaft projecting from the front of it. Hidden inside
|
||||
// the body it went unseen through every render; it only surfaced when the
|
||||
// iron bands were added and turned out to be coaxial with it, which the
|
||||
// z-fight check reported at once.
|
||||
const shaft = taperedBoxGeometry(
|
||||
[hubRadius * 2.1, hubRadius * 2.1],
|
||||
[hubRadius * 1.5, hubRadius * 1.5],
|
||||
H * 0.10,
|
||||
[0, 0, H * 0.03],
|
||||
[0, 0, 0],
|
||||
tint('oak', -0.04),
|
||||
))
|
||||
)
|
||||
shaft.rotateX(Math.PI / 2)
|
||||
shaft.translate(0, 0, H * 0.03)
|
||||
rig.push(shaft)
|
||||
// The bands themselves, and they are not decoration. Four sails pull on
|
||||
// one shaft from four directions; what holds the whips to it is iron
|
||||
// strapping, and this model declared an `iron` slot while using it
|
||||
// nowhere -- the shaft was described in the comment above as iron-banded
|
||||
// and then painted oak like everything else.
|
||||
for (const at of [0.012, 0.055]) {
|
||||
const band = taperedBoxGeometry(
|
||||
[hubRadius * 2.4, hubRadius * 2.4],
|
||||
[hubRadius * 2.3, hubRadius * 2.3],
|
||||
H * 0.014,
|
||||
[0, 0, 0],
|
||||
tint('iron', 0.02, 0.7),
|
||||
)
|
||||
band.rotateX(Math.PI / 2)
|
||||
band.translate(0, 0, H * at)
|
||||
ironWork.push(band)
|
||||
}
|
||||
|
||||
for (let i = 0; i < 4; i += 1) {
|
||||
const a = (i / 4) * Math.PI * 2
|
||||
|
|
@ -299,10 +327,21 @@ export function createModel(overrides: Partial<PostMillConfig> = {}) {
|
|||
// presents a face to the wind. Without it the four read as a flat cross.
|
||||
merged.rotateY(0.18)
|
||||
merged.rotateZ(a)
|
||||
// Opposite pairs sit at different depths along the shaft.
|
||||
//
|
||||
// This is how the sails are actually carried: TWO stocks pass through
|
||||
// the windshaft at right angles to each other, one behind the other,
|
||||
// and each stock carries a sail at both of its ends. Built all in one
|
||||
// plane the four converge on the hub in perfect symmetry, and the
|
||||
// z-fight check found their faces meeting there -- correctly, because
|
||||
// four timbers cannot occupy one crossing.
|
||||
merged.translate(0, 0, (i % 2 === 0 ? -1 : 1) * barT * 2.1)
|
||||
rig.push(merged)
|
||||
}
|
||||
|
||||
const sails = mergeColoured(rig)
|
||||
const shaftBands = mergeColoured(ironWork)
|
||||
shaftBands.rotateX(-shaftTilt)
|
||||
// The rig is authored around the hub and the part's origin goes there, so
|
||||
// `setTurning` spins it about the shaft instead of about the model.
|
||||
sails.rotateX(-shaftTilt)
|
||||
|
|
@ -399,6 +438,12 @@ export function createModel(overrides: Partial<PostMillConfig> = {}) {
|
|||
sails: {
|
||||
slot: 'oak' as const,
|
||||
geometry: sails,
|
||||
// The bands belong here, not with the trestle. They are authored
|
||||
// around the hub, so in any other part's frame they land at the
|
||||
// model's origin and hang in the air -- which is where the support
|
||||
// check found them. They also turn with the shaft, because in a real
|
||||
// mill the shaft is what the sails are keyed to.
|
||||
extras: [{ slot: 'iron' as const, geometry: shaftBands }],
|
||||
origin: [0, hubY, hubZ] as const,
|
||||
},
|
||||
ladder: { slot: 'oak' as const, geometry: mergeColoured(steps) },
|
||||
|
|
|
|||
|
|
@ -257,14 +257,42 @@ export function createModel(overrides: Partial<PostMillConfig> = {}) {
|
|||
const bars = Math.max(2, Math.round(config.sailBars))
|
||||
|
||||
const rig: BufferGeometry[] = []
|
||||
// Windshaft: iron-banded oak, poking out of the gable.
|
||||
rig.push(taperedBoxGeometry(
|
||||
const ironWork: BufferGeometry[] = []
|
||||
// Windshaft: iron-banded oak, poking out of the gable ALONG Z.
|
||||
//
|
||||
// `taperedBoxGeometry` takes its third argument as a Y height, so written
|
||||
// without a rotation this was a short vertical post standing inside the
|
||||
// buck rather than a shaft projecting from the front of it. Hidden inside
|
||||
// the body it went unseen through every render; it only surfaced when the
|
||||
// iron bands were added and turned out to be coaxial with it, which the
|
||||
// z-fight check reported at once.
|
||||
const shaft = taperedBoxGeometry(
|
||||
[hubRadius * 2.1, hubRadius * 2.1],
|
||||
[hubRadius * 1.5, hubRadius * 1.5],
|
||||
H * 0.10,
|
||||
[0, 0, H * 0.03],
|
||||
[0, 0, 0],
|
||||
tint('oak', -0.04),
|
||||
))
|
||||
)
|
||||
shaft.rotateX(Math.PI / 2)
|
||||
shaft.translate(0, 0, H * 0.03)
|
||||
rig.push(shaft)
|
||||
// The bands themselves, and they are not decoration. Four sails pull on
|
||||
// one shaft from four directions; what holds the whips to it is iron
|
||||
// strapping, and this model declared an `iron` slot while using it
|
||||
// nowhere -- the shaft was described in the comment above as iron-banded
|
||||
// and then painted oak like everything else.
|
||||
for (const at of [0.012, 0.055]) {
|
||||
const band = taperedBoxGeometry(
|
||||
[hubRadius * 2.4, hubRadius * 2.4],
|
||||
[hubRadius * 2.3, hubRadius * 2.3],
|
||||
H * 0.014,
|
||||
[0, 0, 0],
|
||||
tint('iron', 0.02, 0.7),
|
||||
)
|
||||
band.rotateX(Math.PI / 2)
|
||||
band.translate(0, 0, H * at)
|
||||
ironWork.push(band)
|
||||
}
|
||||
|
||||
for (let i = 0; i < 4; i += 1) {
|
||||
const a = (i / 4) * Math.PI * 2
|
||||
|
|
@ -299,10 +327,21 @@ export function createModel(overrides: Partial<PostMillConfig> = {}) {
|
|||
// presents a face to the wind. Without it the four read as a flat cross.
|
||||
merged.rotateY(0.18)
|
||||
merged.rotateZ(a)
|
||||
// Opposite pairs sit at different depths along the shaft.
|
||||
//
|
||||
// This is how the sails are actually carried: TWO stocks pass through
|
||||
// the windshaft at right angles to each other, one behind the other,
|
||||
// and each stock carries a sail at both of its ends. Built all in one
|
||||
// plane the four converge on the hub in perfect symmetry, and the
|
||||
// z-fight check found their faces meeting there -- correctly, because
|
||||
// four timbers cannot occupy one crossing.
|
||||
merged.translate(0, 0, (i % 2 === 0 ? -1 : 1) * barT * 2.1)
|
||||
rig.push(merged)
|
||||
}
|
||||
|
||||
const sails = mergeColoured(rig)
|
||||
const shaftBands = mergeColoured(ironWork)
|
||||
shaftBands.rotateX(-shaftTilt)
|
||||
// The rig is authored around the hub and the part's origin goes there, so
|
||||
// `setTurning` spins it about the shaft instead of about the model.
|
||||
sails.rotateX(-shaftTilt)
|
||||
|
|
@ -399,6 +438,12 @@ export function createModel(overrides: Partial<PostMillConfig> = {}) {
|
|||
sails: {
|
||||
slot: 'oak' as const,
|
||||
geometry: sails,
|
||||
// The bands belong here, not with the trestle. They are authored
|
||||
// around the hub, so in any other part's frame they land at the
|
||||
// model's origin and hang in the air -- which is where the support
|
||||
// check found them. They also turn with the shaft, because in a real
|
||||
// mill the shaft is what the sails are keyed to.
|
||||
extras: [{ slot: 'iron' as const, geometry: shaftBands }],
|
||||
origin: [0, hubY, hubZ] as const,
|
||||
},
|
||||
ladder: { slot: 'oak' as const, geometry: mergeColoured(steps) },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue