@floless/app 0.109.4 → 0.110.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/floless-server.cjs
CHANGED
|
@@ -53792,7 +53792,7 @@ function appVersion() {
|
|
|
53792
53792
|
return resolveVersion({
|
|
53793
53793
|
isSea: isSea2(),
|
|
53794
53794
|
sqVersionXml: readSqVersionXml(),
|
|
53795
|
-
define: true ? "0.
|
|
53795
|
+
define: true ? "0.110.0" : void 0,
|
|
53796
53796
|
pkgVersion: readPkgVersion()
|
|
53797
53797
|
});
|
|
53798
53798
|
}
|
|
@@ -53808,7 +53808,7 @@ function resolveChannel(s) {
|
|
|
53808
53808
|
function appChannel() {
|
|
53809
53809
|
return resolveChannel({
|
|
53810
53810
|
isSea: isSea2(),
|
|
53811
|
-
define: true ? "0.
|
|
53811
|
+
define: true ? "0.110.0" : void 0,
|
|
53812
53812
|
// argv[1] is the entry the runtime actually loaded (…/dist/floless-server.cjs), which is what
|
|
53813
53813
|
// carries the npx cache prefix. Absent under the SEA exe, which never reaches the npx branch.
|
|
53814
53814
|
modulePath: process.argv[1]
|
|
@@ -55125,6 +55125,43 @@ function xsectionFor(profile, dims) {
|
|
|
55125
55125
|
}
|
|
55126
55126
|
return rect;
|
|
55127
55127
|
}
|
|
55128
|
+
function oneSidedPly(half, t, s) {
|
|
55129
|
+
if (!plyFitsSection(t, half)) return null;
|
|
55130
|
+
const outer = -s * half;
|
|
55131
|
+
const sideDir = outer >= 0 ? 1 : -1;
|
|
55132
|
+
return { lapN: outer, sideDir, plyFarN: outer + sideDir * -t, ply: t, derived: true };
|
|
55133
|
+
}
|
|
55134
|
+
function plyFitsSection(t, half) {
|
|
55135
|
+
return t > 0 && t < 2 * half;
|
|
55136
|
+
}
|
|
55137
|
+
function bearingFaces(x, uOnN, vOnN, requestedSide) {
|
|
55138
|
+
const side = requestedSide >= 0 ? 1 : -1;
|
|
55139
|
+
const onU = Math.abs(Math.abs(uOnN) - 1) < 1e-9;
|
|
55140
|
+
const onV = Math.abs(Math.abs(vOnN) - 1) < 1e-9;
|
|
55141
|
+
if (!onU && !onV) return null;
|
|
55142
|
+
const sU = uOnN >= 0 ? 1 : -1;
|
|
55143
|
+
const sV = vOnN >= 0 ? 1 : -1;
|
|
55144
|
+
switch (x.shape) {
|
|
55145
|
+
case "i": {
|
|
55146
|
+
if (!onU) return null;
|
|
55147
|
+
if (!plyFitsSection(x.tw, x.bf / 2)) return null;
|
|
55148
|
+
return { lapN: side * x.tw / 2, sideDir: side, plyFarN: -side * x.tw / 2, ply: x.tw, derived: false };
|
|
55149
|
+
}
|
|
55150
|
+
case "channel": {
|
|
55151
|
+
if (!onU) return null;
|
|
55152
|
+
return oneSidedPly(x.bf / 2, x.tw, sU);
|
|
55153
|
+
}
|
|
55154
|
+
case "angle": {
|
|
55155
|
+
return onU ? oneSidedPly(x.b / 2, x.t, sU) : oneSidedPly(x.d / 2, x.t, sV);
|
|
55156
|
+
}
|
|
55157
|
+
// A closed section cannot be through-bolted by this detail — refuse rather than bolt into a void.
|
|
55158
|
+
case "rhs":
|
|
55159
|
+
case "chs":
|
|
55160
|
+
return null;
|
|
55161
|
+
case "rect":
|
|
55162
|
+
return null;
|
|
55163
|
+
}
|
|
55164
|
+
}
|
|
55128
55165
|
|
|
55129
55166
|
// index.ts
|
|
55130
55167
|
var import_node_crypto22 = require("node:crypto");
|
|
@@ -60405,6 +60442,37 @@ function expandBasePlate(joint, col) {
|
|
|
60405
60442
|
function webHalfThk(profile, w) {
|
|
60406
60443
|
return profileKind(profile) === "I" ? Math.min(w * 0.5, Math.max(w * 0.1, 5)) / 2 : 0;
|
|
60407
60444
|
}
|
|
60445
|
+
function sectionAxesOnNormal(rot, atEnd1) {
|
|
60446
|
+
const th = (rot ?? 0) * Math.PI / 180;
|
|
60447
|
+
const round = (n) => Math.abs(n) < 1e-9 ? 0 : Math.abs(Math.abs(n) - 1) < 1e-9 ? Math.sign(n) : n;
|
|
60448
|
+
const flip = atEnd1 ? -1 : 1;
|
|
60449
|
+
return { uOnN: round(-flip * Math.cos(th)), vOnN: round(flip * Math.sin(th)) };
|
|
60450
|
+
}
|
|
60451
|
+
function realWebThk(profile, w) {
|
|
60452
|
+
const x = xsectionFor(profile, { w, d: w });
|
|
60453
|
+
switch (x.shape) {
|
|
60454
|
+
case "i":
|
|
60455
|
+
case "channel":
|
|
60456
|
+
return x.tw;
|
|
60457
|
+
case "angle":
|
|
60458
|
+
case "rhs":
|
|
60459
|
+
return x.t;
|
|
60460
|
+
case "chs":
|
|
60461
|
+
return x.t;
|
|
60462
|
+
case "rect":
|
|
60463
|
+
return webHalfThk(profile, w) * 2;
|
|
60464
|
+
}
|
|
60465
|
+
}
|
|
60466
|
+
function lapFaces(member, requestedSide, atEnd1) {
|
|
60467
|
+
const { uOnN, vOnN } = sectionAxesOnNormal(member.rot, atEnd1);
|
|
60468
|
+
const faces = bearingFaces(xsectionFor(member.profile, member.dims), uOnN, vOnN, requestedSide);
|
|
60469
|
+
if (faces) return faces;
|
|
60470
|
+
if (profileKind(member.profile) === "I" && Math.abs(Math.abs(uOnN) - 1) < 1e-9) {
|
|
60471
|
+
const h = webHalfThk(member.profile, member.dims.w);
|
|
60472
|
+
return { lapN: requestedSide * h, sideDir: requestedSide, plyFarN: -requestedSide * h, ply: 2 * h, derived: false };
|
|
60473
|
+
}
|
|
60474
|
+
return null;
|
|
60475
|
+
}
|
|
60408
60476
|
function distPointSeg(p, a, b) {
|
|
60409
60477
|
const abx = b[0] - a[0], aby = b[1] - a[1], abz = b[2] - a[2];
|
|
60410
60478
|
const apx = p[0] - a[0], apy = p[1] - a[1], apz = p[2] - a[2];
|
|
@@ -60506,10 +60574,11 @@ function expandShearPlate(joint, beam, support, nativeSupport) {
|
|
|
60506
60574
|
const clearance = Math.max(0, num(p, "clearance", 12.7));
|
|
60507
60575
|
const stiffener = p?.["stiffener"] === true;
|
|
60508
60576
|
const height = pos(p, "plateHeight", (rows2 - 1) * pitch + 2 * edge);
|
|
60509
|
-
const twHalf = webHalfThk(beam.profile, beam.dims.w);
|
|
60510
60577
|
const webSide = num(p, "webSide", 1) >= 0 ? 1 : -1;
|
|
60511
|
-
const
|
|
60512
|
-
|
|
60578
|
+
const lap = lapFaces(beam, webSide, atEnd1);
|
|
60579
|
+
if (!lap) return { parts: [], operations: [], viewOperations: [] };
|
|
60580
|
+
const pOff = lap.lapN + lap.sideDir * (thickness / 2);
|
|
60581
|
+
const u0 = support && profileKind(support.profile) === "I" ? realWebThk(support.profile, support.dims.w) / 2 : 0;
|
|
60513
60582
|
const edgeV = Math.min(edge, height * 0.4);
|
|
60514
60583
|
const pV = rows2 > 1 ? Math.min(pitch, Math.max(0, height - 2 * edgeV) / (rows2 - 1)) : 0;
|
|
60515
60584
|
const vOffs = Array.from({ length: rows2 }, (_, i) => (i - (rows2 - 1) / 2) * pV);
|
|
@@ -60520,16 +60589,16 @@ function expandShearPlate(joint, beam, support, nativeSupport) {
|
|
|
60520
60589
|
const pU = cols > 1 ? Math.min(colPitch, (regHi - regLo) / (cols - 1)) : 0;
|
|
60521
60590
|
const uOffs = Array.from({ length: cols }, (_, j) => cU + (j - (cols - 1) / 2) * pU);
|
|
60522
60591
|
const nutH = 0.8 * boltDia, nutAF = 1.6 * boltDia;
|
|
60523
|
-
const plateOuterN =
|
|
60524
|
-
const webFarN =
|
|
60525
|
-
const headTipN = plateOuterN +
|
|
60526
|
-
const nutTipN = webFarN -
|
|
60592
|
+
const plateOuterN = lap.lapN + lap.sideDir * thickness;
|
|
60593
|
+
const webFarN = lap.plyFarN;
|
|
60594
|
+
const headTipN = plateOuterN + lap.sideDir * nutH;
|
|
60595
|
+
const nutTipN = webFarN - lap.sideDir * nutH;
|
|
60527
60596
|
const grade = p?.["boltGrade"] === "A490" ? "A490" : "A325";
|
|
60528
60597
|
const plateMaterial = authoredText(p, "plateMaterial");
|
|
60529
60598
|
const fastenerMaterial = authoredText(p, "fastenerMaterial");
|
|
60530
60599
|
const standard = text(p, "fastenerStandard", `${grade}N`);
|
|
60531
60600
|
const boltType = p?.["boltType"] === "site" ? "site" : "shop";
|
|
60532
|
-
const grip = thickness +
|
|
60601
|
+
const grip = thickness + lap.ply;
|
|
60533
60602
|
const boltLen = aiscBoltLength(grip, boltDia);
|
|
60534
60603
|
const callout = `\u2300${Math.round(boltDia)} ${grade} \xD7 ${Math.round(boltLen)}`;
|
|
60535
60604
|
const holes = [];
|
|
@@ -60542,7 +60611,10 @@ function expandShearPlate(joint, beam, support, nativeSupport) {
|
|
|
60542
60611
|
holes.push({ id: `${jid}:plate-hole${k}`, u: u - width / 2, v, d: boltDia + holeClr });
|
|
60543
60612
|
bolts.push(
|
|
60544
60613
|
// the shank = the AISC bolt LENGTH, from under the head (plate outer face) into the connection
|
|
60545
|
-
|
|
60614
|
+
// The shank runs from under the head INTO the connection — i.e. AGAINST the side the plate grows
|
|
60615
|
+
// on. It must follow the derived side, not the requested one: on a one-sided section those differ,
|
|
60616
|
+
// and using the request sent the bolt out into open air instead of through the plate and the ply.
|
|
60617
|
+
{ id: `${jid}:bolt${k}`, group: "bolt", kind: "rod", nativeKind: "bolt-shank", from: P(u0 + u, v, plateOuterN), to: P(u0 + u, v, plateOuterN - lap.sideDir * boltLen), d: boltDia, material: fastenerMaterial, fastener: { role: "shear-bolt" }, meta: { label: `Bolt ${callout}` } },
|
|
60546
60618
|
{ id: `${jid}:head${k}`, group: "nut", kind: "nut", nativeKind: "bolt-head", from: P(u0 + u, v, plateOuterN), to: P(u0 + u, v, headTipN), acrossFlats: nutAF, material: fastenerMaterial, fastener: { role: "bolt-head" }, meta: { label: `Bolt head ${callout}` } },
|
|
60547
60619
|
{ id: `${jid}:nut${k}`, group: "nut", kind: "nut", nativeKind: "nut", from: P(u0 + u, v, webFarN), to: P(u0 + u, v, nutTipN), acrossFlats: nutAF, material: fastenerMaterial, fastener: { role: "nut" }, meta: { label: `Bolt nut ${callout}` } }
|
|
60548
60620
|
);
|
|
@@ -60579,8 +60651,8 @@ function expandShearPlate(joint, beam, support, nativeSupport) {
|
|
|
60579
60651
|
meta: { label: `Shear plate ${Math.round(width)}\xD7${Math.round(height)}\xD7${Math.round(thickness)}` }
|
|
60580
60652
|
};
|
|
60581
60653
|
const weldSide = p?.["weldSide"] === "near" || p?.["weldSide"] === "far" ? p["weldSide"] : "both";
|
|
60582
|
-
const nOuter = pOff +
|
|
60583
|
-
const nInner = pOff -
|
|
60654
|
+
const nOuter = pOff + lap.sideDir * thickness / 2;
|
|
60655
|
+
const nInner = pOff - lap.sideDir * thickness / 2;
|
|
60584
60656
|
const faceWeld = (suffix, n) => ({
|
|
60585
60657
|
id: `${joint.id}:${suffix}`,
|
|
60586
60658
|
group: "weld",
|
|
@@ -60598,7 +60670,7 @@ function expandShearPlate(joint, beam, support, nativeSupport) {
|
|
|
60598
60670
|
if (stiffener) {
|
|
60599
60671
|
if (support && support.role === "beam" && !support.isBrace && finite3(support.from) && finite3(support.to) && support.dims && support.dims.d > 0 && support.dims.w > 0) {
|
|
60600
60672
|
const supPosOff = typeof support.posOffset === "number" && isFinite(support.posOffset) ? support.posOffset : 0;
|
|
60601
|
-
const twGirder =
|
|
60673
|
+
const twGirder = realWebThk(support.profile, support.dims.w);
|
|
60602
60674
|
const stiffH = support.dims.d * 0.9;
|
|
60603
60675
|
const stiffW = Math.max(support.dims.w / 2 - twGirder / 2, thickness * 2);
|
|
60604
60676
|
const girderCentZ = endPt[2] + supPosOff;
|
|
@@ -60608,7 +60680,7 @@ function expandShearPlate(joint, beam, support, nativeSupport) {
|
|
|
60608
60680
|
const wfx = endPt[0] - uDir[0] * (twGirder / 2), wfy = endPt[1] - uDir[1] * (twGirder / 2);
|
|
60609
60681
|
parts.push({ id: `${joint.id}:stiffweld`, group: "weld", kind: "weld", closed: false, path: [[wfx, wfy, girderCentZ - stiffH / 2], [wfx, wfy, girderCentZ + stiffH / 2]], leg: weldLeg, meta: { label: `Fillet ${weldLeg}` } });
|
|
60610
60682
|
} else {
|
|
60611
|
-
const oppOff = -
|
|
60683
|
+
const oppOff = lap.plyFarN - lap.sideDir * (thickness / 2);
|
|
60612
60684
|
parts.push({ id: `${joint.id}:stiff`, group: "stiffener", kind: "plate", center: P(u0 + width / 2, 0, oppOff), uDir, vDir, width, depth: height, thickness, holes: [], material: plateMaterial, meta: { label: `Stiffener ${Math.round(width)}\xD7${Math.round(height)}\xD7${Math.round(thickness)}` } });
|
|
60613
60685
|
parts.push({ id: `${joint.id}:stiffweld`, group: "weld", kind: "weld", closed: false, path: [P(u0, -height / 2, oppOff), P(u0, height / 2, oppOff)], leg: weldLeg, meta: { label: `Fillet ${weldLeg}` } });
|
|
60614
60686
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: floless-app-steel-model
|
|
3
3
|
description: The front-door guide for turning a structural steel drawing SET into an editable model in floless.app — the "Steel Model" flow. This skill orchestrates the whole pipeline — set up a project folder, learn the set into plain-English knowledge files, provision the right AWARE agents (region-specific steel detailer plus any bake targets), confirm which sheets are plans / elevations / details, then hand off to the Steel Takeoff reader to read each plan into a steel.takeoff/v1 contract — with explicit confirm gates between stages. Use it when a user wants to model steel from a drawing SET or asks things like "model this steel job from the drawings", "take off this whole set", "start a steel takeoff project", "turn these structural drawings into a model", "I have a PDF set of framing plans", or "/floless-app-steel-model". It is re-runnable — resume at any stage. For a single already-isolated framing plan the Steel Takeoff reader (floless-app-steel-takeoff) can be used directly; this guide is for driving a real job end to end.
|
|
4
4
|
metadata:
|
|
5
|
-
version: 0.
|
|
5
|
+
version: 0.3.0
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# Steel Model — guide a steel drawing set into an editable model
|
|
@@ -162,7 +162,7 @@ the user at the editor:
|
|
|
162
162
|
callouts, finish requirements). Carry them verbatim; they are not decoration, and floless surfaces
|
|
163
163
|
them on every end that uses the detail.
|
|
164
164
|
|
|
165
|
-
A row with a `recipe` is what lets a member end carrying that callout be **built
|
|
165
|
+
A row with a `recipe` is what lets a member end carrying that callout be **built**. A row
|
|
166
166
|
read from the drawing but whose schedule sheet was missing must be left WITHOUT a schedule and said so —
|
|
167
167
|
an invented size band is worse than an end that honestly refuses to build.
|
|
168
168
|
- **Bind callouts to member ends where the drawing shows it.** A detail bubble on a plan has a leader
|
|
@@ -182,6 +182,117 @@ to `~/.floless/exports/steel-model/steel-model-bom.{csv,xlsx}` automatically eve
|
|
|
182
182
|
is Run** (two `file/write` export steps at the end of the chain). Tell the user they can **freeze**
|
|
183
183
|
those export steps (right-click → Freeze) once the BOM is right, so a re-Run won't overwrite the files.
|
|
184
184
|
|
|
185
|
+
### 7. Match each detail to a connection TYPE that models it — or refuse
|
|
186
|
+
|
|
187
|
+
**Before building anything from a detail, decide what KIND of connection it is, and confirm the tool you
|
|
188
|
+
are about to use actually models that kind.** A detail forced into the wrong type produces geometry that is
|
|
189
|
+
dimensionally perfect and physically nonsense — and it renders, and it *exports*.
|
|
190
|
+
|
|
191
|
+
The tell is never in the numbers. It is in the **topology**: what is welded to what, what laps what, which
|
|
192
|
+
member is supported and which is supporting. Ask, per detail:
|
|
193
|
+
|
|
194
|
+
- **What does the plate attach to, and where on it?** Welded to a supporting member's *web* is a different
|
|
195
|
+
connection from welded to its *face* — the two anchor points can be tens of millimetres apart, and a tool
|
|
196
|
+
built for one will place the plate nowhere near the other.
|
|
197
|
+
- **How many plies, and on which sides?** One plate lapping a member is not the same connection as a plate
|
|
198
|
+
**each side** with the member between them in double shear — different part count, different bolt grip.
|
|
199
|
+
- **Which member gets cut, and back to what?** A member meeting a wide face needs far more setback than one
|
|
200
|
+
meeting a thin web, and the amount grows with the skew of the crossing.
|
|
201
|
+
- **What does the detail dimension that the type cannot hold?** A work-point drop, a plate that follows the
|
|
202
|
+
supporting member's depth, a fabrication note. Anything unexpressible must be recorded, not dropped.
|
|
203
|
+
|
|
204
|
+
**If no available type matches, STOP and say so.** An honest "this connection type does not exist yet" is
|
|
205
|
+
worth more than an approximation: a connection attached to nothing looks plausible in the model, passes
|
|
206
|
+
every dimensional check, and is worse than an absent one because nobody knows to question it.
|
|
207
|
+
|
|
208
|
+
**Signals you are forcing a fit** — any one of these means stop and re-examine the type, not the numbers:
|
|
209
|
+
|
|
210
|
+
- you set a parameter to a value the drawing never states, so that some *other* number comes out right;
|
|
211
|
+
- the "supporting" member you must name is not the member the detail says the plate is welded to;
|
|
212
|
+
- the connection builds, but you cannot point at the two faces that bear on each other;
|
|
213
|
+
- each fix makes one dimension correct and leaves the assembly wrong — the surest sign the *type* is wrong.
|
|
214
|
+
|
|
215
|
+
### 8. Check every built connection for CLASH and exact placement — every time
|
|
216
|
+
|
|
217
|
+
**A connection that matches every dimension on its detail can still be unbuildable.** Size fidelity and
|
|
218
|
+
*fit* are two different questions, and passing the first tells you nothing about the second. Ask both,
|
|
219
|
+
on every detail you build — not once at the end.
|
|
220
|
+
|
|
221
|
+
The failure this exists to stop: a gusset reproduced its drawing to a thousandth of an inch — plate
|
|
222
|
+
thickness, bolt diameter, gauge, edge distance, weld leg, all exact — while the plate ran **through** the
|
|
223
|
+
angle leg, the nut floated inside the member instead of bearing on its far face, and the bolt was sized
|
|
224
|
+
from a grip that counted only the plate. Every number checked out. Nothing touched.
|
|
225
|
+
|
|
226
|
+
**After building a connection, verify each of these — numerically, in world coordinates:**
|
|
227
|
+
|
|
228
|
+
- **Bearing faces meet: zero overlap, zero gap.** A lapped plate's inner face sits ON the *actual face* of
|
|
229
|
+
the ply it laps — a real surface of the real section, never a nominal, a default or zero. Careful here:
|
|
230
|
+
a symmetric web straddles the member's centre, so its two faces sit half a thickness either side — but
|
|
231
|
+
an angle's leg or a channel's web lies **entirely to one side**, and its two faces are not mirror images
|
|
232
|
+
of each other. "Half the thickness from the centre" is a special case, not the rule; find the face.
|
|
233
|
+
- **Nothing interpenetrates** — no connection part inside a member, no part inside another part.
|
|
234
|
+
- **Fasteners bear on real faces.** Head on the outer ply, nut on the far ply's actual face — never on a
|
|
235
|
+
work plane or a centroidal axis.
|
|
236
|
+
- **Grip = the plies actually clamped**, so the bolt length that falls out of it is right. A grip that
|
|
237
|
+
omits a ply yields a short bolt, and the drawing will never tell you.
|
|
238
|
+
- **Welds lie on the joint line the detail draws them on**, not merely at the right leg size.
|
|
239
|
+
|
|
240
|
+
**Check WHICH face, not just how far.** A connection can be the right size, the right distance from the
|
|
241
|
+
member's centre, and still be attached to the wrong part of it — or to nothing. Name the exact face the
|
|
242
|
+
plate bears on and prove the plate is on it:
|
|
243
|
+
|
|
244
|
+
- **The bearing ply must present a BROAD face to the plate** — the leg or web that runs alongside it. A
|
|
245
|
+
section usually has another part that is only edge-on (an angle's other leg is a few millimetres of
|
|
246
|
+
tip); landing on that, or on the air beside it, measures identically to landing correctly.
|
|
247
|
+
- **The bearing ply must cover the connection's full height.** If the plate is taller than the ply it
|
|
248
|
+
bears on, part of it is unsupported — a check that catches "right face, wrong extent".
|
|
249
|
+
- **Signs matter and hide.** A section is drawn in its own axes and then ROLLED to sit in the model, so
|
|
250
|
+
which way a face points depends on that roll. Get the sign wrong and the part lands on the far side of
|
|
251
|
+
the member — with every dimension, distance and thickness still perfect. Derive the mapping from the
|
|
252
|
+
code that actually places the geometry; do not reason it out.
|
|
253
|
+
|
|
254
|
+
**Do BOTH — measure it AND look at it. They catch different failures.**
|
|
255
|
+
|
|
256
|
+
- **Measure** what the eye cannot see: a few millimetres of overlap is invisible at any sensible zoom, so
|
|
257
|
+
contact, grip and bearing have to be computed and compared, never judged from a picture.
|
|
258
|
+
- **Look** at what the numbers do not flag: **zoom in on the built connection every time**. A dimension
|
|
259
|
+
table cannot tell you a plate is absurd for the member it sits on — a 15" plate on a 4" angle reads as
|
|
260
|
+
"plate depth 15.0", perfectly correct against the drawing it was copied from, and is obviously wrong
|
|
261
|
+
the instant you see it. Gross proportion and placement errors are found by eye in one second and can
|
|
262
|
+
survive every numeric check you write.
|
|
263
|
+
|
|
264
|
+
Passing one is not passing the other. A connection is right when the numbers *and* the picture agree.
|
|
265
|
+
|
|
266
|
+
**A check that reuses the thing it is checking proves nothing.** If the measurement repeats the same
|
|
267
|
+
assumption the geometry was built on, it will confirm a wrong answer with impressive precision — a bolt
|
|
268
|
+
"passing through" a leg that it actually misses, because both the code and the check placed that leg the
|
|
269
|
+
same wrong way. Derive the check from an INDEPENDENT source: the renderer's own transform, the drawing,
|
|
270
|
+
the section tables — something that does not share the suspect assumption. When a check and a drawing
|
|
271
|
+
disagree, the drawing wins.
|
|
272
|
+
|
|
273
|
+
**Check the whole assembly, not only the connection.** A connection can be perfect while the members it
|
|
274
|
+
joins are wrong: a brace that runs into the beam it frames into, a member never cut back from the support
|
|
275
|
+
it lands on. Member ends are usually placed at WORK POINTS, which sit on the support's centreline — deep
|
|
276
|
+
inside it — so a member must be trimmed back to the support's actual face plus its erection gap, and that
|
|
277
|
+
distance grows with the skew of the crossing. Verify the trim, not just the joint.
|
|
278
|
+
|
|
279
|
+
**Where this class of bug hides: nominal-vs-real section data.** A designation carries its thickness
|
|
280
|
+
(an angle's leg, a tube's wall) and that token is easy to drop on the way to geometry — leaving a guessed
|
|
281
|
+
or zero thickness behind, which silently misplaces everything that references it. If a placement depends
|
|
282
|
+
on a member's thickness, confirm that thickness came from the designation rather than an assumption.
|
|
283
|
+
|
|
284
|
+
**Never carry a dimension across from the member the detail happens to be DRAWN against.** A typical
|
|
285
|
+
detail is drawn on a representative member, and some of what it shows belongs to *that* member rather
|
|
286
|
+
than to the connection: a gusset drawn filling a beam's clear web depth is sized by that beam, not by the
|
|
287
|
+
rule. Copy it onto a different member and you get a plate several times its host. **Only transfer what
|
|
288
|
+
the detail actually DIMENSIONS.** For anything it merely draws, derive the value from a rule it does
|
|
289
|
+
state — a single bolt row with "1 1/2" TYP" edge distance gives a 3" deep plate — or leave it to the
|
|
290
|
+
engine's own derivation and say in the notes that the detail never dimensioned it.
|
|
291
|
+
|
|
292
|
+
**Report what does not fit, in the connection's `notes[]`, in the same breath as reporting the
|
|
293
|
+
dimensions.** "Every dimension matches" is a misleading statement on its own; a user detailing real steel
|
|
294
|
+
needs to know what bears and what does not.
|
|
295
|
+
|
|
185
296
|
---
|
|
186
297
|
|
|
187
298
|
## Guardrails
|
|
@@ -200,3 +311,7 @@ those export steps (right-click → Freeze) once the BOM is right, so a re-Run w
|
|
|
200
311
|
- **Tekla (or any platform) component INSERTION at bake is deferred** — the connection library +
|
|
201
312
|
per-end references + scoring are editor-verifiable today; native component placement is a later,
|
|
202
313
|
Tekla-gated step. Don't promise it.
|
|
314
|
+
- **Never report a connection as done on its dimensions alone.** Stages 7-8 are not an optional last pass:
|
|
315
|
+
clash and exact placement are checked on *every* detail built, and whatever does not bear is said out
|
|
316
|
+
loud. This is detailing — "the numbers match" is not the same claim as "it fits", and only one of them
|
|
317
|
+
is what the user is actually asking for.
|
|
@@ -329,22 +329,35 @@ function shapeOf(el) {
|
|
|
329
329
|
if (/^(HSS|PIPE|TS|SHS|RHS|CHS|TUBE|HSQ)/.test(p)) return 'TUBE'; // hollow tube
|
|
330
330
|
return 'BOX';
|
|
331
331
|
}
|
|
332
|
-
|
|
332
|
+
// A real thickness off the element's `xsection` (AISC table / designation) when there is one and it fits
|
|
333
|
+
// inside the section, else null so the caller keeps its estimate. The fit check matters: a metric
|
|
334
|
+
// designation's thickness token is parsed as inches, which would draw a leg thicker than the whole angle.
|
|
335
|
+
function realThk(xs, key, half) {
|
|
336
|
+
const t = xs && typeof xs[key] === 'number' ? xs[key] : null;
|
|
337
|
+
return t != null && t > 0 && t < 2 * half ? t : null;
|
|
338
|
+
}
|
|
339
|
+
// `xs` is the scene element's `xsection`. Without it every thickness here is a GUESS off the envelope —
|
|
340
|
+
// an L4X4 leg came out 18.3mm against a real 9.5, so a connection bearing on the real face rendered buried
|
|
341
|
+
// in a member that was drawn nearly twice too thick. The estimates remain as the fallback for sections we
|
|
342
|
+
// have no data for; they are the reason a member can still be drawn at all.
|
|
343
|
+
function profileShape(kind, w, d, xs) {
|
|
333
344
|
const s = new THREE.Shape(), hw = w / 2, hd = d / 2;
|
|
334
345
|
if (kind === 'I') {
|
|
335
|
-
const tf =
|
|
346
|
+
const tf = realThk(xs, 'tf', hd) ?? Math.min(d * 0.5, Math.max(d * 0.10, 6));
|
|
347
|
+
const tw = realThk(xs, 'tw', hw) ?? Math.min(w * 0.5, Math.max(w * 0.10, 5));
|
|
336
348
|
s.moveTo(-hw, -hd); s.lineTo(hw, -hd); s.lineTo(hw, -hd + tf); s.lineTo(tw / 2, -hd + tf);
|
|
337
349
|
s.lineTo(tw / 2, hd - tf); s.lineTo(hw, hd - tf); s.lineTo(hw, hd); s.lineTo(-hw, hd);
|
|
338
350
|
s.lineTo(-hw, hd - tf); s.lineTo(-tw / 2, hd - tf); s.lineTo(-tw / 2, -hd + tf); s.lineTo(-hw, -hd + tf); s.closePath();
|
|
339
351
|
} else if (kind === 'C') {
|
|
340
|
-
const tf =
|
|
352
|
+
const tf = realThk(xs, 'tf', hd) ?? Math.max(d * 0.10, 5);
|
|
353
|
+
const tw = realThk(xs, 'tw', hw) ?? Math.max(w * 0.12, 5);
|
|
341
354
|
s.moveTo(-hw, -hd); s.lineTo(hw, -hd); s.lineTo(hw, -hd + tf); s.lineTo(-hw + tw, -hd + tf);
|
|
342
355
|
s.lineTo(-hw + tw, hd - tf); s.lineTo(hw, hd - tf); s.lineTo(hw, hd); s.lineTo(-hw, hd); s.closePath();
|
|
343
356
|
} else if (kind === 'L') {
|
|
344
|
-
const t = Math.max(Math.min(w, d) * 0.18, 5);
|
|
357
|
+
const t = realThk(xs, 't', Math.min(hw, hd)) ?? Math.max(Math.min(w, d) * 0.18, 5);
|
|
345
358
|
s.moveTo(-hw, -hd); s.lineTo(hw, -hd); s.lineTo(hw, -hd + t); s.lineTo(-hw + t, -hd + t); s.lineTo(-hw + t, hd); s.lineTo(-hw, hd); s.closePath();
|
|
346
359
|
} else if (kind === 'TUBE') {
|
|
347
|
-
const t = Math.max(Math.min(w, d) * 0.12, 4);
|
|
360
|
+
const t = realThk(xs, 't', Math.min(hw, hd)) ?? Math.max(Math.min(w, d) * 0.12, 4);
|
|
348
361
|
s.moveTo(-hw, -hd); s.lineTo(hw, -hd); s.lineTo(hw, hd); s.lineTo(-hw, hd); s.closePath();
|
|
349
362
|
const h = new THREE.Path(); h.moveTo(-hw + t, -hd + t); h.lineTo(hw - t, -hd + t); h.lineTo(hw - t, hd - t); h.lineTo(-hw + t, hd - t); h.closePath(); s.holes.push(h);
|
|
350
363
|
} else { s.moveTo(-hw, -hd); s.lineTo(hw, -hd); s.lineTo(hw, hd); s.lineTo(-hw, hd); s.closePath(); }
|
|
@@ -353,7 +366,7 @@ function profileShape(kind, w, d) {
|
|
|
353
366
|
function memberGeom(el, w, d, len) {
|
|
354
367
|
const kind = shapeOf(el);
|
|
355
368
|
if (kind === 'BOX') return new THREE.BoxGeometry(w, len, d); // length on local Y
|
|
356
|
-
const g = new THREE.ExtrudeGeometry(profileShape(kind, w, d), { depth: len, bevelEnabled: false });
|
|
369
|
+
const g = new THREE.ExtrudeGeometry(profileShape(kind, w, d, el && el.xsection), { depth: len, bevelEnabled: false });
|
|
357
370
|
g.translate(0, 0, -len / 2); return g; // extruded +Z, centred
|
|
358
371
|
}
|
|
359
372
|
const _ZA = new THREE.Vector3(0, 0, 1), _YA = new THREE.Vector3(0, 1, 0);
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floless/app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.110.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Thin localhost host for floless.app
|
|
5
|
+
"description": "Thin localhost host for floless.app \u00e2\u20ac\u201d serves web/ and shells the aware CLI. No engine, no LLM.",
|
|
6
6
|
"bin": {
|
|
7
7
|
"floless-app": "bin/floless.mjs"
|
|
8
8
|
},
|