Add 27-model production-line Web FreeCAD course tooling and pages

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
2026-11-13 04:16:04 +08:00
parent 789e18ca3e
commit 4eff6110e7
447 changed files with 29820 additions and 71 deletions

104
.gitignore vendored
View File

@@ -1,73 +1,35 @@
# file types to ignore /freecad-source/build-web/
.* /freecad-source/build/
!*.gitattributes /web/node_modules/
!*.gitignore /web/dist/
!/.clang-format /web/public/kernel/
!/.clang-tidy /web/public/modules/
!/.git-blame-ignore-revs /docs/current/continuation-runs/
!/.gitattributes /docs/current/user-tests-20260915/
!/.github/ /docs/current/business-evidence/
!/.gitignore /docs/current/failure-evidence/
!/.gitmodules /docs/current/round-reports/
!/.packit.yaml /docs/current/periodic-optimization/
!/.pre-commit-config.yaml /docs/current/operator-gap-discovery/
!/.pylintrc **/__pycache__/
!/contrib/.vscode/
*.clangd
*.DS_Store
*.dep
*.exp
*.kdev4
*.lib
*.manifest
*.o
*.obj
*.orig
*.output
*.pch
*.pyc *.pyc
*.vcproj *.log
# Ignore .db files created by Qt Designer when editing .ui files *.out
*.db *.tmp
*qrc.depends .env*
*~
BuildLog.htm
CMakeCache.txt
CMakeFiles/
CMakeLists.txt.user
Makefile
cmake_install.cmake
config.h
install_manifest.txt
moc_*.cpp
qrc_*.cpp
ui_*.h
/.vscode/
/ALL_BUILD.dir/
/Mod/
/ZERO_CHECK.dir/
/bin/
/build-*/
/build/
/cmake-build*/
/conda/environment.yml
/doc/
/lib/
/src/Tools/offlinedoc/*.txt
/src/Tools/offlinedoc/localwiki/
OpenSCAD_rc.py
tags
/CMakeUserPresets.json
Testing
compile_commands.json
*.sublime-project
*.sublime-workspace
# crowdin file # BIM workshop video production cache (raw recording, Chrome profile, ffmpeg segments)
files_to_translate.txt web/tools/bim-workshop-video/profile/
src/Tools/freecad.zip web/tools/bim-workshop-video/raw/
tsupdate_stderr.log web/tools/bim-workshop-video/segments/
tsupdate_stdout.log
# pixi environments # Production-line course: regenerable recording/audio caches and local media
*.egg-info web/tools/line-course/raw/
.pixi web/tools/line-course/episodes/*/segments/
web/tools/line-course/episodes/*/audio/
web/teaching/media/line-course/*.mp4
web/teaching/media/line-course/*.webm
web/teaching/media/line-course/*.vtt
web/teaching/media/line-course/*.srt
web/teaching/media/line-course/*-poster.png
web/teaching/cases/line-models

302
web/public/line/models.json Normal file
View File

@@ -0,0 +1,302 @@
{
"schema": "freecad-web-line-course/reference-models/v1",
"models": [
{
"file": "ABB_IRB_120.glb",
"name": "ABB_IRB_120",
"label": "ABB IRB 120 机器人",
"dims": [
219.36,
687.567,
699.587
],
"parts": 11
},
{
"file": "Tool.glb",
"name": "ToolFrame",
"label": "工具坐标系",
"dims": [
72.244,
72.244,
72.244
],
"parts": 3
},
{
"file": "三柜子.glb",
"name": "CabinetA",
"label": "主控制柜",
"dims": [
1499.932,
744.225,
754
],
"parts": 8
},
{
"file": "三柜子1.glb",
"name": "CabinetB",
"label": "长控制柜",
"dims": [
2969.994,
774.283,
774.001
],
"parts": 8
},
{
"file": "三色灯.glb",
"name": "StackLight",
"label": "三色警示灯",
"dims": [
50,
40,
468
],
"parts": 2
},
{
"file": "上料.glb",
"name": "Loader",
"label": "上料机构",
"dims": [
374.932,
140,
212
],
"parts": 2
},
{
"file": "传送带送料装置.glb",
"name": "ConveyorFeeder",
"label": "传送带送料装置",
"dims": [
613.967,
270.043,
204.607
],
"parts": 6
},
{
"file": "原料上料.glb",
"name": "RawFeeder",
"label": "原料上料装置",
"dims": [
210,
208,
204.1
],
"parts": 5
},
{
"file": "原料装配.glb",
"name": "RawAssembly",
"label": "原料装配平台",
"dims": [
498.3,
144.929,
338.125
],
"parts": 3
},
{
"file": "原点.glb",
"name": "OriginMarker",
"label": "原点标记",
"dims": [
141.682,
141.682,
141.682
],
"parts": 3
},
{
"file": "地面平面.glb",
"name": "GroundPlane",
"label": "地面与地线",
"dims": [
4867.482,
3673.23,
310.061
],
"parts": 2
},
{
"file": "夹取送料装置.glb",
"name": "PickFeeder",
"label": "夹取送料装置",
"dims": [
1026,
277.257,
455.018
],
"parts": 5
},
{
"file": "平面.001.glb",
"name": "Plane001",
"label": "地面平面 001",
"dims": [
4867.482,
3673.23,
310.061
],
"parts": 2
},
{
"file": "平面.glb",
"name": "Plane",
"label": "地面平面",
"dims": [
4867.482,
3673.23,
310.061
],
"parts": 2
},
{
"file": "推料装置.glb",
"name": "Pusher",
"label": "推料装置",
"dims": [
490,
336,
587.8
],
"parts": 2
},
{
"file": "料仓.glb",
"name": "Hopper",
"label": "料仓",
"dims": [
280,
250,
200
],
"parts": 2
},
{
"file": "新版2.glb",
"name": "SensorBlock",
"label": "新版检测块",
"dims": [
21.992,
21.967,
7
],
"parts": 1
},
{
"file": "旋转运送装置.glb",
"name": "RotaryTransfer",
"label": "旋转运送装置",
"dims": [
536.869,
536.268,
202
],
"parts": 2
},
{
"file": "显示屏.glb",
"name": "DisplayA",
"label": "显示屏 A",
"dims": [
249,
161.2,
312
],
"parts": 2
},
{
"file": "显示屏1.glb",
"name": "DisplayB",
"label": "显示屏 B",
"dims": [
249,
161.2,
312
],
"parts": 2
},
{
"file": "柜门.glb",
"name": "CabinetDoor",
"label": "柜门",
"dims": [
30,
560,
560
],
"parts": 1
},
{
"file": "检测台.glb",
"name": "InspectionTable",
"label": "检测台",
"dims": [
75,
148.486,
325
],
"parts": 1
},
{
"file": "物料存储区.glb",
"name": "MaterialStore",
"label": "物料存储区",
"dims": [
351.815,
82.979,
412.75
],
"parts": 5
},
{
"file": "称重平台.glb",
"name": "WeighPlatform",
"label": "称重平台",
"dims": [
200,
199.316,
175
],
"parts": 2
},
{
"file": "辅助夹爪.glb",
"name": "AuxGripper",
"label": "辅助夹爪",
"dims": [
73.312,
94.272,
102.394
],
"parts": 3
},
{
"file": "运送支架.glb",
"name": "TransportBracket",
"label": "运送支架",
"dims": [
60,
113.5,
310
],
"parts": 1
},
{
"file": "运送检测装置.glb",
"name": "TransportInspector",
"label": "运送检测装置",
"dims": [
75,
148.486,
325
],
"parts": 2
}
]
}

View File

@@ -0,0 +1,156 @@
import React, { useEffect, useRef, useState } from "react";
import * as THREE from "three";
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader.js";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";
// Three.js reference viewer for GLB models. The OCCT build used by the Web
// kernel is configured with USE_RAPIDJSON=OFF, so RWGltf cannot read/write
// glTF; this React panel provides the reference view without touching the
// kernel. It supports Y-up (DELTA) and Z-up (production-line) GLBs.
export type GlbReferenceModel = { file: string; label: string; name?: string; dims?: number[] };
export function GlbReferencePanel({
src, title = "参考模型", upAxis = "y", ariaLabel = "GLB reference viewer",
modelsUrl, onClose,
}: {
src?: string;
title?: string;
upAxis?: "y" | "z";
ariaLabel?: string;
modelsUrl?: string;
onClose: () => void;
}) {
const host = useRef<HTMLDivElement>(null);
const [info, setInfo] = useState("加载参考模型…");
const [error, setError] = useState("");
const [models, setModels] = useState<GlbReferenceModel[]>([]);
const [selected, setSelected] = useState(src ?? "");
useEffect(() => {
if (!modelsUrl) return;
let cancelled = false;
fetch(modelsUrl).then(response => response.json()).then(payload => {
if (cancelled) return;
const list: GlbReferenceModel[] = payload.models ?? [];
setModels(list);
setSelected(current => current || (list[0] ? `/line-glb/${encodeURIComponent(list[0].file)}` : ""));
}).catch(loadError => { if (!cancelled) setError(String(loadError?.message ?? loadError)); });
return () => { cancelled = true; };
}, [modelsUrl]);
useEffect(() => {
const container = host.current;
const effectiveSrc = selected || src;
if (!container || !effectiveSrc) return;
let disposed = false;
const scene = new THREE.Scene();
scene.background = new THREE.Color(0x0f1419);
const camera = new THREE.PerspectiveCamera(42, 1, 0.01, 100000);
camera.up.set(0, upAxis === "z" ? 0 : 1, upAxis === "z" ? 1 : 0);
const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: false });
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
container.appendChild(renderer.domElement);
renderer.domElement.style.width = "100%";
renderer.domElement.style.height = "100%";
renderer.domElement.style.display = "block";
scene.add(new THREE.HemisphereLight(0xffffff, 0x334455, 2.2));
const key = new THREE.DirectionalLight(0xffffff, 2.2);
key.position.set(2, 4, 3); scene.add(key);
const fill = new THREE.DirectionalLight(0xffffff, 0.9);
fill.position.set(-3, 1, -2); scene.add(fill);
const controls = new OrbitControls(camera, renderer.domElement);
controls.enableDamping = true; controls.dampingFactor = 0.08;
const resize = () => {
const width = container.clientWidth || 430;
const height = container.clientHeight || 260;
renderer.setSize(width, height, false);
camera.aspect = width / height;
camera.updateProjectionMatrix();
};
resize();
const observer = new ResizeObserver(resize);
observer.observe(container);
setError("");
setInfo("加载参考模型…");
new GLTFLoader().load(effectiveSrc, gltf => {
if (disposed) return;
const root = gltf.scene;
scene.add(root);
const box = new THREE.Box3().setFromObject(root);
const size = box.getSize(new THREE.Vector3());
const center = box.getCenter(new THREE.Vector3());
root.position.sub(center);
const maxSize = Math.max(size.x, size.y, size.z) || 1;
camera.position.set(maxSize * 1.15, maxSize * 1.25, maxSize * 1.45);
if (upAxis === "z") camera.position.set(maxSize * 1.15, -maxSize * 1.45, maxSize * 1.05);
camera.near = maxSize / 200; camera.far = maxSize * 30;
camera.updateProjectionMatrix();
controls.target.set(0, 0, 0); controls.update();
let meshes = 0;
root.traverse(child => { if ((child as THREE.Mesh).isMesh) meshes++; });
setInfo(`${meshes} 个网格 · 包围盒 ${size.x.toFixed(2)} × ${size.y.toFixed(2)} × ${size.z.toFixed(2)} m`);
}, undefined, loadError => {
if (!disposed) setError(String((loadError as Error | undefined)?.message ?? loadError));
});
let frame = 0;
const animate = () => {
frame = requestAnimationFrame(animate);
controls.update();
renderer.render(scene, camera);
};
animate();
return () => {
disposed = true;
cancelAnimationFrame(frame);
observer.disconnect();
controls.dispose();
scene.traverse(child => {
const mesh = child as THREE.Mesh;
if (!mesh.isMesh) return;
mesh.geometry?.dispose();
const materials = Array.isArray(mesh.material) ? mesh.material : [mesh.material];
for (const material of materials) {
const map = (material as THREE.MeshStandardMaterial | undefined)?.map;
map?.dispose();
material?.dispose();
}
});
renderer.dispose();
if (renderer.domElement.parentElement === container) container.removeChild(renderer.domElement);
};
}, [selected, src, upAxis]);
return <aside aria-label={ariaLabel} style={{
position: "fixed", right: 16, bottom: 48, width: 430, maxWidth: "calc(100vw - 24px)",
background: "#0f1419", color: "#dbe6ee", border: "1px solid #3f3f3f", borderRadius: 8,
boxShadow: "0 12px 32px #0008", zIndex: 60, display: "flex", flexDirection: "column", overflow: "hidden",
}}>
<header style={{ display: "flex", alignItems: "center", gap: 8, padding: "6px 10px", borderBottom: "1px solid #2a3a45" }}>
<strong style={{ fontSize: 13 }}>{title}</strong>
{models.length > 0 && <select aria-label="Reference model" value={selected}
onChange={event => setSelected(event.target.value)}
style={{ maxWidth: 190, background: "#0b1014", color: "#dbe6ee", border: "1px solid #3f3f3f", borderRadius: 4 }}>
{models.map(model => <option key={model.file} value={`/line-glb/${encodeURIComponent(model.file)}`}>
{model.label}</option>)}
</select>}
<button type="button" aria-label="Close reference viewer" onClick={onClose} style={{ marginLeft: "auto", background: "transparent", color: "#dbe6ee", border: "1px solid #3f3f3f", borderRadius: 4, cursor: "pointer" }}>关闭</button>
</header>
<div ref={host} style={{ height: 260 }} />
<footer style={{ padding: "4px 10px 8px", fontSize: 11, color: "#93a6b3" }}>
{error ? `加载失败:${error}` : info}
</footer>
</aside>;
}
export function DeltaReferencePanel({ onClose }: { onClose: () => void }) {
return <GlbReferencePanel src="/delta/DELTA-OK01.glb" title="参考模型 DELTA-OK01.glb"
upAxis="y" ariaLabel="Delta reference viewer" onClose={onClose} />;
}
export function LineReferencePanel({ onClose }: { onClose: () => void }) {
return <GlbReferencePanel modelsUrl="/line/models.json" title="产线参考模型"
upAxis="z" ariaLabel="Line reference viewer" onClose={onClose} />;
}

3121
web/src/project-shell.tsx Normal file

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,90 @@
{
"CabinetA_P01": 684,
"CabinetA_P02": 684,
"CabinetA_P03": 684,
"CabinetA_P04": 684,
"CabinetA_P05": 684,
"CabinetA_P06": 684,
"CabinetA_P07": 684,
"CabinetA_P08": 684,
"CabinetB_P01": 684,
"CabinetB_P02": 684,
"CabinetB_P03": 684,
"CabinetB_P04": 684,
"CabinetB_P05": 684,
"CabinetB_P06": 684,
"CabinetB_P07": 684,
"CabinetB_P08": 684,
"CabinetDoor_P01": 684,
"DisplayA_P01": 684,
"DisplayA_P02": 684,
"DisplayB_P01": 684,
"DisplayB_P02": 684,
"Hopper_P01": 684,
"Hopper_P02": 684,
"RawFeeder_P01": 684,
"RawFeeder_P02": 684,
"RawFeeder_P03": 684,
"RawFeeder_P04": 684,
"RawFeeder_P05": 684,
"Loader_P01": 684,
"Loader_P02": 684,
"ConveyorFeeder_P01": 684,
"ConveyorFeeder_P02": 684,
"ConveyorFeeder_P03": 684,
"ConveyorFeeder_P04": 684,
"ConveyorFeeder_P05": 684,
"ConveyorFeeder_P06": 684,
"RotaryTransfer_P01": 684,
"RotaryTransfer_P02": 684,
"WeighPlatform_P01": 684,
"WeighPlatform_P02": 684,
"PickFeeder_P01": 684,
"PickFeeder_P02": 684,
"PickFeeder_P03": 684,
"PickFeeder_P04": 684,
"PickFeeder_P05": 684,
"AuxGripper_P01": 684,
"AuxGripper_P02": 684,
"AuxGripper_P03": 684,
"Pusher_P01": 684,
"Pusher_P02": 684,
"MaterialStore_P01": 684,
"MaterialStore_P02": 684,
"MaterialStore_P03": 684,
"MaterialStore_P04": 684,
"MaterialStore_P05": 684,
"SensorBlock_P01": 684,
"TransportBracket_P01": 684,
"TransportInspector_P01": 684,
"TransportInspector_P02": 25084,
"RawAssembly_P01": 684,
"RawAssembly_P02": 684,
"RawAssembly_P03": 684,
"InspectionTable_P01": 684,
"StackLight_P01": 684,
"StackLight_P02": 25084,
"ToolFrame_P01": 684,
"ToolFrame_P02": 684,
"ToolFrame_P03": 25084,
"OriginMarker_P01": 684,
"OriginMarker_P02": 684,
"OriginMarker_P03": 25084,
"ABB_IRB_120_P01": 684,
"ABB_IRB_120_P02": 684,
"ABB_IRB_120_P03": 25084,
"ABB_IRB_120_P04": 684,
"ABB_IRB_120_P05": 684,
"ABB_IRB_120_P06": 684,
"ABB_IRB_120_P07": 684,
"ABB_IRB_120_P08": 684,
"ABB_IRB_120_P09": 684,
"ABB_IRB_120_P10": 684,
"ABB_IRB_120_P11": 684,
"GroundPlane_P01": 684,
"GroundPlane_P02": 684,
"Plane_P01": 684,
"Plane_P02": 684,
"Plane001_P01": 684,
"Plane001_P02": 684
}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View File

@@ -0,0 +1,399 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="data:," />
<title>生产线 27 件 GLB 模型 Web FreeCAD 初学者视频课程</title>
<style>
:root { color-scheme: dark; --bg: #0f1419; --panel: #17212b; --line: #2a3a45; --text: #dbe6ee; --muted: #93a6b3; --accent: #73c6d4; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 system-ui, "Noto Sans SC", sans-serif; }
header.top { position: sticky; top: 0; z-index: 2; background: #0b1116ee; border-bottom: 1px solid var(--line); padding: 12px 20px; backdrop-filter: blur(6px); }
header.top h1 { margin: 0 0 6px; font-size: 20px; }
.progress { height: 8px; background: var(--panel); border-radius: 4px; overflow: hidden; max-width: 520px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
main { max-width: 1280px; margin: 0 auto; padding: 20px; }
.season h2 { margin: 28px 0 12px; font-size: 18px; color: var(--accent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.episode { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.episode.pending { opacity: .75; border-style: dashed; }
.episode header { display: flex; align-items: center; gap: 8px; }
.episode h3 { margin: 0; font-size: 16px; flex: 1; }
.badge { background: #24414b; color: var(--accent); border-radius: 4px; padding: 1px 6px; font-size: 12px; }
.done { font-size: 12px; color: var(--muted); white-space: nowrap; }
video { background: #000; border-radius: 6px; aspect-ratio: 16 / 9; }
.links a, .asset { color: var(--accent); }
.muted { color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 4px 6px; vertical-align: top; }
details { border-top: 1px solid var(--line); padding-top: 8px; font-size: 14px; }
.stills { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 8px; }
.stills figure { margin: 0; background: #0d1318; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stills img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.stills figcaption { padding: 3px 6px; font-size: 11px; color: var(--muted); }
summary { cursor: pointer; color: var(--accent); }
ul { margin: 6px 0 6px 18px; padding: 0; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } main { padding: 12px; } }
.hero { max-width: 1280px; margin: 18px auto 0; padding: 0 20px; }
.hero h2 { color: #73c6d4; font-size: 18px; margin: 0 0 10px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero figure { margin: 0; background: #17212b; border: 1px solid #2a3a45; border-radius: 10px; overflow: hidden; }
.hero img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0d1318; }
.hero figcaption { padding: 8px 12px; font-size: 13px; color: #93a6b3; }
.hero a { color: #73c6d4; }
@media (max-width: 760px) { .hero-grid { grid-template-columns: 1fr; } }
</style>
</head>
<body>
<header class="top">
<h1>生产线 27 件 GLB 模型 Web FreeCAD 初学者视频课程</h1>
<div class="progress" aria-label="课程完成度"><span id="progress-bar"></span></div>
<p id="progress-text" class="muted" style="margin:6px 0 0;font-size:13px"></p>
</header>
<main>
<section class="season" id="S0">
<h2>S0 · 入门与参考模型</h2>
<div class="grid"><article class="episode" id="E01" data-episode="E01">
<header>
<span class="badge">E01</span>
<h3>界面与产线参考模型</h3>
<label class="done"><input type="checkbox" data-progress="E01" /> 已完成</label>
</header>
<video controls preload="metadata" poster="/media/line-course/E01-ui-and-reference-poster.png" width="100%">
<source src="/media/line-course/E01-ui-and-reference.mp4" type="video/mp4" />
<source src="/media/line-course/E01-ui-and-reference.webm" type="video/webm" />
<track kind="subtitles" srclang="zh" label="中文" src="/media/line-course/E01-ui-and-reference.zh.vtt" default />
</video>
<p class="links"><a href="/media/line-course/E01-ui-and-reference.mp4" download>MP4</a> · <a href="/media/line-course/E01-ui-and-reference.webm" download>WebM</a> · <a href="/media/line-course/E01-ui-and-reference.zh.srt" download>SRT</a></p>
<details><summary>分步截图(6)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E01/S00-title.png" alt="E01 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E01/S01-interface.png" alt="E01 S01-interface.png" /><figcaption>S01-interface</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E01/S02-reference.png" alt="E01 S02-reference.png" /><figcaption>S02-reference</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E01/S03-cabinet.png" alt="E01 S03-cabinet.png" /><figcaption>S03-cabinet</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E01/S04-units.png" alt="E01 S04-units.png" /><figcaption>S04-units</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E01/S05-recap.png" alt="E01 S05-recap.png" /><figcaption>S05-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>认识 Web FreeCAD 的对象树、三维视口和属性面板</li><li>新建空白文档并在视口中旋转、缩放</li><li>打开产线参考模型查看器,确认 27 个 GLB 的尺寸</li><li>理解本批参考模型是 Z-up、米制,进入 FreeCAD 后统一换算为毫米</li></ul>
<table><tr><th>参考模型数量</th><td>27 个 GLB</td></tr><tr><th>教学部件总数</th><td>约 88 个 Box/Cylinder</td></tr><tr><th>主控制柜包围盒</th><td>1500 × 744 × 754 mm</td></tr><tr><th>地面与地线包围盒</th><td>4867 × 3673 × 310 mm</td></tr><tr><th>坐标约定</th><td>Z-up,米 ×1000 → 毫米</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>能新建文档,并看到左侧对象树为空</li><li>参考查看器下拉列表有 27 项</li><li>主控制柜显示 1.50 × 0.74 × 0.75 m</li><li>地面与地线显示 4.87 × 3.67 × 0.31 m</li><li>视口可以旋转和缩放</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>把参考查看器当成导入:它只显示 GLB,不会在文档里生成对象</li><li>把米直接当毫米填进属性面板,模型会小一千倍</li><li>把 GLB 的 Y-up 约定套到这批文件上,模型会躺倒</li></ul><p>在查看器里依次找到料仓、ABB IRB 120 和显示屏,记录它们的包围盒,下一集填进零件表。</p></details>
<p><span class="asset muted">检查点:无</span></p>
</article>
<article class="episode" id="E02" data-episode="E02">
<header>
<span class="badge">E02</span>
<h3>测量、单位与零件表</h3>
<label class="done"><input type="checkbox" data-progress="E02" /> 已完成</label>
</header>
<video controls preload="metadata" poster="/media/line-course/E02-measure-and-spec-poster.png" width="100%">
<source src="/media/line-course/E02-measure-and-spec.mp4" type="video/mp4" />
<source src="/media/line-course/E02-measure-and-spec.webm" type="video/webm" />
<track kind="subtitles" srclang="zh" label="中文" src="/media/line-course/E02-measure-and-spec.zh.vtt" default />
</video>
<p class="links"><a href="/media/line-course/E02-measure-and-spec.mp4" download>MP4</a> · <a href="/media/line-course/E02-measure-and-spec.webm" download>WebM</a> · <a href="/media/line-course/E02-measure-and-spec.zh.srt" download>SRT</a></p>
<details><summary>分步截图(6)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E02/S00-title.png" alt="E02 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E02/S01-reference.png" alt="E02 S01-reference.png" /><figcaption>S01-reference</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E02/S02-table.png" alt="E02 S02-table.png" /><figcaption>S02-table</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E02/S03-formula.png" alt="E02 S03-formula.png" /><figcaption>S03-formula</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E02/S04-audit.png" alt="E02 S04-audit.png" /><figcaption>S04-audit</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E02/S05-recap.png" alt="E02 S05-recap.png" /><figcaption>S05-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>从参考查看器读取包围盒并换算成毫米</li><li>用 Spreadsheet 建立可复用的零件表</li><li>用公式核对尺寸联动,理解参数化表的用法</li><li>识别单位错误和轴向错误的典型症状</li></ul>
<table><tr><th>零件表列</th><td>模型、长X、宽Y、高Z、中心X、中心Y、中心Z</td></tr><tr><th>代表模型</th><td>主控制柜、料仓、传送带、夹取、ABB、地面</td></tr><tr><th>公式测试</th><td>B8 = B2 + C2;B2 1500 → 1600 → 1500</td></tr><tr><th>单位</th><td>全部为毫米</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>查看器列表为 27 项</li><li>六行零件表全部填写</li><li>公式 B8 能随 B2 变化</li><li>恢复原值后公式结果回到初始值</li><li>所有尺寸都是毫米量级</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>把查看器的米数直接填进毫米表</li><li>把 Z-up 当成 Y-up,Y/Z 对调</li><li>公式引用错列,导致结果与手算不一致</li></ul><p>把其余 21 件模型的包围盒也补进零件表,并按工位排序。</p></details>
<p><span class="asset muted">检查点:无</span></p>
</article></div>
</section>
<section class="season" id="S1">
<h2>S1 · 机柜与显示屏</h2>
<div class="grid"><article class="episode" id="E03" data-episode="E03">
<header>
<span class="badge">E03</span>
<h3>主控制柜</h3>
<label class="done"><input type="checkbox" data-progress="E03" /> 已完成</label>
</header>
<video controls preload="metadata" poster="/media/line-course/E03-cabinet-a-poster.png" width="100%">
<source src="/media/line-course/E03-cabinet-a.mp4" type="video/mp4" />
<source src="/media/line-course/E03-cabinet-a.webm" type="video/webm" />
<track kind="subtitles" srclang="zh" label="中文" src="/media/line-course/E03-cabinet-a.zh.vtt" default />
</video>
<p class="links"><a href="/media/line-course/E03-cabinet-a.mp4" download>MP4</a> · <a href="/media/line-course/E03-cabinet-a.webm" download>WebM</a> · <a href="/media/line-course/E03-cabinet-a.zh.srt" download>SRT</a></p>
<details><summary>分步截图(7)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E03/S00-title.png" alt="E03 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E03/S01-document.png" alt="E03 S01-document.png" /><figcaption>S01-document</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E03/S02-parts.png" alt="E03 S02-parts.png" /><figcaption>S02-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E03/S03-parts.png" alt="E03 S03-parts.png" /><figcaption>S03-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E03/S04-parts.png" alt="E03 S04-parts.png" /><figcaption>S04-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E03/S05-parts.png" alt="E03 S05-parts.png" /><figcaption>S05-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E03/S06-recap.png" alt="E03 S06-recap.png" /><figcaption>S06-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>把复杂柜体拆成 8 个可参数化的图元部件</li><li>用 Box 的 Length/Width/Height 精确控制尺寸</li><li>用 Position 面板按参考最小角点摆放</li><li>用 Object Color 设置并保存部件颜色</li></ul>
<table><tr><th>柜体 P02</th><td>1500 × 744.2 × 754 mm @ (-35, -214.3, 0)</td></tr><tr><th>立柱 P01/P03</th><td>440 × 134.3 × 597 mm</td></tr><tr><th>柜门 P04</th><td>30 × 560 × 560 mm</td></tr><tr><th>横梁 P05/P06</th><td>40 × 560 × 40 mm</td></tr><tr><th>背板 P07/P08</th><td>440 × 30 × 560 mm</td></tr><tr><th>整体包围盒</th><td>1500 × 744 × 754 mm</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>对象树有 8 个 CabinetA_Pxx 对象</li><li>每个对象尺寸与参数表一致</li><li>柜门厚度方向为 X=30 mm</li><li>颜色与参考一致,黑色立柱不发白</li><li>保存后重新打开,对象和颜色仍在</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>把柜门厚度填到 Z 方向,门会变成一块立着的厚板</li><li>位置填成中心而不是最小角点,整体偏移半个尺寸</li><li>只设了显示颜色但没有触发应用,保存后颜色丢失</li></ul><p>把柜体 P02 的宽度改成 800 mm,观察整体包围盒变化,再改回 744.2。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E03.FCStd" download>下载 E03 检查点 FCStd</a></p>
</article>
<article class="episode pending" id="E04" data-episode="E04">
<header>
<span class="badge">E04</span>
<h3>长控制柜</h3>
<label class="done"><input type="checkbox" data-progress="E04" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(7)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E04/S00-title.png" alt="E04 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E04/S01-start.png" alt="E04 S01-start.png" /><figcaption>S01-start</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E04/S02-parts.png" alt="E04 S02-parts.png" /><figcaption>S02-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E04/S03-parts.png" alt="E04 S03-parts.png" /><figcaption>S03-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E04/S04-parts.png" alt="E04 S04-parts.png" /><figcaption>S04-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E04/S05-parts.png" alt="E04 S05-parts.png" /><figcaption>S05-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E04/S06-recap.png" alt="E04 S06-recap.png" /><figcaption>S06-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>在已有检查点上增量建模,保持累计场景</li><li>用重复的立柱/横梁建立长柜体的节奏</li><li>控制薄板类部件的厚度方向</li><li>保存前做累计 16 对象的全量精度检查</li></ul>
<table><tr><th>整体包围盒</th><td>2970 × 774 × 774 mm</td></tr><tr><th>左柜体 P02</th><td>1500 × 744.2 × 754 mm</td></tr><tr><th>顶板 P04</th><td>2960 × 640 × 20.3 mm</td></tr><tr><th>右侧小柜 P05</th><td>540 × 640 × 600 mm</td></tr><tr><th>横梁 P06/P07</th><td>40 × 560 × 40 mm</td></tr><tr><th>背板 P08</th><td>440 × 30 × 560 mm</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>打开 E03 检查点后能看到 8 个 CabinetA 对象</li><li>新增 8 个 CabinetB_Pxx 对象</li><li>顶板厚度为 20 mm</li><li>累计 16 个对象全部通过精度检查</li><li>E04 检查点保存成功</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>新建了空白文档,丢掉上一集的柜体</li><li>顶板长度填到 Y 方向,柜体变成 T 形</li><li>右侧小柜和主体重叠过多,整体包围盒变短</li></ul><p>把顶板 P04 的厚度从 20 改成 30 mm,观察整体高度变化,再改回 20.3。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E04.FCStd" download>下载 E04 检查点 FCStd</a></p>
</article>
<article class="episode pending" id="E05" data-episode="E05">
<header>
<span class="badge">E05</span>
<h3>柜门与双显示屏</h3>
<label class="done"><input type="checkbox" data-progress="E05" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(6)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E05/S00-title.png" alt="E05 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E05/S01-start.png" alt="E05 S01-start.png" /><figcaption>S01-start</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E05/S02-parts.png" alt="E05 S02-parts.png" /><figcaption>S02-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E05/S03-parts.png" alt="E05 S03-parts.png" /><figcaption>S03-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E05/S04-parts.png" alt="E05 S04-parts.png" /><figcaption>S04-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E05/S05-recap.png" alt="E05 S05-recap.png" /><figcaption>S05-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>掌握薄板类零件的厚度方向</li><li>用同一套参数复用两块显示屏</li><li>理解屏幕外壳与面板的前后层级</li><li>在累计文档中检查对象命名和数量</li></ul>
<table><tr><th>柜门</th><td>30 × 560 × 560 mm</td></tr><tr><th>显示屏屏体</th><td>249 × 161.2 × 312 mm</td></tr><tr><th>显示屏面板</th><td>204 × 115.7 × 148.4 mm</td></tr><tr><th>显示屏 A 位置</th><td>(-1472.4, -127.7, 774) mm</td></tr><tr><th>显示屏 B 位置</th><td>(-1194.5, -325, 40) mm</td></tr><tr><th>累计对象</th><td>21</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>柜门厚度为 X=30 mm</li><li>两块屏体外壳尺寸相同</li><li>面板在屏体前方,颜色更深</li><li>对象树出现 DisplayA_P01/P02 与 DisplayB_P01/P02</li><li>累计 21 个对象全部通过精度检查</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>把柜门厚度填成 560,门变成方块</li><li>两块屏共用同一个位置,重叠在一起</li><li>面板和外壳颜色设反,屏幕看起来是凸出的白块</li></ul><p>把显示屏 B 的 Z 位置整体抬高 100 mm,观察它与操作台的关系,再恢复。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E05.FCStd" download>下载 E05 检查点 FCStd</a></p>
</article></div>
</section>
<section class="season" id="S2">
<h2>S2 · 上料与输送</h2>
<div class="grid"><article class="episode pending" id="E06" data-episode="E06">
<header>
<span class="badge">E06</span>
<h3>料仓与原料上料</h3>
<label class="done"><input type="checkbox" data-progress="E06" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(7)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E06/S00-title.png" alt="E06 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E06/S01-start.png" alt="E06 S01-start.png" /><figcaption>S01-start</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E06/S02-parts.png" alt="E06 S02-parts.png" /><figcaption>S02-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E06/S03-parts.png" alt="E06 S03-parts.png" /><figcaption>S03-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E06/S04-parts.png" alt="E06 S04-parts.png" /><figcaption>S04-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E06/S05-parts.png" alt="E06 S05-parts.png" /><figcaption>S05-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E06/S06-recap.png" alt="E06 S06-recap.png" /><figcaption>S06-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>建立料仓的外箱与内胆层次</li><li>用绿色导轨检验颜色设置</li><li>判断什么时候用 Box 而不是 Cylinder</li><li>在累计 28 个对象时保持精度检查</li></ul>
<table><tr><th>料仓外箱</th><td>280 × 250 × 200 mm @ Z=774</td></tr><tr><th>料仓内胆</th><td>190.6 × 190.8 × 65 mm</td></tr><tr><th>上料机架</th><td>84.8 × 56 × 189.7 mm</td></tr><tr><th>绿色导轨</th><td>77.2 × 27.4 × 16 mm,绿色</td></tr><tr><th>上料底板</th><td>210 × 208 × 186 mm</td></tr><tr><th>上料圆柱件</th><td>68.4 × 56.4 × 100 mm(非正圆,用 Box)</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>料仓外箱底部在 Z=774 mm</li><li>绿色导轨颜色正确</li><li>上料底板与机架没有左右错位</li><li>累计 28 个对象全部通过精度检查</li><li>E06 检查点保存成功</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>把非正圆截面强行做成圆柱,Y 方向超出公差</li><li>料仓落到 Z=0,沉到台面下面</li><li>绿色导轨忘记设颜色,验收时颜色通道对不上</li></ul><p>把料仓外箱高度从 200 改成 240 mm,观察内胆是否被完全包住,再改回 200。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E06.FCStd" download>下载 E06 检查点 FCStd</a></p>
</article>
<article class="episode pending" id="E07" data-episode="E07">
<header>
<span class="badge">E07</span>
<h3>上料与传送带送料</h3>
<label class="done"><input type="checkbox" data-progress="E07" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(7)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E07/S00-title.png" alt="E07 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E07/S01-start.png" alt="E07 S01-start.png" /><figcaption>S01-start</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E07/S02-parts.png" alt="E07 S02-parts.png" /><figcaption>S02-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E07/S03-parts.png" alt="E07 S03-parts.png" /><figcaption>S03-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E07/S04-parts.png" alt="E07 S04-parts.png" /><figcaption>S04-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E07/S05-parts.png" alt="E07 S05-parts.png" /><figcaption>S05-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E07/S06-recap.png" alt="E07 S06-recap.png" /><figcaption>S06-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>建立悬臂式上料机构</li><li>理解传送带框架、皮带、滚筒的层级</li><li>用小件补齐模型细节</li><li>检查长条设备的 X 方向尺寸</li></ul>
<table><tr><th>上料机架</th><td>165 × 140 × 212 mm</td></tr><tr><th>上料顶梁</th><td>319.9 × 40 × 30 mm</td></tr><tr><th>传送带框架</th><td>497 × 170 × 174 mm</td></tr><tr><th>皮带</th><td>508.4 × 100 × 68.9 mm @ Z=906</td></tr><tr><th>滚筒</th><td>44.5 × 152.5 × 34 mm,黑色</td></tr><tr><th>料口</th><td>395 × 165 × 204.6 mm</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>上料顶梁向右侧伸出</li><li>皮带高于框架,Z 起点约 906 mm</li><li>黑色滚筒位于皮带右端</li><li>六个 ConveyorFeeder 对象齐全</li><li>累计 36 个对象全部通过精度检查</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>把皮带和框架放在同一高度,皮带陷进框架</li><li>滚筒位置放到左端,与料口方向相反</li><li>漏建挡板或侧轨,对象数少两件</li></ul><p>把皮带长度增加 20 mm,观察它与框架的相对长度,再恢复。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E07.FCStd" download>下载 E07 检查点 FCStd</a></p>
</article>
<article class="episode pending" id="E08" data-episode="E08">
<header>
<span class="badge">E08</span>
<h3>旋转运送与称重平台</h3>
<label class="done"><input type="checkbox" data-progress="E08" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(5)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E08/S00-title.png" alt="E08 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E08/S01-start.png" alt="E08 S01-start.png" /><figcaption>S01-start</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E08/S02-parts.png" alt="E08 S02-parts.png" /><figcaption>S02-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E08/S03-parts.png" alt="E08 S03-parts.png" /><figcaption>S03-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E08/S04-recap.png" alt="E08 S04-recap.png" /><figcaption>S04-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>建立大直径转盘的包围盒</li><li>控制薄台面的厚度方向</li><li>理解同一工位内两个部件的相对高度</li><li>在 40 个对象的累计文档中定位新对象</li></ul>
<table><tr><th>旋转电机</th><td>340 × 265 × 165 mm,黑色</td></tr><tr><th>转盘</th><td>536.9 × 536.3 × 47 mm @ Z=929</td></tr><tr><th>称重底座</th><td>200 × 199.3 × 170 mm</td></tr><tr><th>称重台面</th><td>149.7 × 150 × 5 mm @ Z=944</td></tr><tr><th>累计对象</th><td>40</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>转盘顶面高于电机</li><li>称重台面厚度为 5 mm</li><li>台面位于底座正上方</li><li>累计 40 个对象全部通过精度检查</li><li>E08 检查点保存成功</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>把转盘厚度 47 填到 Z 以外的方向</li><li>称重台面与底座错位半个尺寸</li><li>电机颜色忘记改成黑色</li></ul><p>把称重台面抬高 20 mm,观察它与底座之间出现间隙,再恢复。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E08.FCStd" download>下载 E08 检查点 FCStd</a></p>
</article></div>
</section>
<section class="season" id="S3">
<h2>S3 · 抓取、推料与存储</h2>
<div class="grid"><article class="episode pending" id="E09" data-episode="E09">
<header>
<span class="badge">E09</span>
<h3>夹取送料与辅助夹爪</h3>
<label class="done"><input type="checkbox" data-progress="E09" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(7)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E09/S00-title.png" alt="E09 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E09/S01-start.png" alt="E09 S01-start.png" /><figcaption>S01-start</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E09/S02-parts.png" alt="E09 S02-parts.png" /><figcaption>S02-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E09/S03-parts.png" alt="E09 S03-parts.png" /><figcaption>S03-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E09/S04-parts.png" alt="E09 S04-parts.png" /><figcaption>S04-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E09/S05-parts.png" alt="E09 S05-parts.png" /><figcaption>S05-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E09/S06-recap.png" alt="E09 S06-recap.png" /><figcaption>S06-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>建立一米级横向夹取机构</li><li>控制悬臂与滑座的高度层级</li><li>建立三件式夹爪结构</li><li>在 48 个对象中检查新工位</li></ul>
<table><tr><th>夹爪本体</th><td>148.5 × 60 × 60 mm,黑色</td></tr><tr><th>机架</th><td>420 × 200 × 441.8 mm</td></tr><tr><th>横梁</th><td>810 × 72 × 82 mm</td></tr><tr><th>滑座</th><td>242.9 × 143.2 × 119.2 mm</td></tr><tr><th>辅助夹爪上座</th><td>73.3 × 94.3 × 38.1 mm</td></tr><tr><th>辅助夹爪指尖</th><td>34.1 × 29.9 × 53.9 mm</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>横梁跨度为 810 mm</li><li>夹爪在横梁下方</li><li>辅助夹爪三件对齐</li><li>累计 48 个对象全部通过</li><li>E09 检查点保存成功</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>横梁长度少填一位,整条抓取装置缩到十分之一</li><li>滑座放到横梁上方</li><li>辅助夹爪三件互相穿插</li></ul><p>把滑座沿 X 方向移动 50 mm,观察它与横梁的相对位置,再恢复。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E09.FCStd" download>下载 E09 检查点 FCStd</a></p>
</article>
<article class="episode pending" id="E10" data-episode="E10">
<header>
<span class="badge">E10</span>
<h3>推料装置与物料存储区</h3>
<label class="done"><input type="checkbox" data-progress="E10" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(7)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E10/S00-title.png" alt="E10 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E10/S01-start.png" alt="E10 S01-start.png" /><figcaption>S01-start</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E10/S02-parts.png" alt="E10 S02-parts.png" /><figcaption>S02-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E10/S03-parts.png" alt="E10 S03-parts.png" /><figcaption>S03-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E10/S04-parts.png" alt="E10 S04-parts.png" /><figcaption>S04-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E10/S05-parts.png" alt="E10 S05-parts.png" /><figcaption>S05-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E10/S06-recap.png" alt="E10 S06-recap.png" /><figcaption>S06-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>建立竖直推杆结构</li><li>用四个同尺寸支座练习阵列位置</li><li>检查阵列件的坐标是否成对</li><li>在 55 个对象中定位新工位</li></ul>
<table><tr><th>推料底座</th><td>490 × 230 × 85 mm</td></tr><tr><th>推杆</th><td>149.6 × 336 × 532.6 mm</td></tr><tr><th>存储区大板</th><td>351.8 × 83 × 412.8 mm</td></tr><tr><th>支座</th><td>39.9 × 40 × 30 mm × 4</td></tr><tr><th>累计对象</th><td>55</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>推杆竖直安装</li><li>四个支座位置成矩形</li><li>支座颜色一致</li><li>累计 55 个对象全部通过</li><li>E10 检查点保存成功</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>推杆方向填反,向左侧伸出</li><li>四个支座 Z 高度不一致</li><li>只建了两个支座,对象数少两件</li></ul><p>把四个支座的 Z 坐标统一加 10 mm,观察大板与支座的间隙,再恢复。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E10.FCStd" download>下载 E10 检查点 FCStd</a></p>
</article>
<article class="episode pending" id="E11" data-episode="E11">
<header>
<span class="badge">E11</span>
<h3>检测块、支架与运送检测</h3>
<label class="done"><input type="checkbox" data-progress="E11" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(5)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E11/S00-title.png" alt="E11 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E11/S01-start.png" alt="E11 S01-start.png" /><figcaption>S01-start</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E11/S02-parts.png" alt="E11 S02-parts.png" /><figcaption>S02-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E11/S03-parts.png" alt="E11 S03-parts.png" /><figcaption>S03-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E11/S04-recap.png" alt="E11 S04-recap.png" /><figcaption>S04-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>建立 7 mm 薄板小件</li><li>第一次用 Part Cylinder 建圆柱</li><li>确认圆柱包围盒 30 × 30 × 60</li><li>检查小件在对象树中的命名</li></ul>
<table><tr><th>检测块</th><td>22 × 22 × 7 mm</td></tr><tr><th>运送支架</th><td>60 × 113.5 × 310 mm</td></tr><tr><th>检测头主体</th><td>75 × 148.5 × 325 mm</td></tr><tr><th>红色圆柱</th><td>半径 15 mm × 高度 60 mm</td></tr><tr><th>累计对象</th><td>59</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>检测块厚度为 7 mm</li><li>圆柱半径 15、高度 60</li><li>圆柱颜色为红色</li><li>累计 59 个对象全部通过</li><li>E11 检查点保存成功</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>圆柱半径填成直径 30</li><li>圆柱高度填成 30</li><li>小件在视口里点不中,误选了别的对象</li></ul><p>把圆柱半径改成 12 mm,观察包围盒从 30 变成 24,再恢复 15。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E11.FCStd" download>下载 E11 检查点 FCStd</a></p>
</article></div>
</section>
<section class="season" id="S4">
<h2>S4 · 装配与检测</h2>
<div class="grid"><article class="episode pending" id="E12" data-episode="E12">
<header>
<span class="badge">E12</span>
<h3>原料装配与检测台</h3>
<label class="done"><input type="checkbox" data-progress="E12" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(5)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E12/S00-title.png" alt="E12 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E12/S01-start.png" alt="E12 S01-start.png" /><figcaption>S01-start</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E12/S02-parts.png" alt="E12 S02-parts.png" /><figcaption>S02-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E12/S03-parts.png" alt="E12 S03-parts.png" /><figcaption>S03-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E12/S04-recap.png" alt="E12 S04-recap.png" /><figcaption>S04-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>建立大板加立柱的装配平台</li><li>处理 5 mm 见方的细杆</li><li>建立单根立柱式检测台</li><li>在 63 个对象中确认细杆存在</li></ul>
<table><tr><th>装配大板</th><td>498.3 × 92 × 338.1 mm @ Z=786</td></tr><tr><th>装配立柱</th><td>70.6 × 78.5 × 128.5 mm</td></tr><tr><th>细杆</th><td>192.5 × 5 × 5 mm</td></tr><tr><th>检测台</th><td>75 × 148.5 × 325 mm</td></tr><tr><th>累计对象</th><td>63</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>大板抬到 786 mm</li><li>细杆尺寸 192.5 × 5 × 5</li><li>检测台落在台面上</li><li>累计 63 个对象全部通过</li><li>E12 检查点保存成功</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>细杆尺寸填成 192.5 × 50 × 50</li><li>装配立柱沉到大板下面</li><li>检测台位置与其它工位重叠</li></ul><p>把细杆直径从 5 改成 8 mm,观察它与大板的相对粗细,再恢复。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E12.FCStd" download>下载 E12 检查点 FCStd</a></p>
</article>
<article class="episode pending" id="E13" data-episode="E13">
<header>
<span class="badge">E13</span>
<h3>三色灯、工具坐标系与原点</h3>
<label class="done"><input type="checkbox" data-progress="E13" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(7)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E13/S00-title.png" alt="E13 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E13/S01-start.png" alt="E13 S01-start.png" /><figcaption>S01-start</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E13/S02-parts.png" alt="E13 S02-parts.png" /><figcaption>S02-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E13/S03-parts.png" alt="E13 S03-parts.png" /><figcaption>S03-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E13/S04-parts.png" alt="E13 S04-parts.png" /><figcaption>S04-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E13/S05-parts.png" alt="E13 S05-parts.png" /><figcaption>S05-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E13/S06-recap.png" alt="E13 S06-recap.png" /><figcaption>S06-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>用 Cylinder 建立灯柱与 Z 轴</li><li>用纯红/纯绿/纯蓝标记 XYZ 轴</li><li>区分 72 mm 工具坐标与 142 mm 原点标记</li><li>检查圆柱半径与高度</li></ul>
<table><tr><th>三色灯底座</th><td>50 × 40 × 228 mm</td></tr><tr><th>三色灯柱</th><td>R20 × 240 mm,绿色</td></tr><tr><th>Tool X/Y 轴</th><td>67.7 × 9 × 9 mm,红/绿</td></tr><tr><th>Tool Z 轴</th><td>R4.5 × 67.7 mm,蓝色</td></tr><tr><th>原点 X/Y 轴</th><td>132.8 × 17.7 × 17.7 mm,红/绿</td></tr><tr><th>原点 Z 轴</th><td>R8.85 × 132.8 mm,蓝色</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>灯柱半径 20、高度 240</li><li>Tool 三轴长度一致</li><li>原点三轴长度一致</li><li>红绿蓝颜色通道正确</li><li>累计 71 个对象全部通过</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>圆柱半径填成直径</li><li>把 Z 轴做成立着的 Box</li><li>红绿蓝设反,X 轴变绿</li></ul><p>把 Tool 的 Z 轴高度改成 100 mm,观察三轴不再等长,再恢复 67.7。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E13.FCStd" download>下载 E13 检查点 FCStd</a></p>
</article></div>
</section>
<section class="season" id="S5">
<h2>S5 · 机器人工作站</h2>
<div class="grid"><article class="episode pending" id="E14" data-episode="E14">
<header>
<span class="badge">E14</span>
<h3>ABB IRB 120 六轴机器人</h3>
<label class="done"><input type="checkbox" data-progress="E14" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(9)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E14/S00-title.png" alt="E14 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E14/S01-start.png" alt="E14 S01-start.png" /><figcaption>S01-start</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E14/S02-parts.png" alt="E14 S02-parts.png" /><figcaption>S02-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E14/S03-parts.png" alt="E14 S03-parts.png" /><figcaption>S03-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E14/S04-parts.png" alt="E14 S04-parts.png" /><figcaption>S04-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E14/S05-parts.png" alt="E14 S05-parts.png" /><figcaption>S05-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E14/S06-parts.png" alt="E14 S06-parts.png" /><figcaption>S06-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E14/S07-parts.png" alt="E14 S07-parts.png" /><figcaption>S07-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E14/S08-recap.png" alt="E14 S08-recap.png" /><figcaption>S08-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>按六轴结构拆分机器人</li><li>用 Cylinder 建立下臂</li><li>区分黑色车漆、不锈钢、白钢三种颜色</li><li>检查圆柱包围盒与整机高度</li></ul>
<table><tr><th>底座</th><td>214.9 × 217.3 × 177 mm,黑色</td></tr><tr><th>下臂圆柱</th><td>R109.7 × 431.2 mm,白色</td></tr><tr><th>上臂</th><td>115.5 × 234 × 188.1 mm</td></tr><tr><th>腕部黑色端板</th><td>95.9 × 5 × 96 mm</td></tr><tr><th>夹爪本体</th><td>94.3 × 38 × 73.3 mm,白钢</td></tr><tr><th>整机高度</th><td>约 700 mm(Z 774–1474)</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>下臂圆柱直径 219.4、高度 431.2</li><li>黑色端板厚度 5 mm</li><li>夹爪两片夹指齐全</li><li>整机 Z 范围 774–1474 mm</li><li>累计 82 个对象全部通过</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>圆柱半径填成 219.4(直径)</li><li>下臂高度填成 43.12,机器人缩成一半</li><li>黑色端板和白色腕部颜色设反</li></ul><p>把下臂圆柱高度减少 50 mm,观察腕部位置下移,再恢复。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E14.FCStd" download>下载 E14 检查点 FCStd</a></p>
</article>
<article class="episode pending" id="E15" data-episode="E15">
<header>
<span class="badge">E15</span>
<h3>机器人工作站复核</h3>
<label class="done"><input type="checkbox" data-progress="E15" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(5)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E15/S00-title.png" alt="E15 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E15/S01-checkpoint.png" alt="E15 S01-checkpoint.png" /><figcaption>S01-checkpoint</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E15/S02-reference.png" alt="E15 S02-reference.png" /><figcaption>S02-reference</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E15/S03-robot.png" alt="E15 S03-robot.png" /><figcaption>S03-robot</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E15/S04-recap.png" alt="E15 S04-recap.png" /><figcaption>S04-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>复核机器人工作站的完整对象集</li><li>用参考查看器核对三件关键模型</li><li>从侧面检查机器人层级</li><li>保存无新增几何的复核检查点</li></ul>
<table><tr><th>累计对象</th><td>82</td></tr><tr><th>ABB 包围盒</th><td>219 × 688 × 700 mm</td></tr><tr><th>三色灯包围盒</th><td>50 × 40 × 468 mm</td></tr><tr><th>Tool 包围盒</th><td>72 × 72 × 72 mm</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>对象树 82 个对象齐全</li><li>ABB 包围盒与参考一致</li><li>三色灯立在柜顶</li><li>Tool 三轴等长</li><li>E15 检查点保存成功</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>检查点未加载完就开始数对象</li><li>把 Tool 的 72 mm 当成 720 mm</li><li>只看了正面,没有检查侧面层级</li></ul><p>在视口里隐藏地面,单独观察机器人工作站,再恢复显示。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E15.FCStd" download>下载 E15 检查点 FCStd</a></p>
</article></div>
</section>
<section class="season" id="S6">
<h2>S6 · 场景、总装与交付</h2>
<div class="grid"><article class="episode pending" id="E16" data-episode="E16">
<header>
<span class="badge">E16</span>
<h3>地面平面与地线</h3>
<label class="done"><input type="checkbox" data-progress="E16" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(6)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E16/S00-title.png" alt="E16 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E16/S01-start.png" alt="E16 S01-start.png" /><figcaption>S01-start</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E16/S02-parts.png" alt="E16 S02-parts.png" /><figcaption>S02-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E16/S03-parts.png" alt="E16 S03-parts.png" /><figcaption>S03-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E16/S04-parts.png" alt="E16 S04-parts.png" /><figcaption>S04-parts</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E16/S05-recap.png" alt="E16 S05-recap.png" /><figcaption>S05-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>建立超大薄板地面</li><li>重复模型但独立定位</li><li>检查 88 个对象全部到齐</li><li>为总装准备完整场景</li></ul>
<table><tr><th>地面大板</th><td>4867.5 × 3673.2 × 310.1 mm</td></tr><tr><th>黄色地线</th><td>4855.3 × 1109.3 × 0.1 mm</td></tr><tr><th>地面模型</th><td>GroundPlane / Plane / Plane001</td></tr><tr><th>累计对象</th><td>88</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>三块地面尺寸一致</li><li>地线颜色为黄色</li><li>地线 Z 厚度接近 0</li><li>27 个模型 88 个部件全部存在</li><li>E16 检查点保存成功</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>复制地面时连位置一起复制,三块重叠</li><li>地线厚度填成 310,变成一堵墙</li><li>漏掉第三块重复地面</li></ul><p>把第二块地面沿 X 平移 500 mm,观察它与第一块的关系,再恢复。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E16.FCStd" download>下载 E16 检查点 FCStd</a></p>
</article>
<article class="episode pending" id="E17" data-episode="E17">
<header>
<span class="badge">E17</span>
<h3>整线总装</h3>
<label class="done"><input type="checkbox" data-progress="E17" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(5)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E17/S00-title.png" alt="E17 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E17/S01-assembly.png" alt="E17 S01-assembly.png" /><figcaption>S01-assembly</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E17/S02-links.png" alt="E17 S02-links.png" /><figcaption>S02-links</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E17/S03-audit.png" alt="E17 S03-audit.png" /><figcaption>S03-audit</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E17/S04-recap.png" alt="E17 S04-recap.png" /><figcaption>S04-recap</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>在 Assembly 工作台新建总装文档</li><li>把 88 个部件插入为链接</li><li>核对链接数量避免缺件/重复</li><li>理解链接装配与复制几何的区别</li></ul>
<table><tr><th>总装文档</th><td>LineAssembly / 生产线总装</td></tr><tr><th>源文件</th><td>line-course-E16.FCStd</td></tr><tr><th>链接数量</th><td>88</td></tr><tr><th>源对象</th><td>27 个模型 / 88 个部件</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>总装文档创建成功</li><li>源对象列表加载完成</li><li>88 条链接全部插入</li><li>Accept 后链接保留</li><li>没有重复链接</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>源文件选错,插入了旧检查点</li><li>只插入一部分就 Accept</li><li>重复点击 Insert 产生重复链接</li></ul><p>在总装里选择一条链接,查看它的源文档和源对象名。</p></details>
<p><span class="asset muted">检查点:无</span></p>
</article>
<article class="episode pending" id="E18" data-episode="E18">
<header>
<span class="badge">E18</span>
<h3>精度审计与交付</h3>
<label class="done"><input type="checkbox" data-progress="E18" /> 已完成</label>
</header>
<p class="pending-note">视频待制作(脚本与参数已就绪)。</p>
<details><summary>分步截图(5)</summary><div class="stills"><figure><img loading="lazy" src="/media/line-course/stills/E18/S00-title.png" alt="E18 S00-title.png" /><figcaption>S00-title</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E18/S01-audit.png" alt="E18 S01-audit.png" /><figcaption>S01-audit</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E18/S02-exports.png" alt="E18 S02-exports.png" /><figcaption>S02-exports</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E18/S03-recap.png" alt="E18 S03-recap.png" /><figcaption>S03-recap</figcaption></figure><figure><img loading="lazy" src="/media/line-course/stills/E18/S04-delivery.png" alt="E18 S04-delivery.png" /><figcaption>S04-delivery</figcaption></figure></div></details>
<details><summary>学习目标与参数表</summary>
<ul><li>对 27 个模型 88 个部件做全量审计</li><li>从 UI 导出 STEP/STL 到 OPFS</li><li>保存 E18 交付检查点与证据</li><li>理解 OPFS 与本地下载的边界</li></ul>
<table><tr><th>模型数</th><td>27</td></tr><tr><th>部件数</th><td>88</td></tr><tr><th>部件包围盒容差</th><td>1.5 mm</td></tr><tr><th>中心容差</th><td>3 mm</td></tr><tr><th>颜色容差</th><td>每通道 0.02</td></tr><tr><th>导出目录</th><td>OPFS freecad-exports</td></tr></table>
</details>
<details><summary>自检清单</summary><ul><li>88 个对象全部加载</li><li>STEP 导出成功</li><li>STL 导出成功</li><li>全量精度审计通过</li><li>E18 检查点与课程证据写入</li></ul></details>
<details><summary>常见错误与练习</summary><ul><li>未选中对象就点导出,得到空文件</li><li>把 OPFS 文件当成已下载到本地</li><li>审计时只检查新对象,漏掉前面工位</li></ul><p>在 freecad-exports 列表里找到刚导出的 STEP/STL,记录文件名与大小。</p></details>
<p><a class="asset" href="/media/line-course/checkpoints/E18.FCStd" download>下载 E18 检查点 FCStd</a></p>
</article></div>
</section>
</main>
<script>
const boxes = [...document.querySelectorAll('input[data-progress]')];
const key = 'line-course-progress-v1';
const load = () => { try { return JSON.parse(localStorage.getItem(key) || '{}'); } catch { return {}; } };
const save = value => localStorage.setItem(key, JSON.stringify(value));
const render = () => {
const done = boxes.filter(box => box.checked).length;
document.getElementById('progress-bar').style.width = boxes.length ? (100 * done / boxes.length) + '%' : '0';
document.getElementById('progress-text').textContent = done + ' / ' + boxes.length + ' 集已完成';
};
const state = load();
for (const box of boxes) {
box.checked = Boolean(state[box.dataset.progress]);
box.addEventListener('change', () => { const value = load(); value[box.dataset.progress] = box.checked; save(value); render(); });
}
render();
</script>
</body>
</html>

View File

@@ -0,0 +1,93 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="data:," />
<title>生产线参考模型 · 27 个 GLB</title>
<style>
html, body { margin: 0; height: 100%; background: #0d1318; color: #dbe6ee; font: 14px/1.5 system-ui, "Noto Sans SC", sans-serif; overflow: hidden; }
header { position: fixed; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #0b1116e6; border-bottom: 1px solid #2a3a45; }
header h1 { margin: 0; font-size: 16px; }
header select { background: #0b1014; color: #dbe6ee; border: 1px solid #3f3f3f; border-radius: 4px; padding: 3px 6px; max-width: 240px; }
header .stats { color: #93a6b3; font-size: 12px; }
#view { position: fixed; inset: 48px 0 0 0; }
#hint { position: fixed; left: 16px; bottom: 12px; color: #6f8390; font-size: 12px; z-index: 2; }
</style>
<script type="importmap">{ "imports": { "three": "./vendor/three.module.js" } }</script>
</head>
<body>
<header>
<h1>生产线参考模型</h1>
<select id="model" aria-label="Reference model"></select>
<span class="stats" id="stats">加载中…</span>
</header>
<div id="view"></div>
<p id="hint">左键旋转 · 滚轮缩放 · 右键平移</p>
<script type="module">
import * as THREE from "three";
import { OrbitControls } from "./vendor/OrbitControls.js";
import { GLTFLoader } from "./vendor/GLTFLoader.js";
const MODELS = [{"file":"ABB_IRB_120.glb","name":"ABB_IRB_120","label":"ABB IRB 120 机器人","dims":[219.36,687.567,699.587],"parts":11},{"file":"Tool.glb","name":"ToolFrame","label":"工具坐标系","dims":[72.244,72.244,72.244],"parts":3},{"file":"三柜子.glb","name":"CabinetA","label":"主控制柜","dims":[1499.932,744.225,754],"parts":8},{"file":"三柜子1.glb","name":"CabinetB","label":"长控制柜","dims":[2969.994,774.283,774.001],"parts":8},{"file":"三色灯.glb","name":"StackLight","label":"三色警示灯","dims":[50,40,468],"parts":2},{"file":"上料.glb","name":"Loader","label":"上料机构","dims":[374.932,140,212],"parts":2},{"file":"传送带送料装置.glb","name":"ConveyorFeeder","label":"传送带送料装置","dims":[613.967,270.043,204.607],"parts":6},{"file":"原料上料.glb","name":"RawFeeder","label":"原料上料装置","dims":[210,208,204.1],"parts":5},{"file":"原料装配.glb","name":"RawAssembly","label":"原料装配平台","dims":[498.3,144.929,338.125],"parts":3},{"file":"原点.glb","name":"OriginMarker","label":"原点标记","dims":[141.682,141.682,141.682],"parts":3},{"file":"地面平面.glb","name":"GroundPlane","label":"地面与地线","dims":[4867.482,3673.23,310.061],"parts":2},{"file":"夹取送料装置.glb","name":"PickFeeder","label":"夹取送料装置","dims":[1026,277.257,455.018],"parts":5},{"file":"平面.001.glb","name":"Plane001","label":"地面平面 001","dims":[4867.482,3673.23,310.061],"parts":2},{"file":"平面.glb","name":"Plane","label":"地面平面","dims":[4867.482,3673.23,310.061],"parts":2},{"file":"推料装置.glb","name":"Pusher","label":"推料装置","dims":[490,336,587.8],"parts":2},{"file":"料仓.glb","name":"Hopper","label":"料仓","dims":[280,250,200],"parts":2},{"file":"新版2.glb","name":"SensorBlock","label":"新版检测块","dims":[21.992,21.967,7],"parts":1},{"file":"旋转运送装置.glb","name":"RotaryTransfer","label":"旋转运送装置","dims":[536.869,536.268,202],"parts":2},{"file":"显示屏.glb","name":"DisplayA","label":"显示屏 A","dims":[249,161.2,312],"parts":2},{"file":"显示屏1.glb","name":"DisplayB","label":"显示屏 B","dims":[249,161.2,312],"parts":2},{"file":"柜门.glb","name":"CabinetDoor","label":"柜门","dims":[30,560,560],"parts":1},{"file":"检测台.glb","name":"InspectionTable","label":"检测台","dims":[75,148.486,325],"parts":1},{"file":"物料存储区.glb","name":"MaterialStore","label":"物料存储区","dims":[351.815,82.979,412.75],"parts":5},{"file":"称重平台.glb","name":"WeighPlatform","label":"称重平台","dims":[200,199.316,175],"parts":2},{"file":"辅助夹爪.glb","name":"AuxGripper","label":"辅助夹爪","dims":[73.312,94.272,102.394],"parts":3},{"file":"运送支架.glb","name":"TransportBracket","label":"运送支架","dims":[60,113.5,310],"parts":1},{"file":"运送检测装置.glb","name":"TransportInspector","label":"运送检测装置","dims":[75,148.486,325],"parts":2}];
const host = document.getElementById("view");
const select = document.getElementById("model");
for (const model of MODELS) {
const option = document.createElement("option");
option.value = model.file;
option.textContent = model.label;
select.appendChild(option);
}
const scene = new THREE.Scene();
scene.background = new THREE.Color(0x0d1318);
const camera = new THREE.PerspectiveCamera(42, host.clientWidth / host.clientHeight, 0.001, 1000);
camera.up.set(0, 0, 1);
const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
renderer.setSize(host.clientWidth, host.clientHeight);
host.appendChild(renderer.domElement);
scene.add(new THREE.HemisphereLight(0xffffff, 0x334455, 2.4));
const key = new THREE.DirectionalLight(0xffffff, 2.2); key.position.set(400, 700, 500); scene.add(key);
const fill = new THREE.DirectionalLight(0xffffff, 0.8); fill.position.set(-600, 200, -400); scene.add(fill);
const controls = new OrbitControls(camera, renderer.domElement);
controls.enableDamping = true; controls.dampingFactor = 0.08;
let root = null;
const load = async file => {
document.getElementById("stats").textContent = "加载中…";
if (root) {
scene.remove(root);
root.traverse(child => { if (child.isMesh) { child.geometry?.dispose(); child.material?.dispose?.(); } });
root = null;
}
const gltf = await new GLTFLoader().loadAsync("./line-models/" + encodeURIComponent(file));
root = gltf.scene;
scene.add(root);
const box = new THREE.Box3().setFromObject(root);
const size = box.getSize(new THREE.Vector3());
const center = box.getCenter(new THREE.Vector3());
root.position.sub(center);
const maxSize = Math.max(size.x, size.y, size.z) || 1;
camera.position.set(maxSize * 1.4, -maxSize * 2.0, maxSize * 1.1);
camera.near = maxSize / 500; camera.far = maxSize * 50; camera.updateProjectionMatrix();
controls.target.set(0, 0, 0); controls.update();
let meshes = 0;
root.traverse(child => { if (child.isMesh) meshes++; });
const stats = meshes + " 个网格 · 包围盒 " + size.x.toFixed(2) + " × " + size.y.toFixed(2) + " × " + size.z.toFixed(2) + " m";
document.getElementById("stats").textContent = stats;
window.__lineReferenceStats = { file, meshes, size: [size.x, size.y, size.z], stats };
};
select.addEventListener("change", () => load(select.value).catch(error => {
document.getElementById("stats").textContent = "加载失败:" + String(error?.message ?? error);
}));
addEventListener("resize", () => {
camera.aspect = host.clientWidth / host.clientHeight; camera.updateProjectionMatrix();
renderer.setSize(host.clientWidth, host.clientHeight);
});
const animate = () => { requestAnimationFrame(animate); controls.update(); renderer.render(scene, camera); };
animate();
await load(MODELS[0].file);
window.__lineReferenceReady = true;
</script>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

File diff suppressed because it is too large Load Diff

287
web/teaching/index.html Normal file
View File

@@ -0,0 +1,287 @@
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>FreeCAD Web 官方案例验收 · 初学者教学手册</title>
<style>
:root{
--bg:#0d1319; --panel:#151d25; --panel2:#1b252f; --line:#2a3742;
--text:#e7edf3; --muted:#93a7b4; --accent:#4fb3c8; --ok:#7fdc9f; --warn:#f2c46d; --bad:#ff9e9e;
--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.75 -apple-system,"Segoe UI","Noto Sans SC",system-ui,sans-serif}
header{position:sticky;top:0;z-index:10;background:rgba(13,19,25,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.bar{max-width:1080px;margin:0 auto;padding:14px 22px;display:flex;align-items:center;gap:14px}
.brand{background:var(--accent);color:#071219;font-weight:800;border-radius:6px;padding:5px 9px}
.bar h1{font-size:17px;margin:0;font-weight:600}
.bar nav{margin-left:auto;display:flex;gap:16px;flex-wrap:wrap}
.bar nav a{color:var(--muted);text-decoration:none;font-size:14px}
.bar nav a:hover{color:var(--accent)}
main{max-width:1080px;margin:0 auto;padding:32px 22px 96px}
h2{font-size:26px;margin:56px 0 8px;padding-top:8px}
h3{font-size:19px;margin:32px 0 6px;color:#cfe0ea}
p{color:#cfdae2}
.lead{font-size:18px;color:#b9cbd7}
.muted{color:var(--muted)}
.card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:20px 22px;margin:18px 0}
.grid{display:grid;gap:16px}
.grid.two{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.grid.three{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.stat{background:var(--panel2);border:1px solid var(--line);border-radius:10px;padding:16px 18px}
.stat b{display:block;font-size:30px;line-height:1.1;color:var(--accent)}
.stat span{font-size:13px;color:var(--muted)}
figure{margin:20px 0}
figure img{width:100%;border-radius:10px;border:1px solid var(--line);display:block}
figcaption{font-size:13px;color:var(--muted);margin-top:8px}
code,kbd{font-family:var(--mono);font-size:13.5px;background:#0a1016;border:1px solid var(--line);border-radius:4px;padding:1px 5px}
pre{background:#0a1016;border:1px solid var(--line);border-radius:10px;padding:14px 16px;overflow:auto;font-size:13.5px;line-height:1.6}
pre code{background:none;border:0;padding:0}
ol.steps{counter-reset:step;list-style:none;padding:0;margin:18px 0}
ol.steps>li{counter-increment:step;position:relative;padding:18px 20px 18px 66px;background:var(--panel);border:1px solid var(--line);border-radius:12px;margin-bottom:14px}
ol.steps>li::before{content:counter(step);position:absolute;left:18px;top:16px;width:32px;height:32px;border-radius:50%;background:var(--accent);color:#071219;font-weight:800;display:grid;place-items:center}
ol.steps>li h4{margin:0 0 6px;font-size:17px}
table{border-collapse:collapse;width:100%;max-width:100%;font-size:14.5px;margin:14px 0;table-layout:fixed}
td,th{overflow-wrap:anywhere;word-break:break-word}
td code,th code{overflow-wrap:anywhere;white-space:normal}
th,td{border-bottom:1px solid var(--line);padding:9px 10px;text-align:left;vertical-align:top}
th{color:var(--muted);font-weight:600;font-size:13px;letter-spacing:.04em}
.pill{display:inline-block;font-size:12px;border-radius:999px;padding:2px 10px;border:1px solid var(--line);color:var(--muted)}
.pill.ok{color:var(--ok);border-color:#2f6b45;background:#12281c}
.pill.warn{color:var(--warn);border-color:#6b5526;background:#2a2312}
.cta{display:inline-block;background:var(--accent);color:#071219;font-weight:700;text-decoration:none;padding:11px 20px;border-radius:8px;margin:6px 8px 6px 0}
.cta.secondary{background:transparent;color:var(--accent);border:1px solid var(--accent)}
.note{border-left:3px solid var(--accent);padding-left:14px;color:#b9cbd7}
.toc{columns:2;column-gap:32px;font-size:15px}
.toc a{color:#b9cbd7;text-decoration:none;display:block;padding:3px 0}
.toc a:hover{color:var(--accent)}
@media(max-width:640px){
.toc{columns:1}
main{padding:24px 14px 80px}
table{font-size:13px}
th,td{padding:7px 6px}
pre{font-size:12px;white-space:pre-wrap}
ol.steps>li{padding:16px 14px 16px 56px}
ol.steps>li::before{left:12px;width:28px;height:28px;font-size:13px}
}
footer{border-top:1px solid var(--line);color:var(--muted);font-size:13px;padding:24px 22px;text-align:center}
</style>
</head>
<body>
<header>
<div class="bar">
<span class="brand">FreeCAD Web</span>
<h1>官方案例验收 · 初学者教学手册</h1>
<nav>
<a href="#overview">概览</a>
<a href="#pipeline">验收流程</a>
<a href="#walkthrough">动手演示</a>
<a href="#glossary">术语</a>
<a href="features.html">功能列表</a>
<a href="runner.html">可视化执行 →</a>
</nav>
</div>
</header>
<main>
<section id="overview">
<p class="lead">这本手册面向第一次接触本项目的同学。它讲清楚一件事:<strong>为什么我们要在浏览器里,把 FreeCAD 桌面版的官方测试逐条重新跑一遍,并且怎么亲手跑。</strong></p>
<div class="grid three" id="stats">
<div class="stat"><b id="stat-total">278</b><span>已通过验收的官方案例</span></div>
<div class="stat"><b id="stat-exec">95</b><span>可一键可视化执行</span></div>
<div class="stat"><b id="stat-img">72</b><span>带现场截图证据</span></div>
</div>
<h2>这个项目在做什么</h2>
<p>FreeCAD 是一个开源的三维 CAD 软件,正常情况下它运行在桌面上,底层是 C++,界面用 Qt。本项目要把它移植成一份<strong>纯浏览器版本</strong>:C++ 内核编译成 WebAssembly,界面用 React 重写。移植最大的风险不是"能不能打开",而是<strong>"行为和桌面版是否一致"</strong>。</p>
<p>所以我们的验收方法是:把 FreeCAD 自带的官方测试用例(比如 <code>Mod/PartDesign/PartDesignTests/TestPad.py</code>)当作"考卷",在 Web 版里用真实的运行链路把它跑一遍,再和桌面版的结果逐项对比。每条通过验收的考卷,就是账本(ledger)里的一条 <code>passed</code> 记录。目前 324 条候选里有 <strong>278 条</strong>已经通过。</p>
<div class="card">
<h3 style="margin-top:0">一句话记住三条线</h3>
<table>
<tr><th>线</th><th>在哪</th><th>作用</th></tr>
<tr><td>桌面依据</td><td><code>freecad-source/src/Mod/...</code></td><td>官方的 Python 测试代码,是我们唯一的"正确答案"</td></tr>
<tr><td>Web owner</td><td><code>web/src/...</code> + <code>freecad-source/src/WebAssembly/...</code></td><td>用 React 和 WASM 实现同样的能力,并由它对外提供命令入口</td></tr>
<tr><td>证据与账本</td><td><code>docs/current/business-evidence/</code> 与 <code>web/docs/current/freecad-official-case-ledger.json</code></td><td>把每次验证的现场(截图、JSON 结果)和结论固化下来</td></tr>
</table>
</div>
</section>
<section id="pipeline">
<h2>一次验收要经过什么</h2>
<p>这是本项目约定的统一顺序。初学者最容易犯的错是:页面一打开就急着断言"产品坏了",其实大多数时候是<strong>前置条件没准备好</strong>。</p>
<figure>
<svg viewBox="0 0 980 250" role="img" aria-label="验收管线:从桌面依据到账本记账" style="width:100%;height:auto;background:#0a1016;border:1px solid #2a3742;border-radius:10px">
<defs><marker id="arw" markerWidth="10" markerHeight="8" refX="9" refY="4" orient="auto"><path d="M0,0 L10,4 L0,8 z" fill="#4fb3c8"/></marker></defs>
<g font-family="ui-monospace,monospace" font-size="13" fill="#e7edf3">
<g fill="#151d25" stroke="#2a3742">
<rect x="14" y="60" width="150" height="70" rx="8"/><rect x="184" y="60" width="150" height="70" rx="8"/>
<rect x="354" y="60" width="150" height="70" rx="8"/><rect x="524" y="60" width="150" height="70" rx="8"/>
<rect x="694" y="60" width="130" height="70" rx="8"/><rect x="844" y="60" width="122" height="70" rx="8"/>
</g>
<g fill="#4fb3c8"><text x="30" y="88">① 桌面依据</text><text x="200" y="88">② Web owner</text><text x="370" y="88">③ host / server</text><text x="540" y="88">④ fixture</text><text x="706" y="88">⑤ Worker/WASM</text><text x="860" y="88">⑥ 断言</text></g>
<g fill="#93a7b4" font-size="11.5">
<text x="30" y="108">官方测试代码</text><text x="30" y="122">是唯一正确答案</text>
<text x="200" y="108">React + C++ owner</text><text x="200" y="122">提供命令实现</text>
<text x="370" y="108">页面能被打开</text><text x="370" y="122">端口 / 视图就绪</text>
<text x="540" y="108">文档与对象</text><text x="540" y="122">准备好再跑</text>
<text x="706" y="108">原生内核</text><text x="706" y="122">真正算出结果</text>
<text x="860" y="108">执行并对比</text><text x="860" y="122">桌面 vs Web</text>
</g>
<g stroke="#4fb3c8" stroke-width="1.5" marker-end="url(#arw)">
<line x1="164" y1="95" x2="182" y2="95"/><line x1="334" y1="95" x2="352" y2="95"/><line x1="504" y1="95" x2="522" y2="95"/><line x1="674" y1="95" x2="692" y2="95"/><line x1="824" y1="95" x2="842" y2="95"/>
</g>
<g fill="#93a7b4" font-size="12">
<text x="14" y="170">⑦ 双视口(1440×900 桌面 / 390×844 移动)→ 页面无横向溢出、无 pageErrors</text>
<text x="14" y="192">⑧ 产品行为与保存回开 → 改参数、重算、存盘、重开,对象与属性一致</text>
<text x="14" y="214">⑨ 证据落盘 → docs/current/business-evidence/&lt;case&gt;/ 下的截图与 JSON</text>
<text x="14" y="236" fill="#7fdc9f">⑩ 64 项工作台审计 + 账本记账 → status=passed,acceptancePassed=true</text>
</g>
</g>
</svg>
<figcaption>图 1 验收管线的十个环节。前面任何一步不满足,都不能跳到⑥断言,更不能把前置失败记成产品回归。</figcaption>
</figure>
<h3>为什么要分"前置失败"和"产品回归"</h3>
<p>项目里出过真实教训:某个脚本因为工作目录不对,报 <code>MODULE_NOT_FOUND</code>,被误判为"产品失败"。后来定下铁律:日志很小且含 <code>Cannot find module</code>、<code>No such file or directory</code> 时,一律记为<strong>前置失败</strong>,先补前置,不得据此记账。</p>
<div class="note">初学者记忆法:<strong>先问"我准备好了吗",再问"软件做对了吗"。</strong></div>
</section>
<section id="checks">
<h2>一条案例要过哪七道关</h2>
<table id="checks-table">
<tr><th>关卡</th><th>含义</th><th>怎么算通过</th></tr>
<tr><td>前置条件 <code>preflightPassed</code></td><td>入口、fixture、Worker、端口都就绪</td><td>缺任何一项先补,不算产品失败</td></tr>
<tr><td>native 结果 <code>nativeResultVerified</code></td><td>WASM 内算出的数值与桌面一致</td><td>体积、坐标、对象数等按类型比较</td></tr>
<tr><td>保存回开 <code>saveReopenVerified</code></td><td>存盘后重新打开,数据不变</td><td>对象与属性逐项对比</td></tr>
<tr><td>桌面视口 <code>desktopViewportVerified</code></td><td>1440×900 下界面正常</td><td>无溢出、无 pageErrors、在视口内</td></tr>
<tr><td>移动视口 <code>mobileViewportVerified</code></td><td>390×844 下界面正常</td><td>同上</td></tr>
<tr><td>64 项审计 <code>audit64Passed</code></td><td>32 个模块 × 2 个视口</td><td>64 条记录全部通过</td></tr>
<tr><td>总验收 <code>acceptancePassed</code></td><td>以上全部满足</td><td>账本行记为 <code>passed</code></td></tr>
</table>
</section>
<section id="walkthrough">
<h2>动手演示:跑通一条案例</h2>
<p>下面这条案例是 <code>real.Inspection:inspection.createRecompute</code>,它在 Web 端创建 Inspection 对象并做一次重算。跟着做一遍,你就掌握了整个验收动作。</p>
<ol class="steps">
<li>
<h4>确认服务已经开着</h4>
<p>Web 应用运行在 <code>http://127.0.0.1:5180</code>。打开终端先探一下:</p>
<pre><code>curl -s -o /dev/null -w "%{http_code}\n" http://127.0.0.1:5180/
# 期望输出:200</code></pre>
<p class="muted">如果不是 200,先启动 Web 服务,再继续。这就是"前置条件"。</p>
</li>
<li>
<h4>打开工作台并选中命令</h4>
<p>直接访问带参数的地址,页面会自动选中 Inspection 模块和该命令:</p>
<pre><code>http://127.0.0.1:5180/workbench.html?module=Inspection&amp;command=inspection.createRecompute</code></pre>
<p>页面左侧是模块列表,中间是命令参数 JSON,右侧是执行结果。</p>
</li>
<li>
<h4>检查参数与状态</h4>
<p>参数框里应该已经有官方 fixture(<code>PAYLOADS</code> 注册的默认参数)。如果没有,就手动填 <code>{}</code>。注意页面 URL 上的 <code>module</code> 和 <code>command</code> 只有命中注册表才会生效。</p>
</li>
<li>
<h4>点击"执行选中命令"</h4>
<p>按钮会真正把请求发进 Worker,由 WASM 内核执行,再把结果回传给页面。稍等一两秒,右侧出现 JSON 结果:</p>
<pre><code>{
"schema": "freecad-web-inspection/create-recompute/v1",
"inspection": { "distanceCount": 8, "rms": 0, "hasError": 0 },
"recompute": { "count": 1, "hasError": 0 },
"resourcesReleased": true
}</code></pre>
</li>
<li>
<h4>核对数值与状态</h4>
<p>和桌面结果比对。注意按<strong>真实类型</strong>比较:数值带容差,字符串用前缀或子串,Vector 用 <code>isEqual</code>,对象按标识比较。</p>
</li>
<li>
<h4>截屏并记录证据</h4>
<p>截图存到 <code>docs/current/business-evidence/&lt;case&gt;/</code>,并把结果 JSON 一起写入。这一步是"证据"。可视化执行页已经帮你自动截图并写入 <code>docs/current/teaching-runs/</code>。</p>
</li>
<li>
<h4>记账</h4>
<p>七道关全过之后,才更新账本行。项目提供了统一入口,不要手工改 JSON:</p>
<pre><code>node tools/close-official-case.mjs \
--case &lt;caseId&gt; \
--evidence &lt;repo-relative-path&gt; \
--note "一句话说明"</code></pre>
</li>
</ol>
<p><a class="cta" href="runner.html">打开可视化执行页</a><a class="cta secondary" href="features.html">查看 32 个模块的功能列表</a><a class="cta" href="cases/engine-block.html">案例教学:4 缸发动机缸体</a><a class="cta secondary" href="cases/t1-replica.html">案例教学:照 t1.stp 复刻零件</a><a class="cta secondary" href="cases/secondary-reducer.html">案例教学:二级齿轮减速器(界面操作)</a><a class="cta" href="cases/assembly-tolerance.html">案例教学:装配公差分析(初学者)</a><a class="cta" href="cases/cam-teaching.html">案例教学:三轴 CAM(初学者)</a><a class="cta" href="cases/carrier.html">案例教学:航空母舰(含培训视频)</a><a class="cta" href="cases/fem-cantilever.html">案例教学:FEM 悬臂梁(应力云图)</a><a class="cta" href="cases/production-line.html">案例教学:三维产线(有头界面 + MCP)</a><a class="cta" href="cases/abb120-line.html">案例教学:ABB IRB 120 产线(MCP)</a><a class="cta" href="cases/production-line-course.html">视频课程:27 件 GLB 产线建模(18 集)</a><a class="cta secondary" href="z-up-verification.html">Three.js Z-up 验证报告</a><a class="cta" href="http://127.0.0.1:5180/bim-workshop.html">BIM 厂房车间(30×18m)</a><a class="cta secondary" href="bim-workshop-tutorial.html">BIM 厂房教程</a><a class="cta secondary" href="bim-workshop-manual.html">BIM 厂房初学者手册(视频)</a><a class="cta secondary" href="http://127.0.0.1:5180/workbench.html?module=Inspection&amp;command=inspection.createRecompute" target="_blank" rel="noopener">直接打开这条案例</a></p>
</section>
<section id="gallery">
<h2>验收现场长什么样</h2>
<p>下面是从真实证据目录里挑出的截图。它们记录了浏览器中的实际结果,而不是示意图。</p>
<div class="grid two" id="gallery-grid"></div>
<h3>教学目录自身的实景</h3>
<p class="muted">下面两张截图来自本手册页面与执行页在真实 Chrome 中的运行结果(1440×900)。</p>
<div class="grid two">
<figure style="margin:0">
<img src="/evidence/current/teaching-manual-20261104/manual-desktop-top.png" alt="教学手册首页实景" />
<figcaption>手册首页:概览、统计与管线示意</figcaption>
</figure>
<figure style="margin:0">
<img src="/evidence/current/teaching-manual-20261104/runner-desktop.png" alt="可视化执行页实景" />
<figcaption>执行页:278 条案例列表与详情</figcaption>
</figure>
</div>
</section>
<section id="glossary">
<h2>术语小词典</h2>
<table>
<tr><th>词</th><th>用大白话解释</th></tr>
<tr><td>WASM / WebAssembly</td><td>一种能在浏览器里高速运行的二进制格式。我们把 FreeCAD 的 C++ 内核编译成它。</td></tr>
<tr><td>Worker</td><td>浏览器里的后台线程。内核在 Worker 里跑,避免卡住界面。</td></tr>
<tr><td>Probe(探针)</td><td>一个专门用来"问内核问题"的小程序。比如 Test 探针负责跑 Python 语法检查。</td></tr>
<tr><td>fixture</td><td>测试用的固定输入。比如一个已经画好盒子的文档。</td></tr>
<tr><td>owner</td><td>某项能力的"负责人"代码。Web 端用 React/TS 实现界面语义,用 C++ 实现内核能力。</td></tr>
<tr><td>ledger(账本)</td><td><code>freecad-official-case-ledger.json</code>,记录每条案例的状态和证据。</td></tr>
<tr><td>preflight(前置)</td><td>跑产品断言之前必须准备好的条件。</td></tr>
<tr><td>viewport(视口)</td><td>浏览器可见区域大小。我们固定测桌面和移动两种。</td></tr>
</table>
</section>
<section id="toc">
<h2>按模块浏览</h2>
<div class="toc" id="module-toc"></div>
</section>
</main>
<footer>FreeCAD Web 教学目录 · 数据来自 <code>web/teaching/data/cases.json</code>(由账本自动生成)· 由可视化执行页可逐条运行</footer>
<script type="module">
const data = await fetch("./data/cases.json").then(r => r.json()).catch(() => null);
if (data) {
document.getElementById("stat-total").textContent = data.total;
document.getElementById("stat-exec").textContent = data.executable;
document.getElementById("stat-img").textContent = data.withImage;
const toc = document.getElementById("module-toc");
const counts = new Map();
for (const item of data.cases) {
const key = item.module || "(未分类)";
counts.set(key, (counts.get(key) || 0) + 1);
}
toc.innerHTML = [...counts.entries()].sort((a, b) => b[1] - a[1])
.map(([name, count]) => `<a href="runner.html#module-${encodeURIComponent(name)}">${name} <span class="muted">(${count})</span></a>`).join("");
const gallery = document.getElementById("gallery-grid");
const withImages = data.cases.filter(item => item.hasImage).slice(0, 4);
gallery.innerHTML = withImages.map(item => {
const shot = item.evidence.find(e => e.kind === "image" && e.exists);
return `<figure style="margin:0"><img loading="eager" src="${shot.url}" alt="${item.title} 验收截图"><figcaption>${item.module} · ${item.command || item.title}</figcaption></figure>`;
}).join("");
}
</script>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More