Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
docs: describe evaluateSweptGeometryCurvature by what it measures, and name the sustained concave turn in the finding
[._.]/ Adam Eivy6db1333d966f
diff --git a/server/lib/threejsModel.js b/server/lib/threejsModel.jsindex 734c3e6317..5890e95055 100644--- a/server/lib/threejsModel.js+++ b/server/lib/threejsModel.js@@ -1842,10 +1842,11 @@ export function measureOutlineConcaveTurn(ring) {}/**- * The sweep geometries whose curvature this gate can measure, and the reason a- * given part is treated as declared-curved. Returns `null` for anything else, so- * a straight `box` rail named "elbowBracket" is never reported — this gate only- * speaks about sweeps.+ * Measure whichever sweep geometry this is, using the measure that geometry+ * carries its curvature in. Returns `null` for anything this gate cannot speak+ * about — a straight `box` rail named "elbowBracket", a closed tube, an extrude+ * whose curve may live in a hole — so a caller can tell "measured and straight"+ * from "not measurable".*/export function evaluateSweptGeometryCurvature(geometry) {if (geometry?.type === 'tube') {diff --git a/server/lib/threejsModelPhysicalAudit.js b/server/lib/threejsModelPhysicalAudit.jsindex fd2e3f50a1..c296c49235 100644--- a/server/lib/threejsModelPhysicalAudit.js+++ b/server/lib/threejsModelPhysicalAudit.js@@ -830,7 +830,7 @@ const buildSweptPathCurvatureFindings = (spec, parts) => {const declaration = declaredBy === name ? '' : ` (declared by the feature "${declaredBy}")`;const message = curvature.kind === 'tube'? `Part "${name}"${declaration} is a curved form built from a tube whose path ${curvature.arcSpanDegrees > 0 ? `only turns through ${formatDegrees(curvature.arcSpanDegrees)}` : 'runs through collinear control points'}, so it sweeps straight. Sample the intended curve into "path" so consecutive points step around a centre — a horn, tail, hook, or bent conduit needs at least ${formatDegrees(SWEPT_ARC_MIN_SPAN_DEGREES)} of turn — instead of listing points along one line.`- : `Part "${name}"${declaration} is a curved form built from an extrude whose outline never turns back on itself (${formatDegrees(curvature.concaveTurnDegrees)} of concave turning). An extrude sweeps its outline along a STRAIGHT axis, so the curve has to be in the outline's own silhouette: give it a concave side of at least ${formatDegrees(CURVED_OUTLINE_MIN_CONCAVE_TURN_DEGREES)}, or build the part as a "tube" whose path follows the curve.`;+ : `Part "${name}"${declaration} is a curved form built from an extrude whose outline never turns back on itself (${formatDegrees(curvature.concaveTurnDegrees)} of sustained concave turning). An extrude sweeps its outline along a STRAIGHT axis, so the curve has to be in the outline's own silhouette: give it a concave side of at least ${formatDegrees(CURVED_OUTLINE_MIN_CONCAVE_TURN_DEGREES)}, or build the part as a "tube" whose path follows the curve.`;findings.push({code: 'straight-swept-path',severity: 'warning',diff --git a/server/lib/threejsModelPhysicalAudit.test.js b/server/lib/threejsModelPhysicalAudit.test.jsindex 6eaa7c626c..3e224a6565 100644--- a/server/lib/threejsModelPhysicalAudit.test.js+++ b/server/lib/threejsModelPhysicalAudit.test.js@@ -1137,7 +1137,7 @@ describe('swept-path curvature', () => {},}));expect(findings).toHaveLength(1);- expect(findings[0].message).toContain('0° of concave turning');+ expect(findings[0].message).toContain('0° of sustained concave turning');});it('accepts a crescent extrude outline', () => {