Repository navigation
中文说明
本版在 v0.8.0 基础上合并了离线 Agent API 与三视图/3D 网格双重提速,新增离线二进制 STL 导出与小孔封堵核验、「L 形加强筋支座」机械配方、默认界面精简,以及 Skill CLI 的事务化安全提交保护。
主要变化
- 离线二进制 STL 导出与体素核验:支持通过
导出 STL (3D)按钮、Agent API(exportStl)及 Skill CLI(--stl)导出标准二进制 STL,采用后台线程编码与基于顶点法向的外向绕序修正;自动检查低于2×体素步距的细小特征(孔径、薄槽轴高与拉伸厚度)并对解析 CSG 贯通的通孔(含齐平端面)执行 STL 射线通畅核验,避免小孔在网格里悄然封死却无提示。 - 三视图与 3D 网格提速、Worker 复用:
K.project与K.mesh按加料形体包围盒裁剪跳过空白采样(84³3D 网格基准提速 23.5%–31.5%,公开模型对照像素/顶点法向逐项一致);投影与 3D 网格构建改为复用后台 Worker 池,并阻止迟到的低精度结果覆盖高精度缓存。 - 新增「L 形加强筋支座」配方(
l_bracket):输入总宽、底板深、立板高、板厚、可选双侧三角形加强筋与安装孔参数,实时校验并生成三维与三视图,支持示例菜单与中英文同步。 - 版本化离线 Agent API(
window.__workbench.agent,apiVersion: 1):支持候选编译、正式模型导入、三视图与 A–A 全剖出图、几何点探针、图面检查、DXF 与 STL 导出,并修复「总深」尺寸检查误报与并发导入串件问题。 - 界面精简与取消同步防护:右侧次级 3D 控件与草绘帮助默认收起,修复移动端工具栏重复
▸与角标压边;#stl/#dxf与异步下载入口受当前投影状态与版本号守卫,取消计算后不会误导成其他模型。 - Skill CLI 安全提交:
tvw.mjs在独占目录写锁下核对现有活跃与过期文件的归属与 SHA-256 哈希,禁止覆盖同名目录、未归属个人文件或手改产物;失败可完整回滚,恢复失败时保留备份路径。
升级与使用提示
- 旧版目录升级:从旧版升级后,如果导出到旧交付目录时提示无法验证
report.md,请改导出到一个新目录(原目录文件会完整保留)。 check-report.json为机器生成清单:每次导出都会重新生成check-report.json,手工加在里面的备注会被覆盖;需要长期保留的说明请单独存成其他文件。- 高精度加工或 3D 打印前,请结合原图与工作台 STL 精度提示核对小孔、薄槽与单位约定。
English
Building on v0.8.0, this release introduces offline Binary STL export with voxel & through-hole audits, the versioned offline Agent API, bounding-box acceleration for both 2D projection and 3D meshing, a new L-bracket mechanical recipe, a cleaner default UI, and transactional Skill CLI delivery commits.
Highlights
- Offline Binary STL export & accuracy audit: Export binary STL via the UI button (
导出 STL (3D)/Export STL), Agent API (exportStl), or Skill CLI (--stl) with background Worker encoding and outward CCW winding correction. Audits sub-voxel dimensions (diameter, axial height, extrusion thickness) and fires STL ray checks along CSG-verified through-holes (including flush ends) so closed small holes are never missed silently. - 2D projection & 3D meshing speedup with Worker pools: Both
K.projectandK.meshclip sampling to the additive AABB (84³3D meshing improved 23.5%–31.5% on benchmarked samples with byte-identical vertices/normals across synthetic comparisons), while persistent Worker pools prevent late low-res builds from downgrading higher-res cached meshes. - L-bracket mechanical recipe (
l_bracket): Parametric base plate, rear wall, optional twin triangular gusset ribs, and mounting holes with live geometric clearance checks and bilingual UI. - Versioned offline Agent API (
window.__workbench.agent,apiVersion: 1): Programmatic candidate compilation, model import, orthographic + A–A section rendering, point probes, drawing checks, DXF/STL export, plus fixes for local hole-depth check false positives and concurrent import races. - Cleaner UI & export sync guards: Secondary 3D controls and sketch help start collapsed; mobile toolbar/footer layout cleaned up; export controls gate on the active projection and revision so cancelled updates cannot export the wrong model.
- Transactional Skill CLI commits:
tvw.mjsverifies active and stale target file ownership/SHA-256 hashes under an exclusive directory lock, refuses to overwrite directories or user-modified/unowned files, cleans unmodified stale optional files across relocated folders, and preserves rollback backups if restoration fails.
Upgrade & Usage Notes
- Upgrading an older delivery directory: If
tvw.mjsreports it cannot verify an existingreport.mdfrom a previous version, export to a new directory (existing files remain untouched). check-report.jsonis machine-generated: It is regenerated on every export; keep persistent personal notes in a separate file.
Downloads
- three-view-workbench.html — open directly in a browser for offline use (
SHA-256: 9CA73C41D4480D66C3F6D6BBCB764AC8C64EAB874A42209B27629FD10EA7B4C1). - three-view-workbench-v0.8.2.zip — application, documentation, licence, and public examples.
- SHA256SUMS.txt — checksums for the package files.
-
- three-view-workbench-skill-v0.8.2.zip — companion Agent Skill (
SKILL.md, CLItvw.mjs, installer & examples; supports Codex / Antigravity / DSH).
- three-view-workbench-skill-v0.8.2.zip — companion Agent Skill (