forgecad 0.9.6 → 0.9.7
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/assets/{AdminPage-Da6hhpJx.js → AdminPage-DX0mpSZT.js} +1 -1
- package/dist/assets/{BlogPage-Bl_sKeWb.js → BlogPage-CI_P0_Pf.js} +1 -1
- package/dist/assets/{DocsPage-Blz3Tp4j.js → DocsPage-DLhIIZyJ.js} +3 -3
- package/dist/assets/{EditorApp-CuiPbtn5.js → EditorApp-BujZvuwX.js} +140 -20
- package/dist/assets/{EditorApp-DS0AIUrZ.css → EditorApp-DfFT2Dn8.css} +1 -0
- package/dist/assets/{EmbedViewer-BFG6-Ufm.js → EmbedViewer-0S0qXKog.js} +2 -2
- package/dist/assets/{LandingPageProofDriven-DB9fQd5P.js → LandingPageProofDriven-O_yMtAri.js} +1 -1
- package/dist/assets/{PricingPage-BMxYT_F0.js → PricingPage-DGkX3Ahr.js} +1 -1
- package/dist/assets/{SettingsPage-VVQNrCAg.js → SettingsPage-DBsqTB_y.js} +82 -22
- package/dist/assets/{app-Dl9ymBWC.js → app-BE2nD6Yz.js} +1056 -258
- package/dist/assets/cli/{render-CFtwKCCY.js → render-iP9qh475.js} +1533 -207
- package/dist/assets/{evalWorker-CRvbzTXm.js → evalWorker-Ds5U4xtN.js} +2178 -30
- package/dist/assets/inspectWorker-Dll4eVyD.js +12620 -0
- package/dist/assets/{manifold-DpBXFS2K.js → manifold-Bk26ViCr.js} +1 -1
- package/dist/assets/{manifold-DzZ4VRPs.js → manifold-DjYsd7A_.js} +2 -2
- package/dist/assets/{manifold-B9QSr-qP.js → manifold-sJ-axdXM.js} +1 -1
- package/dist/assets/{renderSceneState-BuAXF2jh.js → renderSceneState-Bngp5MrQ.js} +1 -1
- package/dist/assets/{reportWorker-BNWEnRg1.js → reportWorker-CU8RZ4O0.js} +2161 -30
- package/dist/assets/{distance-BEC2RjJi.js → sectionPlaneMath-BdTjyVfs.js} +2539 -1187
- package/dist/cli/render.html +1 -1
- package/dist/docs/index.html +1 -1
- package/dist/docs-raw/AI/usage.md +7 -2
- package/dist/docs-raw/CLI.md +82 -53
- package/dist/docs-raw/beta-operations.md +5 -0
- package/dist/docs-raw/coding.md +1 -1
- package/dist/docs-raw/generated/concepts.md +59 -2
- package/dist/docs-raw/generated/core.md +206 -1
- package/dist/docs-raw/generated/lib.md +17 -1
- package/dist/docs-raw/generated/viewport.md +1 -1
- package/dist/docs-raw/guides/inspection-bundles.md +36 -13
- package/dist/docs-raw/platform/auth.md +2 -0
- package/dist/docs-raw/platform/google-oauth-setup.md +4 -0
- package/dist/docs-raw/skills/forgecad-make-a-model.md +87 -8
- package/dist/docs-raw/skills/forgecad-prepare-prompt.md +14 -6
- package/dist/docs-raw/skills/forgecad-render-inspect.md +1 -1
- package/dist/docs-raw/skills/index.md +2 -2
- package/dist/index.html +1 -1
- package/dist/sitemap.xml +6 -6
- package/dist-cli/forgecad.js +7975 -4528
- package/dist-cli/forgecad.js.map +1 -1
- package/dist-skill/CONTEXT.md +260 -16
- package/dist-skill/docs/CLI.md +82 -53
- package/dist-skill/docs/generated/core.md +206 -1
- package/dist-skill/docs/generated/lib.md +17 -1
- package/dist-skill/docs/generated/viewport.md +1 -1
- package/dist-skill/docs/guides/inspection-bundles.md +36 -13
- package/dist-skill/docs-dev/CLI.md +82 -53
- package/dist-skill/docs-dev/coding.md +1 -1
- package/dist-skill/docs-dev/generated/core.md +206 -1
- package/dist-skill/docs-dev/generated/lib.md +17 -1
- package/dist-skill/docs-dev/generated/viewport.md +1 -1
- package/dist-skill/docs-dev/guides/inspection-bundles.md +36 -13
- package/dist-skill/library/forgecad-make-a-model/SKILL.md +87 -8
- package/dist-skill/library/forgecad-prepare-prompt/SKILL.md +14 -6
- package/dist-skill/library/forgecad-prepare-prompt/references/default-profiles.md +5 -3
- package/dist-skill/library/forgecad-prepare-prompt/references/master-prompt.md +7 -5
- package/dist-skill/library/forgecad-render-inspect/SKILL.md +1 -1
- package/examples/api/bolted-service-cover.forge.js +17 -0
- package/examples/api/cable-gland-anchor.forge.js +14 -0
- package/examples/api/captured-cartridge-guide.forge.js +14 -0
- package/examples/api/captured-linear-slide.forge.js +13 -0
- package/examples/api/clevis-pin-joint.forge.js +13 -0
- package/examples/api/datum-enclosure.forge.js +16 -0
- package/examples/api/hose-barb-port.forge.js +14 -0
- package/examples/api/intentional-overlap-overmold.forge.js +16 -0
- package/examples/api/knuckled-hinge-assembly.forge.js +15 -0
- package/examples/api/living-hinge-cover.forge.js +14 -0
- package/examples/api/pcb-terminal-block.forge.js +22 -0
- package/examples/api/pinned-lever-pivot-stack.forge.js +14 -0
- package/examples/api/retained-shaft-knob-stack.forge.js +15 -0
- package/examples/api/routed-tube-clip.forge.js +15 -0
- package/examples/api/seated-bearing-stack.forge.js +30 -0
- package/examples/api/snap-latch-cover.forge.js +14 -0
- package/examples/api/static-assembly-connectors.forge.js +14 -16
- package/examples/api/thumb-screw-clamp.forge.js +15 -0
- package/package.json +1 -1
|
@@ -87,7 +87,7 @@ Pre-built parametric parts available in user scripts as `lib.*`.
|
|
|
87
87
|
|
|
88
88
|
Every key in this object becomes a method or namespace on the `lib` object exposed to `.forge.js` scripts. The catalog includes:
|
|
89
89
|
|
|
90
|
-
**Fasteners:** `bolt`, `nut`, `washer`, `fastenerSet`, `fastenerHole`, `boltHole`, `counterbore`, `hexNut`, `holePattern`
|
|
90
|
+
**Fasteners and hardware patterns:** `bolt`, `nut`, `washer`, `fastenerSet`, `boltedServiceCover`, `datumEnclosureAssembly`, `snapLatchCoverAssembly`, `pinnedLeverAssembly`, `retainedShaftAssembly`, `capturedLinearSlide`, `capturedCartridgeGuideAssembly`, `livingHingeCoverAssembly`, `knuckledHingeAssembly`, `clevisPinJointAssembly`, `seatedBearingAssembly`, `cableGlandAnchorAssembly`, `hoseBarbPortAssembly`, `routedTubeClipAssembly`, `pcbTerminalBlockAssembly`, `thumbScrewClampAssembly`, `fastenerHole`, `boltHole`, `counterbore`, `hexNut`, `holePattern`
|
|
91
91
|
|
|
92
92
|
**Structure:** `tube`, `pipe`, `bracket`, `pipeRoute`, `elbow`, `tSlotProfile`, `tSlotExtrusion`, `profile2020BSlot6Profile`, `profile2020BSlot6`
|
|
93
93
|
|
|
@@ -121,6 +121,22 @@ Sizes outside the supported ranges will throw at runtime with a descriptive erro
|
|
|
121
121
|
- `nut(diameter: number, options?: { pitch?: number; height?: number; acrossFlats?: number; segments?: number; }): Shape` — ISO-style hex nut with a threaded bore. **Details** Constructed from the intersection of three rotated slabs with a cylindrical bore subtracted. The nut is centered at the origin, height along Z. Default proportions follow ISO 4032 loosely: height ≈ 0.8×diameter, across-flats ≈ 1.6×diameter. The bore is a clearance bore (not modelled with helical threads) for rendering efficiency. For standard M-size nuts pre-configured for a complete joint, use { **Example** ```ts const n = lib.nut(5); // M5 nut ```
|
|
122
122
|
- `washer(size: MetricSize, options?: { standard?: WasherStandard; segments?: number; }): Shape` — ISO metric flat washer (DIN 125-A). **Details** Returns a flat ring centered at the origin, thickness along Z. Dimensions are taken from { **Example** ```ts const w = lib.washer('M5'); // DIN 125-A M5 washer ```
|
|
123
123
|
- `fastenerSet(size: MetricSize, boltLength: number, options?: FastenerSetOptions): FastenerSetResult` — Complete ISO metric fastener set — bolt, nut, optional washers, and matching hole cutters. **Details** Returns all geometry for one bolted joint: the bolt, nut, up to two washers, a clearance-hole cutter, and a tap-drill cutter. All shapes are returned **un-positioned** (each on the Z-axis). Place them with `.translate()`. Sizes outside M4–M10 are supported for the washer (M2–M10); unsupported combinations will throw. **Example** ```ts const hw = lib.fastenerSet('M5', 20); const topPlate = box(60, 40, 8).translate(0, 0, 12) .subtract(hw.clearanceHole.translate(15, 10, 12)); const botPlate = box(60, 40, 8) .subtract(hw.clearanceHole.translate(15, 10, 0)); return [ { name: 'Top Plate', shape: topPlate }, { name: 'Bot Plate', shape: botPlate }, { name: 'Bolt', shape: hw.bolt.translate(15, 10, 20) }, { name: 'Nut', shape: hw.nut.translate(15, 10, -4) }, ]; ```
|
|
124
|
+
- `boltedServiceCover(options: BoltedServiceCoverOptions): BoltedServiceCoverResult` — Bolted service-cover interface with real seats, aligned holes, gasket, fused pull tabs, and installed screws. **Details** This is a higher-level mechanical pattern for the common "removable service cover" failure mode. It creates the parent ledge, cover, gasket, and screws from one shared bolt pattern so agents do not place decorative screw heads or floating pull tabs by eye. Coordinate convention: the parent frame sits from `z=0` to `parentThickness`, the gasket sits on the ledge, the cover sits above the gasket, and screw shafts run downward through the cover into the parent. All parts are centered on the XY origin. **Example** ```ts const cover = lib.boltedServiceCover({ width: 90, depth: 56, screwSize: 'M4', ledgeWidth: 10, boltInset: [6, 6], }); verify.equal('four retained cover screws', cover.screws.length, 4); return cover.parts; ```
|
|
125
|
+
- `datumEnclosureAssembly(options: DatumEnclosureAssemblyOptions): DatumEnclosureAssemblyResult` — Datum-driven enclosure tray with shared wall, ledge, standoff, cover, gasket, port, and screw geometry. **Details** This pattern is for electronics boxes, thermostat backplates, service-stack housings, camera housings, and small fixtures where generated models often place panels, ribs, bosses, ports, and covers by eye. The tray, internal ledges, standoffs, ribs, service port, gasket, cover holes, and installed screws all come from one datum system. This keeps screw axes, boss locations, wall thickness, and service openings aligned instead of relying on independent magic numbers. Coordinate convention: X/Y are the enclosure footprint, Z is up. The base tray starts at `z=0` and rises to `height`; the gasket and cover sit above the top ledge with small explicit face clearances. **Example** ```ts const enclosure = lib.datumEnclosureAssembly({ width: 96, depth: 64, height: 18, }); verify.notColliding('cover clears enclosure gasket', enclosure.cover, enclosure.gasket); verify.inRange('cover stack has small seating clearance', enclosure.dims.faceClearance, 0.01, 0.08); return enclosure.parts; ```
|
|
126
|
+
- `snapLatchCoverAssembly(options: SnapLatchCoverAssemblyOptions): SnapLatchCoverAssemblyResult` — Snap-retained cover with a receiver frame, latch windows, underside catch lands, and fused snap hooks. **Details** This pattern is for covers, cartridges, clasps, and small housings where agents often add decorative tabs without a catch. The receiver has a real service opening plus two clearance latch windows. The cover is one fused part with two flexible-looking snap fingers that pass through the windows and barb under the receiver underside. Nothing intersects in the final assembly; the hook geometry sits close enough to the catch lands to prove retention intent. Coordinate convention: the receiver frame sits from `z=0` to `parentThickness`; the cover is seated just above the receiver on +Z. Two snap hooks sit on the +/-Y ledges and tuck under the receiver. **Example** ```ts const snapCover = lib.snapLatchCoverAssembly({ width: 72, depth: 44, }); verify.notColliding('snap hooks clear receiver windows', snapCover.cover, snapCover.parent); verify.inRange('snap cover has small seating clearance', snapCover.dims.faceClearance, 0.01, 0.08); return snapCover.parts; ```
|
|
127
|
+
- `pinnedLeverAssembly(options: PinnedLeverAssemblyOptions): PinnedLeverAssemblyResult` — Retained pinned lever stack with a fused hub/arm/grip, low stop land, pivot pin, bore cutters, and thrust washers. **Details** This pattern is for the common handle/lever failure mode where a visual arm, hub, washer, and pin are placed near each other but never form a credible mechanism. The lever body is one fused part, the pin runs through aligned bores, washers sit on both sides of the lever, and the support includes a bearing land plus an optional low stop land beside the lever path. Coordinate convention: pivot axis is +Z at the XY origin. The support starts at `z=0`, the lower washer sits on top of the support, the lever sits on the lower washer, the upper washer sits on the lever, and the retained pin spans the full stack. **Example** ```ts const lever = lib.pinnedLeverAssembly({ armLength: 54, armWidth: 10, pinDiameter: 5, }); verify.equal('lever stack has five retained parts', lever.parts.length, 5); return lever.parts; ```
|
|
128
|
+
- `retainedShaftAssembly(options: RetainedShaftAssemblyOptions): RetainedShaftAssemblyResult` — Retained shaft, washer, knob, and support-cheek stack for trunnions, pivots, and adjustable clamps. **Details** This pattern replaces the common "pin, washers, and knob are near each other" visual shortcut with a mechanically accountable shaft stack. The two support cheeks get matching clearance bores, the through shaft spans the whole stack, washers and knobs share the same axis, and retaining heads keep the knobs from reading as loose floating cylinders. Coordinate convention: the shaft axis is +X through the world origin. Support cheeks are centered at `x = +/- supportSpacing / 2`. The supports are bored for clearance, so collision inspection should report no support/shaft overlap while the connectivity audit still sees one retained stack. **Example** ```ts const trunnion = lib.retainedShaftAssembly({ supportSpacing: 96, shaftDiameter: 8, supportHeight: 42, }); verify.equal('retained shaft stack has seven parts', trunnion.parts.length, 7); return trunnion.parts; ```
|
|
129
|
+
- `capturedLinearSlide(options: CapturedLinearSlideOptions): CapturedLinearSlideResult` — Captured linear slide with a U-channel rail, return lips, end stops, and a carriage posed inside the guide. **Details** This pattern is for drawer-slide, quick-release plate, and guided-carriage models where agents often place rail details and a moving block near each other without a capture relationship. The rail is one fused part with side walls, inward lips, and end stops; the carriage is wider than the lip throat but narrower than the inner rail width, so it is mechanically captured while retaining explicit clearance. Coordinate convention: rail length is along X, width is along Y, and Z is up. The rail base starts at `z=0`; the carriage sits above the base and below the return lips. `travel=0` places the carriage at the negative-X end of travel, and `travel=maxTravel` places it at the positive-X end. **Example** ```ts const slide = lib.capturedLinearSlide({ length: 160, carriageLength: 52, travel: 42, }); verify.greaterThan('carriage is captured by return lips', slide.dims.carriageWidth, slide.dims.throatWidth); return slide.parts; ```
|
|
130
|
+
- `capturedCartridgeGuideAssembly(options: CapturedCartridgeGuideAssemblyOptions): CapturedCartridgeGuideAssemblyResult` — Captured removable cartridge guide with return lips, rear stop, wide cartridge flange, and pull tab. **Details** This pattern is for pump cartridges, filter cassettes, skeg cassettes, battery cartridges, and slide-in service modules where generated models often place a tray and a loose block near each other. The guide is one fused part with side walls, inward return lips, and a rear stop. The cartridge has a wide lower flange captured under the lips and a narrower body that passes through the throat, so the model has a real retention contract without manual coordinate tuning. Coordinate convention: insertion travel is along +X. The open entry is at −X, the rear stop is at +X, the guide base starts at `z=0`, and `insertion=0` places the cartridge at the front travel limit. **Example** ```ts const cassette = lib.capturedCartridgeGuideAssembly({ length: 150, cartridgeLength: 72, }); verify.notColliding('cartridge clears guide rails', cassette.cartridge, cassette.guide); verify.greaterThan('cartridge flange is captured by lips', cassette.dims.cartridgeWidth, cassette.dims.throatWidth); return cassette.parts; ```
|
|
131
|
+
- `livingHingeCoverAssembly(options: LivingHingeCoverAssemblyOptions): LivingHingeCoverAssemblyResult` — One-piece molded living-hinge cover strip with a fixed leaf, thin flexible web, cover leaf, pull lip, snap barb, and catch land. **Details** This pattern is for small polypropylene-style lids, battery doors, sample covers, blister latches, and molded service flaps where generated models often draw a decorative hinge strip between two disconnected plates. It returns one fused molded part in its as-molded flat state: fixed mounting leaf, thin hinge web, moving cover leaf, pull lip, raised snap barb, and catch land. The flexible web is intentionally much thinner than the rigid leaves and shares material with both leaves. Coordinate convention: X is hinge length/part width, Y runs from fixed leaf through hinge web to cover leaf, and Z is thickness. The hinge web is centered on `y=0`; the fixed leaf lies at −Y and the cover leaf at +Y. **Example** ```ts const livingCover = lib.livingHingeCoverAssembly({ width: 64, coverDepth: 42, }); verify.greaterThan('living hinge is much thinner than rigid leaves', livingCover.dims.flexRatio, 3); return livingCover.parts; ```
|
|
132
|
+
- `knuckledHingeAssembly(options: KnuckledHingeAssemblyOptions): KnuckledHingeAssemblyResult` — Alternating knuckle hinge with two fused leaves and a retained pin. **Details** This pattern replaces hand-placed hinge barrels and pin ghosts with a mechanically accountable hinge. The fixed leaf owns every other knuckle, the moving leaf owns the alternating knuckles, all knuckles share one bore size, and the retained pin spans the full stack with heads outside the barrels. Coordinate convention: the hinge pin axis is +X through the world origin. The fixed leaf extends toward +Y. The moving leaf extends toward -Y and rotates about +X by `openAngleDeg`. **Example** ```ts const hinge = lib.knuckledHingeAssembly({ length: 70, leafLength: 28, openAngleDeg: 45, }); verify.equal('hinge has two leaves and one retained pin', hinge.parts.length, 3); return hinge.parts; ```
|
|
133
|
+
- `clevisPinJointAssembly(options?: ClevisPinJointAssemblyOptions): ClevisPinJointAssemblyResult` — Clevis-style pin joint with bored yoke ears, a center link eye, and a retained pin. **Details** This pattern is for crank links, damper rod ends, pump crossheads, capo/cam pivots, and small mechanism joints where agents often place an eyelet and a pin near a bracket without modeling the captured load path. The clevis is one fused part with two bored ears and a rear bridge, the center link has a real eye and arm, and the retained pin spans the full stack with heads outside the ears. Coordinate convention: the pin axis is +Y through the world origin. The center link arm extends toward +X. The clevis bridge sits behind the eye on -X, leaving the link eye clear inside the yoke. **Example** ```ts const clevis = lib.clevisPinJointAssembly({ pinDiameter: 4, linkArmLength: 38, }); verify.equal('clevis joint has three retained parts', clevis.parts.length, 3); return clevis.parts; ```
|
|
134
|
+
- `seatedBearingAssembly(options: SeatedBearingAssemblyOptions): SeatedBearingAssemblyResult` — Seated radial-bearing support with a real counterbore, shoulder, through shaft, and retaining collars. **Details** This pattern is for purchased bearings, rollers, burr-cartridge shafts, and small spindle supports where agents often place a ring and a shaft near a block without modelling the pocket that locates the bearing. The housing includes a through-bore and a larger counterbore that leaves a shoulder for the bearing outer race. The shaft is smaller than the bearing bore and carries collars outside the housing, so collision checks can distinguish intended clearance from impossible overlap. Coordinate convention: the shaft axis is +Z through the world origin. The housing block starts at `z=0`, the raised boss is on top of the block, the bearing is seated from the top counterbore, and the shaft extends above and below the housing. **Example** ```ts const bearingStack = lib.seatedBearingAssembly({ bearingOuterDiameter: 22, bearingInnerDiameter: 8, bearingWidth: 7, }); verify.greaterThan('housing has wall around bearing pocket', bearingStack.dims.bossOuterDiameter - bearingStack.dims.pocketDiameter, 4); return bearingStack.parts; ```
|
|
135
|
+
- `cableGlandAnchorAssembly(options: CableGlandAnchorAssemblyOptions): CableGlandAnchorAssemblyResult` — Cable, wire, or tube gland anchor with a real panel hole, hollow gland body, compression nut, and routed cable. **Details** This pattern is for pumps, filters, electronics boxes, vents, monitors, and fixtures where generated models often leave hoses or cables terminating in space. It creates the receiving panel hole, a hollow gland body with a panel-side flange seated in a shallow pocket, a hollow compression nut, and a cable/tube that runs through the gland bore with explicit clearance. Coordinate convention: the cable axis is +X through the world origin. The panel is centered around `x=0` with thickness along X; the flange sits on the +X side of the panel and the compression nut sits on the −X side. The cable spans the full anchor. **Example** ```ts const anchor = lib.cableGlandAnchorAssembly({ cableDiameter: 6, panelThickness: 3, }); verify.notColliding('cable clears gland bore', anchor.cable, anchor.gland); verify.clearanceBetween('gland flange is seated at panel pocket', anchor.gland, anchor.panel, 0.01, 0.2); return anchor.parts; ```
|
|
136
|
+
- `hoseBarbPortAssembly(options: HoseBarbPortAssemblyOptions): HoseBarbPortAssemblyResult` — Hose-barb pump/filter port with a bored receiver, shoulder, barb ridges, installed hose, and clamp band. **Details** This pattern is for pump heads, filters, vents, lab cartridges, and fluid fittings where generated models often leave tubes ending near a block. The receiver has a real through-port and raised boss, the fitting is hollow with a shoulder and multiple barb ridges, and the hose is modeled as an installed tube over the barb envelope with a clamp band. The hose bore is sized for the deformed installed hose, so collision checks distinguish the retained interface from impossible solid overlap. Coordinate convention: the fluid axis is +X through the world origin. The receiver block is centered around `x=0`; the raised boss and hose are on the +X side. **Example** ```ts const hosePort = lib.hoseBarbPortAssembly({ hoseInnerDiameter: 6, hoseOuterDiameter: 10, }); verify.notColliding('hose clears barb peaks', hosePort.hose, hosePort.fitting); verify.inRange('fitting shoulder seats near boss face', hosePort.dims.faceClearance, 0.01, 0.08); return hosePort.parts; ```
|
|
137
|
+
- `routedTubeClipAssembly(options: RoutedTubeClipAssemblyOptions): RoutedTubeClipAssemblyResult` — Routed tube or cable retained by saddle clips with real bores, screw holes, and installed screws. **Details** This pattern is for hoses, wires, pump tubes, sensor leads, and appliance cable runs where generated models often draw a cylinder near a wall without clips or strain relief. The base panel has receiving screw envelopes, each saddle clip has a real through-bore around the tube and vertical screw clearances, and the installed screws share those positions. Coordinate convention: the routed tube runs along +X through the world origin. The base panel starts at `z=0`; clips sit on top of the panel, and the tube passes through their bores. **Example** ```ts const route = lib.routedTubeClipAssembly({ tubeDiameter: 6, clipCount: 3, }); verify.notColliding('tube clears clip bores', route.tube, union(...route.clips)); verify.notColliding('clip screws clear retained stack', union(...route.screws), union(route.panel, ...route.clips)); return route.parts; ```
|
|
138
|
+
- `pcbTerminalBlockAssembly(options?: PcbTerminalBlockAssemblyOptions): PcbTerminalBlockAssemblyResult` — PCB terminal-block stack with a backplate, standoffs, mounting screws, pin holes, and a seated terminal block. **Details** This pattern is for thermostat backplates, appliance control panels, sensor boards, and small electronics where generated models often place a terminal block, screw heads, and holes as independent decorations. The PCB mounting holes, fused standoffs, installed screws, terminal pins, and PCB pin clearances all come from one shared datum system so the purchased block is mechanically seated and the board is actually mounted. Coordinate convention: X/Y are the board footprint, Z is up. The backplate starts at `z=0`, standoffs rise from the plate, the PCB rests on the standoffs, and the terminal block sits on top of the PCB near the front edge. **Example** ```ts const terminalStack = lib.pcbTerminalBlockAssembly({ terminalCount: 5, screwSize: 'M3', }); verify.notColliding('terminal pins clear PCB holes', terminalStack.terminalBlock, terminalStack.pcb); verify.notColliding('mounting screws clear PCB and standoff holes', union(...terminalStack.screws), union(terminalStack.pcb, terminalStack.backplate)); return terminalStack.parts; ```
|
|
139
|
+
- `thumbScrewClampAssembly(options?: ThumbScrewClampAssemblyOptions): ThumbScrewClampAssemblyResult` — Thumb-screw clamp with a C-frame, threaded boss, captive pressure pad, knob, and clamped workpiece. **Details** This pattern is for bench clamps, monitor-arm desk clamps, small vise screws, capo pressure screws, fixture hold-downs, and service brackets where generated models often place a loose screw, knob, or pressure pad near a bracket. The helper creates a one-piece clamp frame with a fixed anvil pad, a bored threaded support and boss, an installed screw with a captive pressure pad and hand knob, and a representative clamped workpiece seated between the pads. Coordinate convention: the clamp screw runs along +X. The fixed anvil is on the -X side, the threaded support and knob are on the +X side, and Z is up from the base bridge. **Example** ```ts const clamp = lib.thumbScrewClampAssembly({ screwSize: 'M6', workpieceThickness: 20, }); verify.notColliding('thumb screw clears threaded boss', clamp.clampScrew, clamp.frame); verify.clearanceBetween('pressure pad is seated on workpiece', clamp.clampScrew, clamp.workpiece, -0.01, 0.05); return clamp.parts; ```
|
|
124
140
|
- `pipeRoute(points: [ number, number, number ][], radius: number, options?: { bendRadius?: number; wall?: number; segments?: number; }): Shape` — Route a pipe (solid or hollow) through 3D waypoints with smooth bends. Each interior waypoint gets a torus-section bend. Straight segments connect them. Returns a single unioned Shape.
|
|
125
141
|
- `elbow(pipeRadius: number, bendRadius: number, angle?: number | { ... }, options?: { ... }): Shape` — Pipe elbow — a curved pipe section (torus arc) for connecting two pipe directions. By default creates a bend in the XZ plane: incoming along +Z, outgoing rotated by `angle`. The bend starts at the origin, curving away from it.
|
|
126
142
|
- `beltDrive(options: BeltDriveOptions): BeltDriveResult` — Create a flat open-belt body around two pulley pitch circles. The belt is generated as a tangent loop in the XY plane and extruded along +Z by `beltWidth`. The result includes the solid belt, the 2D belt profile, a thin pitch-path sketch for visualization, total belt length, tangent spans, and wrap metadata for each pulley. For more than two pulleys, the API intentionally asks for route intent before geometry is created. Use `route: "outer"` for the future outside-envelope mode, or an ordered route for future serpentine/idler layouts. ```ts const drive = lib.beltDrive({ pulleys: [ { name: "motor", center: [0, 0], pitchRadius: 12 }, { name: "output", center: [80, 0], pitchRadius: 28 }, ], beltWidth: 8, beltThickness: 2, }); return drive.belt; ```
|
|
@@ -366,7 +366,7 @@ Mock objects appear in the viewport and spatial analysis when you run a file dir
|
|
|
366
366
|
|
|
367
367
|
The shape is returned unchanged, so you can reference it for alignment, dimensioning, and `verify` checks.
|
|
368
368
|
|
|
369
|
-
Mock objects participate in `forgecad run` collision detection and spatial analysis. Their names appear with a `(mock)` suffix in reports.
|
|
369
|
+
Mock objects participate in `forgecad run --spatial bounded|exact` collision detection and spatial analysis. Their names appear with a `(mock)` suffix in reports.
|
|
370
370
|
|
|
371
371
|
In the viewport, mock objects render at reduced opacity so they are visually distinct from real geometry.
|
|
372
372
|
|
|
@@ -26,7 +26,7 @@ cross-sections.
|
|
|
26
26
|
forgecad render inspect examples/api/static-assembly-connectors.forge.js --channels rgb,mask
|
|
27
27
|
forgecad render inspect model.forge.js out/model-inspect --channels rgb,section --force
|
|
28
28
|
forgecad render inspect model.forge.js --channels rgb,mask,section
|
|
29
|
-
forgecad render inspect model.forge.js --channels collisions --focus Bench
|
|
29
|
+
forgecad render inspect model.forge.js --channels collisions --focus "Bench.*"
|
|
30
30
|
forgecad render inspect model.forge.js --channels rgb,mask --hide "Bench.Slat0,Bench.Slat1"
|
|
31
31
|
forgecad render inspect model.forge.js --channels thickness --min-thickness 1.2 --warn-thickness 2.0
|
|
32
32
|
forgecad render inspect channels
|
|
@@ -43,7 +43,9 @@ question so heavy analyses do not run unnecessarily.
|
|
|
43
43
|
`--focus` and `--hide` use the same object-name filtering semantics as
|
|
44
44
|
`forgecad run` and `forgecad render 3d`. A bare `--focus` hides mock objects;
|
|
45
45
|
`--focus name1,name2` emits only matching objects; `--hide name1,name2` removes
|
|
46
|
-
matching objects from an otherwise visible scene.
|
|
46
|
+
matching objects from an otherwise visible scene. Matching is case-insensitive
|
|
47
|
+
and supports `*` / `?` globs, so grouped child objects are usually best matched
|
|
48
|
+
with patterns such as `Bench.*`.
|
|
47
49
|
|
|
48
50
|
## Bundle Layout
|
|
49
51
|
|
|
@@ -148,6 +150,12 @@ defects. Use this channel to spot spiky tessellation, accidental faceting,
|
|
|
148
150
|
jagged boolean residue, and dense sharp-corner regions without losing the
|
|
149
151
|
silhouette of otherwise smooth surfaces.
|
|
150
152
|
|
|
153
|
+
The channel also writes `channels/roughness/point-cloud.json`. Each point sample
|
|
154
|
+
stores object identity, object-local position, normal, dihedral angle, class,
|
|
155
|
+
RGB color, and represented surface area. The PNG renders those samples over
|
|
156
|
+
muted source geometry so the visual evidence stays point-level instead of
|
|
157
|
+
painting a whole object.
|
|
158
|
+
|
|
151
159
|
`mask` emits one object-color image per view. Black is background. Non-black
|
|
152
160
|
pixels resolve through `manifest.channels.mask.objects`, which includes object
|
|
153
161
|
index, RGB color, object id, name, group, tree path, and mock flag. Edge pixels
|
|
@@ -161,9 +169,9 @@ background. Non-black pixels resolve through
|
|
|
161
169
|
Connectivity is computed from visible scene objects:
|
|
162
170
|
|
|
163
171
|
```text
|
|
164
|
-
bbox
|
|
165
|
-
|
|
166
|
-
component = transitive closure over overlap
|
|
172
|
+
bbox candidate = bbox interiors overlap or bbox contact gap <= 0.05 model units
|
|
173
|
+
overlap edge = exact boolean intersection volume > 0.1 model units^3
|
|
174
|
+
component = transitive closure over exact overlap edges
|
|
167
175
|
```
|
|
168
176
|
|
|
169
177
|
The manifest stores the edge list, component list, per-object body counts, and
|
|
@@ -172,8 +180,11 @@ multiple disconnected kernel bodies and the caller supplied a body count, the
|
|
|
172
180
|
manifest reports `bodyCount > 1` but the PNG cannot color those internal bodies
|
|
173
181
|
separately yet.
|
|
174
182
|
|
|
175
|
-
Connectivity
|
|
176
|
-
|
|
183
|
+
Connectivity uses bbox only as a broadphase. Bbox contact is not enough to merge
|
|
184
|
+
separate scene objects, which keeps concave assemblies such as cages and captive
|
|
185
|
+
balls from being falsely colored as one component. Use the `collisions` channel
|
|
186
|
+
when you need positive-volume overlap evidence as a defect report rather than a
|
|
187
|
+
component grouping.
|
|
177
188
|
|
|
178
189
|
`distance` emits one rooted physical-component-distance heatmap per view. Black
|
|
179
190
|
is background. Non-black pixels resolve through
|
|
@@ -222,9 +233,10 @@ with the ghosted source geometry. If `--focus PartA,PartB` is used, everything
|
|
|
222
233
|
except those objects is hidden, `PartA` and `PartB` are ghosted, and their
|
|
223
234
|
overlap volume is highlighted if present.
|
|
224
235
|
|
|
225
|
-
`thickness` emits one local wall-thickness heatmap per view. The renderer
|
|
226
|
-
samples visible mesh
|
|
227
|
-
normal, and colors
|
|
236
|
+
`thickness` emits one local wall-thickness heatmap per view. The renderer places
|
|
237
|
+
deterministic area-weighted point samples across visible mesh surfaces, casts
|
|
238
|
+
through the object along each sample normal, and colors each point by the first
|
|
239
|
+
opposite-surface distance:
|
|
228
240
|
|
|
229
241
|
```text
|
|
230
242
|
red = thickness <= minThickness
|
|
@@ -237,7 +249,7 @@ gray = unresolved sample
|
|
|
237
249
|
The default thresholds are `minThickness=1.2`, `warnThickness=2.0`, and
|
|
238
250
|
`maxThickness=6.0` model units. Override them with `--min-thickness`,
|
|
239
251
|
`--warn-thickness`, and `--max-thickness`. Use `--thickness-samples` to raise or
|
|
240
|
-
lower the maximum
|
|
252
|
+
lower the maximum thickness point samples per object.
|
|
241
253
|
|
|
242
254
|
The manifest stores the method, thresholds, palette, object list, per-object
|
|
243
255
|
triangle counts, sampled-triangle counts, minimum, p05, median, mean, maximum,
|
|
@@ -245,6 +257,17 @@ critical-area percentage, warning-area percentage, below-warning percentage, and
|
|
|
245
257
|
unresolved-area percentage. This makes the PNG useful for visual debugging while
|
|
246
258
|
the manifest remains the machine-readable source of truth.
|
|
247
259
|
|
|
260
|
+
The channel also writes `channels/thickness/point-cloud.json`. Each point sample
|
|
261
|
+
stores object identity, object-local position, normal, measured thickness,
|
|
262
|
+
class, RGB color, and represented surface area. The PNG renders those samples
|
|
263
|
+
over muted source geometry, so local evidence survives even when neighboring
|
|
264
|
+
triangles have very different values.
|
|
265
|
+
|
|
266
|
+
`roughness` uses the same area-weighted point placement. Point colors are local
|
|
267
|
+
to nearby physical feature edges: smooth tessellation diagonals do not become
|
|
268
|
+
visible roughness lines. Use `--roughness-samples` to raise or lower the maximum
|
|
269
|
+
roughness point samples per object.
|
|
270
|
+
|
|
248
271
|
`section` emits five interior slices per principal plane. The current slicing
|
|
249
272
|
policy is:
|
|
250
273
|
|
|
@@ -282,8 +305,8 @@ per-view depth ranges, and object-mask mappings live.
|
|
|
282
305
|
not infer identity from object order alone.
|
|
283
306
|
- Connectivity is object-level. It reports disconnected kernel bodies in the
|
|
284
307
|
manifest, but the PNG does not split a single scene object into per-body colors.
|
|
285
|
-
- Bbox contact is
|
|
286
|
-
|
|
308
|
+
- Bbox contact is only broadphase evidence and does not merge separate scene
|
|
309
|
+
objects by default. Boolean-overlap edges are exact.
|
|
287
310
|
- Distance is a physical-component bbox-gap metric in v1, not exact nearest
|
|
288
311
|
mesh-surface distance. Concave components and loose bounding boxes can make the
|
|
289
312
|
reported gap smaller than the real closest-surface distance.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: forgecad-make-a-model
|
|
3
|
-
description: Create
|
|
3
|
+
description: Create manufacture-realistic prototype ForgeCAD (.forge.js) models in the active CAD project. Handles file placement, invokes the forgecad skill for API guidance, and validates the result.
|
|
4
4
|
forgecad-public: true
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -8,6 +8,17 @@ forgecad-public: true
|
|
|
8
8
|
|
|
9
9
|
Create new ForgeCAD models in the user's active ForgeCAD project.
|
|
10
10
|
|
|
11
|
+
## Default Output Standard
|
|
12
|
+
|
|
13
|
+
Unless the user explicitly asks for a rough blockout, toy, pure visual study, mass-production release package, or specific manufacturing process, the output is a **manufacture-realistic prototype**.
|
|
14
|
+
|
|
15
|
+
That means the model should look and behave like a serious prototype someone could fabricate, buy parts for, assemble, inspect, and iterate in a real shop or product lab. It is not a casual concept sketch, not a universal 3D-printing exercise, and not a claim of certified production readiness.
|
|
16
|
+
|
|
17
|
+
- Choose processes that fit the artifact: machined, sheet-metal, tube, wood/composite, laser-cut, molded-look prototype, printed, or hybrid purchased-hardware construction as appropriate.
|
|
18
|
+
- Include prototype-real features: wall thickness, fastener stacks, bosses, ribs, flanges, bends, seats, bushings, gaskets, cable exits, service access, toleranced clearances, and believable purchased parts.
|
|
19
|
+
- Use production cues only when they help prototype realism. Do not invent expensive production tooling details, certification claims, or safety ratings unless the user asked for that level.
|
|
20
|
+
- If the user asks for `production-realistic`, push toward manufacturing DFM and production-intent materials. If they ask for `printable`, make the selected printed parts honest. If they ask for `visual-CAD`, keep it clearly visual rather than pretending it is build-ready.
|
|
21
|
+
|
|
11
22
|
## File Placement
|
|
12
23
|
|
|
13
24
|
All new `.forge.js` files go under the date-based directory structure:
|
|
@@ -35,6 +46,7 @@ Use today's date for the directory. Use the user's current ForgeCAD project when
|
|
|
35
46
|
1. Load the ForgeCAD skill — always invoke the `forgecad` skill first to get API docs and authoring guidance. Read at minimum the Core API reference. If any two parts are intended to touch or mate in the final model, read the positioning guide immediately and default to connectors + `matchTo()`.
|
|
36
47
|
2. Create the directory — `mkdir -p YYYY/MM/DD/[folder]` as needed.
|
|
37
48
|
3. Write the model — create the `.forge.js` file(s) following ForgeCAD conventions:
|
|
49
|
+
- Treat the default build profile as `manufacture-realistic prototype`; choose and encode the artifact's manufacturing/process cues before adding styling detail
|
|
38
50
|
- Declare `param()` / `boolParam()` for all tunable dimensions
|
|
39
51
|
- If the model is split across files, use `main.forge.js` as the primary entry point, import renderable parts from neighboring `.forge.js` files, and keep only pure helpers/constants in plain `.js` modules
|
|
40
52
|
- When there are multiple versions of the same object, expose the version as a choice parameter and render one selected version at a time
|
|
@@ -47,12 +59,12 @@ Use today's date for the directory. Use the user's current ForgeCAD project when
|
|
|
47
59
|
- Return the final geometry (single shape, array, or named objects array)
|
|
48
60
|
- Treat `fillet(shape, r)` and `chamfer(shape, r)` as experimental edge treatments: Manifold can produce incorrect results and OCCT can be very slow. Prefer simpler primitive profiles, lower segment counts, targeted edge selectors, and inspection before relying on the result.
|
|
49
61
|
4. Validate — run `forgecad run <file>` to check for errors. For multi-file projects, always validate `main.forge.js`.
|
|
50
|
-
5. Verify geometry — render the result, run `forgecad run --connectivity` when the model has multiple returned objects or visible attachments, and run `forgecad render inspect` with the relevant channels for the task (see Final Acceptance Gate and Render-Verify Loop below). For multi-file projects, render and inspect `main.forge.js`.
|
|
62
|
+
5. Verify geometry — render the result, run `forgecad run --connectivity` when the model has multiple returned objects or visible attachments, run `forgecad debug assembly --fail-on warning` when the script uses `assembly()`, run `forgecad inspect mechanical-integrity <project-or-file> --collisions` before sharing generated mechanical work, and run `forgecad render inspect` with the relevant channels for the task (see Final Acceptance Gate and Render-Verify Loop below). For multi-file projects, render and inspect `main.forge.js`.
|
|
51
63
|
|
|
52
64
|
## Manufacturing Process Is Not Assumed
|
|
53
65
|
|
|
54
66
|
Do not interpret every ForgeCAD model as a printable object.
|
|
55
|
-
Choose the manufacturing/process cues that fit the artifact unless the user explicitly asked for a specific process.
|
|
67
|
+
Choose the manufacturing/process cues that fit the artifact unless the user explicitly asked for a specific process. A manufacture-realistic prototype can be CNC-machined, bent sheet, tube-and-plate, wood/composite, molded-look low-volume, printed, or hybrid; the right answer depends on the load path and operating story.
|
|
56
68
|
|
|
57
69
|
- For rideable products such as scooters, bikes, skateboards, carts, or mobility-adjacent devices, use realistic metal/composite/wood structural members, purchased wheels/bearings/axles/brakes/grips, and standard hardware unless the user asked for a printable toy/model.
|
|
58
70
|
- For furniture and load-bearing structures, consider wood, sheet goods, tube, metal brackets, conventional joinery, and printed parts only where they are honest secondary components.
|
|
@@ -104,6 +116,52 @@ Do not reveal hidden structure by permanently cutting away the production geomet
|
|
|
104
116
|
|
|
105
117
|
When internals are hidden by the final exterior, verify them with exploration tools instead of changing the artifact: render underside or alternate camera views, use `render inspect` section channels, use viewer-only cut planes or explode controls, temporarily make a shell transparent, or add named ghost objects for fit checks. Those views are diagnostic/presentation modes; they must not replace the real model unless the user explicitly asked for a cutaway teaching model.
|
|
106
118
|
|
|
119
|
+
## Mechanical Assembly Contract
|
|
120
|
+
|
|
121
|
+
For mechanical models, a ForgeCAD script is not done when it merely looks assembled. Every visible piece must have a believable physical reason to be where it is: fused material, contact faces, a screw stack, a pin in a bore, a tab in a slot, a gasket on a land, a bearing in a seat, a cable in a channel, or a named intentional ghost.
|
|
122
|
+
|
|
123
|
+
- For bespoke fixed assemblies that do not match an existing `lib.*` helper, start from `examples/api/static-assembly-connectors.forge.js`: build each part in local coordinates, pick one root part, place every other touching part with `matchTo()`, and verify the mate with `verify.connectorDistance(...)`. Do not use final `translate()` calls as assembly contracts.
|
|
124
|
+
- If you use `assembly().addPart()`, do not treat `addFixed()`, `addRevolute()`, or `addPrismatic()` with a manual `frame: Transform.identity().translate(...)` as a physical contract. Manual joint frames are acceptable only as a temporary scaffold. Before delivery, convert mating interfaces to connectors with `connect()` / `match()` where the interfaces physically meet, or prove the manual joint with `forgecad debug assembly --fail-on warning` and documented geometry.
|
|
125
|
+
- A named assembly part should not contain unintentional disconnected bodies. If a "cover plate" contains floating pull tabs, loose screw heads, or a separate gasket, either boolean-join the manufactured features, model the fasteners/seals as separate named parts, or provide the receiving holes/lands that explain the separation.
|
|
126
|
+
- Screws are not decoration. A screw needs a clearance/counterbore in the cover, a receiving threaded hole/boss or through stack in the parent, enough material around both, and aligned axes from one shared bolt pattern.
|
|
127
|
+
- Handles and levers need a load path. Model the hub-to-arm connection, pivot pin/bore, thrust washers or shoulders, stops/detents where relevant, and the connected follower/contact surface. A handle tangent to a hub is a failed mechanism.
|
|
128
|
+
- Covers, doors, cartridges, and service panels need seats. Model ledges, gasket grooves, bosses, snap hooks, tabs, or hinge barrels, then show how the removable part is retained.
|
|
129
|
+
- Cables, wires, and tubes need receiving geometry. Model a gland, grommet, clamp, socket, ferrule, routed channel, or hose barb; do not let a cylinder end in open space.
|
|
130
|
+
- Purchased loose parts may remain separate bodies, but they should be named as purchased hardware or consumables and should sit in believable sockets, bores, races, guides, or fastener stacks.
|
|
131
|
+
- Encode interface intent with `verify.*`, not only comments. Use `verify.clearanceBetween("cover is seated on gasket", cover, gasket, -0.01, 0.05)` for contact/seated fits and clearance bands, `verify.minClearance(...)` or `verify.notColliding(...)` for keep-out/running gaps, and `verify.connectorDistance(...)` for connector-authored mates. Part counts and generic dimensions are useful supporting checks, but they do not prove an interface by themselves.
|
|
132
|
+
|
|
133
|
+
For ordinary removable covers, prefer `lib.boltedServiceCover(...)` before hand-placing plates, tabs, screw heads, gaskets, and holes. It creates the parent ledge, gasket, cover plate with fused pull tabs, shared bolt pattern, and installed screws as one mechanically accountable interface.
|
|
134
|
+
|
|
135
|
+
For electronics boxes, backplates, service-stack housings, and camera/monitor enclosures, prefer `lib.datumEnclosureAssembly(...)` before independently placing panels, ribs, bosses, ports, covers, and screws. It creates the tray, ledges, standoffs, ribs, service port, gasket, cover, and screws from one shared datum system.
|
|
136
|
+
|
|
137
|
+
For PCB-mounted terminal blocks, thermostat backplates, control boards, and wire-entry electronics panels, prefer `lib.pcbTerminalBlockAssembly(...)` before placing a loose green block near a board or cover. It creates the backplate, fused standoffs, PCB mounting screws, PCB pin holes, terminal pins, and seated purchased terminal block from one shared datum system.
|
|
138
|
+
|
|
139
|
+
For snap-retained covers, cartridges, small clasps, and housings, prefer `lib.snapLatchCoverAssembly(...)` before drawing decorative snap tabs. It creates latch windows, underside catch lands, fused snap hooks, barbs, and clearance checks so the cover is retained by real geometry.
|
|
140
|
+
|
|
141
|
+
For ordinary pinned handles, cam levers, release levers, and latch arms, prefer `lib.pinnedLeverAssembly(...)` before hand-placing a hub, arm, washers, and pin. It creates a fused lever body, aligned pivot bore, retained pin, thrust washers, support land, and low stop land as one mechanically accountable pivot stack.
|
|
142
|
+
|
|
143
|
+
For trunnions, side knobs, adjustable pivots, and clamp shafts, prefer `lib.retainedShaftAssembly(...)` before hand-placing rods, washers, and knobs. It creates bored support cheeks, a through shaft, thrust washers, knobs, retaining heads, and shared bore dimensions as one mechanically accountable stack.
|
|
144
|
+
|
|
145
|
+
For thumb screws, desk clamps, vise screws, capo pressure screws, and small fixture hold-downs, prefer `lib.thumbScrewClampAssembly(...)` before hand-placing a knob, screw cylinder, pressure pad, and bracket jaw. It creates the C-frame, threaded boss/bore, captive pressure pad, hand knob, and seated workpiece contact from one shared datum system.
|
|
146
|
+
|
|
147
|
+
For drawer slides, quick-release plates, and guided linear carriages, prefer `lib.capturedLinearSlide(...)` before hand-placing rails and a block. It creates a U-channel rail with return lips, end stops, a captured carriage, and explicit travel/clearance dimensions.
|
|
148
|
+
|
|
149
|
+
For pump cartridges, filter cassettes, battery cartridges, skeg cassettes, and removable slide-in modules, prefer `lib.capturedCartridgeGuideAssembly(...)` before placing a loose tray and block. It creates return lips, a rear stop, a captured cartridge flange, pull tab, insertion travel, and explicit clearance dimensions.
|
|
150
|
+
|
|
151
|
+
For molded flexible battery doors, sample covers, blister latches, and polypropylene-style service flaps, prefer `lib.livingHingeCoverAssembly(...)` before drawing two plates with a decorative hinge strip. It creates one fused molded strip with fixed leaf, thin flexible web, moving cover leaf, pull lip, snap barb, catch land, and web-thickness checks.
|
|
152
|
+
|
|
153
|
+
For doors, barn-door leaves, lids, locket leaves, and small hinged access panels, prefer `lib.knuckledHingeAssembly(...)` before hand-placing barrels and a pin. It creates alternating fused knuckles, two leaves, a shared bore, and a retained pin as one mechanically accountable hinge.
|
|
154
|
+
|
|
155
|
+
For crank links, damper rod ends, crossheads, and clevis-yoke pivots, prefer `lib.clevisPinJointAssembly(...)` before hand-placing an eyelet and pin. It creates bored clevis ears, a captured center link eye, a rear bridge, and a retained pin as one mechanically accountable load path.
|
|
156
|
+
|
|
157
|
+
For bearings, rollers, burr cartridges, spindle supports, and purchased radial bearings, prefer `lib.seatedBearingAssembly(...)` before hand-placing a ring and shaft near a block. It creates a bored housing, counterbore pocket, bearing shoulder, seated bearing, shaft, collars, and shared clearance dimensions as one mechanically accountable support.
|
|
158
|
+
|
|
159
|
+
For cables, wires, hoses, pump tubes, and panel pass-throughs, prefer `lib.cableGlandAnchorAssembly(...)` before hand-placing a loose cylinder near a wall. It creates the panel clearance hole, hollow gland body, compression nut, and routed cable/tube as one mechanically accountable pass-through.
|
|
160
|
+
|
|
161
|
+
For routed cables, wires, hoses, pump tubes, and sensor leads that run along a surface, prefer `lib.routedTubeClipAssembly(...)` before drawing a tube that floats between endpoints. It creates a base panel, saddle clip bores, clip screw holes, installed screws, and the retained tube route from one shared datum system.
|
|
162
|
+
|
|
163
|
+
For fluid hoses, pump inlets/outlets, filter ports, and lab tubing, prefer `lib.hoseBarbPortAssembly(...)` before drawing a tube that stops at a block. It creates the bored receiver, raised boss, hollow barbed fitting, installed hose, and clamp band as one accountable hose-port interface.
|
|
164
|
+
|
|
107
165
|
## Final Geometry Should Be Physically Plausible
|
|
108
166
|
|
|
109
167
|
Treat each returned part as real matter occupying space. In the final build, separate parts should not intersect unless the intersection is the actual manufacturing intent, such as a welded/fused region, an overmolded insert, or a boolean-unioned solid that is no longer a separate part.
|
|
@@ -112,7 +170,9 @@ Do not use final interpenetration as a placement shortcut. For joints and interf
|
|
|
112
170
|
|
|
113
171
|
Temporary collisions during construction are fine when they are part of how the model is made or verified: oversized cutter solids before `difference()`, overlapping primitives before `union()`, transparent ghost parts for fit checks, or exploratory joint layouts. Those temporary bodies should be consumed, hidden, named as ghosts, or isolated with inspection filters so final collision findings stay meaningful.
|
|
114
172
|
|
|
115
|
-
|
|
173
|
+
If a final overlap is real manufacturing intent, document the exact visible object pair with `verify.intentionalOverlap("rubber grip is overmolded on handle core", rubberGrip, handleCore, "overmolded bonded grip")`. Use this only for welded, fused, overmolded, cast-in, potted, or bonded matter. The mechanical-integrity gate honors it only when the same visible object pair has a confirmed exact collision; unused or non-visible declarations still fail.
|
|
174
|
+
|
|
175
|
+
Before delivery on any multi-part, internal, or mechanical model, run the collision inspection, read the collision channel PNGs, and check `manifest.json`. Fix unexpected overlaps. If a collision is intentional, declare the exact visible pair with `verify.intentionalOverlap(...)` or isolate that inspection with `--focus` / `--hide` so the remaining collision report proves the final assembly is real.
|
|
116
176
|
|
|
117
177
|
## Final Acceptance Gate
|
|
118
178
|
|
|
@@ -126,6 +186,24 @@ Before telling the user the model is done, prove both technical validity and vis
|
|
|
126
186
|
|
|
127
187
|
The reported component count must match the design intent. Treat unexpected islands, accidental fusion, or bbox-only "touching" that does not make physical sense as model bugs.
|
|
128
188
|
|
|
189
|
+
If the script uses `assembly()`, also run:
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
forgecad debug assembly model.forge.js --fail-on warning
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Fix warnings about multiple roots, manual joint contracts, disconnected bodies inside parts, unused connectors, solve warnings, and collisions before delivery. If a warning is truly intentional, rename the part or add a short code comment so a reviewer can see the physical reason.
|
|
196
|
+
|
|
197
|
+
For generated mechanical projects or batches, also run:
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
forgecad inspect mechanical-integrity . --collisions
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
This is the shareability gate. It fails on missing `verify.*` checks, missing mechanical-interface verification, fragmented named groups, uncontracted manual assemblies, positive-volume object collisions, timeouts, and runtime failures. Do not share a generated mechanical model while this gate is red unless the user explicitly asked for a rough concept/blockout.
|
|
204
|
+
|
|
205
|
+
The model should include at least one verification that proves a mechanical interface, not just object count. Prefer checks such as `verify.clearanceBetween("bearing is seated in pocket", bearing, housing, -0.01, 0.1)`, `verify.minClearance("carriage clears rail", carriage, rail, 0.15)`, `verify.notColliding("cover screw clears parent hole", screw, parent)`, or `verify.connectorDistance("leg connector is seated", bench, "Rail.leg_0", "Leg0.head", 0, 0.01)`.
|
|
206
|
+
|
|
129
207
|
2. Run a collision bundle and read both the manifest and images:
|
|
130
208
|
|
|
131
209
|
```bash
|
|
@@ -240,13 +318,14 @@ return [
|
|
|
240
318
|
|
|
241
319
|
This immediately reveals: does it fit? Does it collide with walls? Does the shaft clear the opening?
|
|
242
320
|
|
|
243
|
-
### Use console.log for
|
|
321
|
+
### Use verify for acceptance, console.log for traces
|
|
244
322
|
|
|
245
|
-
|
|
323
|
+
Use `verify.*` for dimensions and clearances that decide whether the model is acceptable. Use `console.log()` only for explanatory traces that help you read the run output.
|
|
246
324
|
|
|
247
325
|
```js
|
|
248
|
-
|
|
249
|
-
|
|
326
|
+
verify.greaterThan("wall remains around slot", (outerW - slotW) / 2, 1.6);
|
|
327
|
+
verify.greaterThan("hole clears flange edge", flangeW / 2 - holeX - holeDia / 2, 2.0);
|
|
328
|
+
console.log("wall remaining:", ((outerW - slotW) / 2).toFixed(1));
|
|
250
329
|
```
|
|
251
330
|
|
|
252
331
|
Output appears under "Script output:" in `forgecad run`.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: forgecad-prepare-prompt
|
|
3
|
-
description: Turn a fuzzy physical product, mechanism, or CAD artifact request into a concrete ForgeCAD build brief and a single master prompt for the modeling pass. Use when the engineering brief is incomplete, manufacturing/process choice is underspecified, or the work needs a specific operating story to avoid generic toy solutions.
|
|
3
|
+
description: Turn a fuzzy physical product, mechanism, or CAD artifact request into a concrete manufacture-realistic prototype ForgeCAD build brief and a single master prompt for the modeling pass. Use when the engineering brief is incomplete, manufacturing/process choice is underspecified, or the work needs a specific operating story to avoid generic toy solutions.
|
|
4
4
|
forgecad-public: true
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Prepare ForgeCAD Prompt
|
|
8
8
|
|
|
9
|
-
Use this skill before modeling when the user wants something physically real, manufacturing-aware, and buildable, but their request sounds like:
|
|
9
|
+
Use this skill before modeling when the user wants something physically real, manufacturing-aware, and buildable as a manufacture-realistic prototype, but their request sounds like:
|
|
10
10
|
|
|
11
11
|
- "make me a robot gripper"
|
|
12
12
|
- "design a real mechanism"
|
|
@@ -25,6 +25,10 @@ Choose the manufacturing/process stack from the artifact family, load path, scal
|
|
|
25
25
|
For example: scooters, bikes, skateboards, and rideable vehicles usually point toward metal/composite frames, wood/composite decks, urethane/rubber wheels, bearings, brakes, and standard hardware; furniture often points toward wood, sheet goods, tube, metal brackets, or conventional joinery; enclosures may point toward injection molding, sheet metal, CNC, or printing depending on quantity and ruggedness; fixtures may be machined, laser-cut, welded, printed, or hybrid.
|
|
26
26
|
If the user asks for "printable", "3D printed", "laser cut", "CNC", or another process, honor that process while still warning when it is unsafe or dishonest for the duty.
|
|
27
27
|
|
|
28
|
+
The default output posture is **manufacture-realistic prototype** unless the user asks for a different posture.
|
|
29
|
+
This means a serious prototype build candidate with real manufacturing cues, purchased-part boundaries, assembly logic, and validation loops. It is stronger than a visual concept or hobby sketch, but it does not claim final production tooling, certification, rider safety, medical compliance, or release-ready DFM.
|
|
30
|
+
Use `production-realistic` only when the user wants production intent, `printable` only when printing is actually the selected process, and `visual-CAD` only for visual/form studies.
|
|
31
|
+
|
|
28
32
|
Do not let the modeling prompt sound like a casual hobby sketch when the requested artifact belongs to a serious product domain.
|
|
29
33
|
Give the model a specific operating story: a named company or lab, named program, named prototype/revision, review moment, test setting, and concrete reason the part matters.
|
|
30
34
|
If the user did not provide this story, invent plausible non-famous names and details.
|
|
@@ -61,6 +65,7 @@ By the end of this skill, there should be:
|
|
|
61
65
|
- an artifact family classification
|
|
62
66
|
- an assumption bundle with units
|
|
63
67
|
- a clear build profile and manufacturing/process stack
|
|
68
|
+
- a stated output posture, defaulting to manufacture-realistic prototype unless the user chose otherwise
|
|
64
69
|
- a specific operating story
|
|
65
70
|
- a motion / load / size target
|
|
66
71
|
- a BOM boundary
|
|
@@ -124,8 +129,9 @@ By the end of this skill, there should be:
|
|
|
124
129
|
|
|
125
130
|
4. Choose manufacturing/process posture.
|
|
126
131
|
Treat process selection as part of the brief.
|
|
127
|
-
|
|
128
|
-
|
|
132
|
+
Default to `manufacture-realistic prototype`.
|
|
133
|
+
Use `production-realistic`, `prototype-realistic`, `printable`, `visual-CAD`, or a more specific process such as `sheet-metal`, `CNC-machined`, `laser-cut`, `welded tube`, `injection-molded`, `cast`, or `hybrid purchased-hardware` only when the brief justifies that more specific posture.
|
|
134
|
+
Choose the posture that is honest for the artifact rather than the easiest CAD surface to make.
|
|
129
135
|
|
|
130
136
|
5. Pick qualitative levers, not raw numbers.
|
|
131
137
|
Start from:
|
|
@@ -141,7 +147,7 @@ By the end of this skill, there should be:
|
|
|
141
147
|
- for a gripper: object style, opening band, cost/performance posture
|
|
142
148
|
- for a table: use style, span band, load style
|
|
143
149
|
- for an enclosure: electronics size, ruggedness, cooling posture
|
|
144
|
-
- for an underspecified product:
|
|
150
|
+
- for an underspecified product: manufacture-realistic prototype, production-realistic, printable, or visual-CAD posture
|
|
145
151
|
|
|
146
152
|
7. Convert choices into an engineering brief.
|
|
147
153
|
The brief must include:
|
|
@@ -151,6 +157,7 @@ By the end of this skill, there should be:
|
|
|
151
157
|
- production reason
|
|
152
158
|
- test setting
|
|
153
159
|
- what generic output would miss
|
|
160
|
+
- output posture, defaulting to manufacture-realistic prototype unless changed by the user
|
|
154
161
|
- intended objects / loads
|
|
155
162
|
- rough size envelope
|
|
156
163
|
- motion style and degrees of freedom
|
|
@@ -184,7 +191,7 @@ Good:
|
|
|
184
191
|
- "Which target feels closest: a light desk demo, a useful hobby tool, or a sturdier bench mechanism?"
|
|
185
192
|
- "Will it mostly handle soft/light things, mixed household parts, or rigid/tool-like objects?"
|
|
186
193
|
- "Should we bias for cheapest parts, balanced practicality, or stronger hardware?"
|
|
187
|
-
- "Should this be
|
|
194
|
+
- "Should this be a manufacture-realistic prototype, production-realistic, printable, or just a visual CAD study?"
|
|
188
195
|
- "Is this more like a gripper, a fixture, an enclosure, a chassis, or furniture?"
|
|
189
196
|
- "Will the table mostly hold decor, laptop-and-books, or workshop abuse?"
|
|
190
197
|
|
|
@@ -201,6 +208,7 @@ If the user says "I don't know" or gives only a broad goal:
|
|
|
201
208
|
- infer the nearest artifact family from the request
|
|
202
209
|
- invent a specific operating story for the artifact
|
|
203
210
|
- infer the manufacturing/process stack from the artifact family and operating story
|
|
211
|
+
- default the output posture to `manufacture-realistic prototype`
|
|
204
212
|
- choose `general-duty`
|
|
205
213
|
- choose `medium`
|
|
206
214
|
- choose `balanced`
|
|
@@ -16,7 +16,7 @@ They are temporary engineering anchors used only when the user has not provided
|
|
|
16
16
|
|
|
17
17
|
Use these across families before translating into numbers:
|
|
18
18
|
|
|
19
|
-
- manufacturing posture:
|
|
19
|
+
- manufacturing posture: default to `manufacture-realistic prototype` unless specified; common override values are `production-realistic`, `prototype-realistic`, `printable`, and `visual-CAD`
|
|
20
20
|
- duty level: `light-duty`, `general-duty`, `sturdy-duty`
|
|
21
21
|
- scale level: `compact`, `medium`, `large`
|
|
22
22
|
- cost posture: `cheapest`, `balanced`, `performance-first`
|
|
@@ -29,6 +29,8 @@ Do not use 3D printing as the universal default.
|
|
|
29
29
|
Choose the process stack from the artifact family, load path, scale, safety expectations, material properties, quantity/iteration needs, and operating story.
|
|
30
30
|
Only use print defaults when the user explicitly requested printing or the selected process stack includes printed parts.
|
|
31
31
|
|
|
32
|
+
The default posture is `manufacture-realistic prototype`: a credible prototype build candidate with real materials, real purchased parts, plausible fabrication routes, serviceable interfaces, and validation checks. It should be manufacturable enough for a prototype review, but it should not claim final production tooling, certification, or release readiness unless the user asks for that stronger bar.
|
|
33
|
+
|
|
32
34
|
Examples:
|
|
33
35
|
|
|
34
36
|
- rideable vehicles: metal/composite/wood structure, urethane/rubber wheels, bearings, brakes, fasteners, and purchased safety-critical hardware
|
|
@@ -274,7 +276,7 @@ Do not make rideable load paths printed by default.
|
|
|
274
276
|
|
|
275
277
|
### Family Questions
|
|
276
278
|
|
|
277
|
-
- Is this a visual/product CAD study, a
|
|
279
|
+
- Is this a visual/product CAD study, a manufacture-realistic prototype build candidate, or a specifically printable toy/model?
|
|
278
280
|
- Is it for child-scale, adult-scale, display-scale, or cargo/utility scale?
|
|
279
281
|
- Does it need steering, braking, folding, suspension, or only static product form?
|
|
280
282
|
|
|
@@ -288,7 +290,7 @@ Do not make rideable load paths printed by default.
|
|
|
288
290
|
|
|
289
291
|
`general-duty`
|
|
290
292
|
|
|
291
|
-
- adult product form or
|
|
293
|
+
- adult product form or manufacture-realistic prototype scooter/bike/cart architecture
|
|
292
294
|
- aluminum or steel tube/frame members, machined or cast fork/dropout-like features, wood/composite/aluminum deck where appropriate
|
|
293
295
|
- urethane/rubber wheels, real bearings, axles, fasteners, spacers, grip tape, grips, and purchased brake/steering hardware where appropriate
|
|
294
296
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
# ForgeCAD
|
|
1
|
+
# ForgeCAD Manufacture-Realistic Prototype Master Prompt
|
|
2
2
|
|
|
3
3
|
Fill the placeholders and return the finished prompt as one block.
|
|
4
4
|
|
|
5
5
|
```text
|
|
6
|
-
You are producing a ForgeCAD
|
|
6
|
+
You are producing a ForgeCAD manufacture-realistic prototype package, not a concept sketch.
|
|
7
7
|
|
|
8
8
|
Treat this as a serious product-team prototype assignment.
|
|
9
|
-
The goal is to produce a credible internal engineering package for a real build candidate, not a generic maker example.
|
|
9
|
+
The goal is to produce a credible internal engineering package for a real prototype build candidate, not a generic maker example.
|
|
10
10
|
Use the specific operating story below to drive engineering choices; do not flatten it into a vague domain label.
|
|
11
11
|
|
|
12
12
|
Target artifact:
|
|
@@ -25,6 +25,7 @@ Specific operating story:
|
|
|
25
25
|
- benchmark class / public comparison anchor, if useful: {benchmark_class}
|
|
26
26
|
|
|
27
27
|
Chosen intake classification:
|
|
28
|
+
- output posture: manufacture-realistic prototype unless the user explicitly selected another posture
|
|
28
29
|
- artifact family: {artifact_family}
|
|
29
30
|
- duty level: {duty_level}
|
|
30
31
|
- scale level: {scale_level}
|
|
@@ -46,6 +47,7 @@ Hard constraints:
|
|
|
46
47
|
- if the mechanism has moving parts, use a real `assembly()` from iteration 1
|
|
47
48
|
- define real joints, limits, axes, and intended operating ranges
|
|
48
49
|
- choose manufacturing/processes that fit the artifact, load path, scale, safety expectations, and operating story
|
|
50
|
+
- default to manufacture-realistic prototype: real prototype materials, fabrication cues, purchased parts, assembly logic, serviceability, and validation without pretending to be production-certified or release-ready
|
|
49
51
|
- do not assume FDM, 3D printing, or "printable" unless the user explicitly asked for it or the chosen process stack includes printed parts
|
|
50
52
|
- include realistic process-appropriate clearances and mechanically honest interfaces
|
|
51
53
|
- include manufactured, printed, and purchased parts only where each is an honest choice
|
|
@@ -64,7 +66,7 @@ Acceptable final states:
|
|
|
64
66
|
1. `BUILD-READY`
|
|
65
67
|
2. `BEST-EFFORT BUILD CANDIDATE`
|
|
66
68
|
|
|
67
|
-
`BUILD-READY` means the output is specific enough that a competent builder could start fabricating, machining, printing, buying parts, assembling, and testing immediately without inventing missing details.
|
|
69
|
+
`BUILD-READY` means the output is specific enough that a competent builder could start fabricating, machining, printing selected printed parts, buying parts, assembling, and testing the prototype immediately without inventing missing details.
|
|
68
70
|
|
|
69
71
|
`BEST-EFFORT BUILD CANDIDATE` means you still provide the strongest concrete design possible, but you explicitly name the smallest unavoidable validation loop that remains.
|
|
70
72
|
|
|
@@ -105,7 +107,7 @@ Required outputs:
|
|
|
105
107
|
- Specify the actuator class, approximate required torque/force, transmission approach, and why they fit the chosen profile.
|
|
106
108
|
|
|
107
109
|
6. Manufacturing package
|
|
108
|
-
- For each critical part: material, manufacturing process, setup/orientation/tooling/finish assumptions, serviceability notes, and features sensitive to process accuracy.
|
|
110
|
+
- For each critical part: material, manufacturing process, prototype setup/orientation/tooling/finish assumptions, serviceability notes, and features sensitive to process accuracy.
|
|
109
111
|
- If the selected process includes printed parts, include print orientation, likely support strategy, and print-sensitive features for those parts.
|
|
110
112
|
|
|
111
113
|
7. Bill of materials
|
|
@@ -158,7 +158,7 @@ PNG review order:
|
|
|
158
158
|
## Interpretation Rules
|
|
159
159
|
|
|
160
160
|
- Collision findings are positive-volume boolean overlaps. Face-touching is not a collision.
|
|
161
|
-
- Connectivity
|
|
161
|
+
- Connectivity uses bbox as a broadphase, then exact overlap evidence for component grouping. Bbox-only contact does not merge separate scene objects by default; use the collisions channel for positive-volume overlap evidence.
|
|
162
162
|
- Distance is a bbox-gap metric between physical components, not exact closest surface distance.
|
|
163
163
|
- Thickness is a mesh/raycast approximation. Gray or high unresolved area means the visual heatmap is incomplete, not that the model is safe.
|
|
164
164
|
- Depth is a visual heatmap, not raw floating-point depth data.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Bolted service cover: parent ledge, gasket, fused pull tabs, aligned holes, and installed screws.
|
|
2
|
+
|
|
3
|
+
const cover = lib.boltedServiceCover({
|
|
4
|
+
width: 90,
|
|
5
|
+
depth: 56,
|
|
6
|
+
coverThickness: 3,
|
|
7
|
+
parentThickness: 8,
|
|
8
|
+
ledgeWidth: 10,
|
|
9
|
+
screwSize: 'M4',
|
|
10
|
+
boltInset: [6, 6],
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
verify.equal('four retained cover screws', cover.screws.length, 4);
|
|
14
|
+
verify.greaterThan('cover has edge margin around service opening', cover.dims.ledgeWidth, 6);
|
|
15
|
+
verify.notColliding('cover does not collide with gasket', cover.cover, cover.gasket);
|
|
16
|
+
|
|
17
|
+
return cover.parts;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const anchor = lib.cableGlandAnchorAssembly({
|
|
2
|
+
cableDiameter: 6,
|
|
3
|
+
panelThickness: 3,
|
|
4
|
+
panelWidth: 62,
|
|
5
|
+
panelHeight: 44,
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
verify.equal('cable gland anchor has four retained parts', anchor.parts.length, 4);
|
|
9
|
+
verify.greaterThan('panel leaves material around gland flange', anchor.dims.panelHeight - anchor.dims.flangeDiameter, 8);
|
|
10
|
+
verify.notColliding('cable clears gland bore', anchor.cable, anchor.gland);
|
|
11
|
+
verify.notColliding('gland clears panel hole', anchor.gland, anchor.panel);
|
|
12
|
+
verify.clearanceBetween('gland flange is seated at panel pocket', anchor.gland, anchor.panel, 0.01, 0.2);
|
|
13
|
+
|
|
14
|
+
return anchor.parts;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const cassette = lib.capturedCartridgeGuideAssembly({
|
|
2
|
+
length: 150,
|
|
3
|
+
cartridgeLength: 72,
|
|
4
|
+
insertion: 28,
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
verify.equal('cartridge guide has guide and removable cassette', cassette.parts.length, 2);
|
|
8
|
+
verify.notColliding('cartridge clears guide rails and rear stop', cassette.cartridge, cassette.guide);
|
|
9
|
+
verify.greaterThan('cartridge flange is captured by guide lips', cassette.dims.cartridgeWidth, cassette.dims.throatWidth);
|
|
10
|
+
verify.lessThan('cartridge still clears inner guide width', cassette.dims.cartridgeWidth, cassette.dims.innerWidth);
|
|
11
|
+
verify.greaterThan('cartridge body passes through the guide throat', cassette.dims.throatWidth, cassette.dims.cartridgeBodyWidth);
|
|
12
|
+
verify.inRange('cartridge insertion stays inside travel', cassette.dims.insertion, 0, cassette.dims.maxInsertion);
|
|
13
|
+
|
|
14
|
+
return cassette.parts;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const slide = lib.capturedLinearSlide({
|
|
2
|
+
length: 160,
|
|
3
|
+
railWidth: 38,
|
|
4
|
+
carriageLength: 52,
|
|
5
|
+
travel: 42,
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
verify.equal('captured slide has rail and carriage parts', slide.parts.length, 2);
|
|
9
|
+
verify.greaterThan('carriage is wider than the throat opening', slide.dims.carriageWidth, slide.dims.throatWidth);
|
|
10
|
+
verify.greaterThan('slide retains usable travel', slide.dims.maxTravel, 80);
|
|
11
|
+
verify.minClearance('carriage clears captured rail', slide.carriage, slide.rail, 0.05);
|
|
12
|
+
|
|
13
|
+
return slide.parts;
|