[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112717":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":23,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":37,"readmeContent":38,"aiSummary":39,"trendingCount":16,"starSnapshotCount":16,"syncStatus":40,"lastSyncTime":41,"discoverSource":42},112717,"benchup","BenchUp3D\u002Fbenchup","BenchUp3D","Free, open-source 3D woodworking and modeling software and SketchUp alternative. Built with Rust, WebAssembly and WebGPU. Runs in your browser or on desktop. 100% vibe-coded with great emphase on stability, rendering speed and UI\u002FUX.","https:\u002F\u002Fbenchup3d.github.io\u002Fbenchup\u002F",null,"Rust",1013,64,4,18,0,100,162,83.44,"MIT License",false,"main",true,[25,26,27,28,29,30,31,32,33,34,35,36],"3d-modeling","cad","furniture-design","open-source","rust","sketchup","sketchup-alternative","woodwork","woodworking","woodworking-cad","woodworking-software","woodworking-tools","2026-11-24 04:01:32","# BenchUp\n\n![BenchUp editor screenshot](assets\u002Fscreenshots\u002Fbenchup.jpg?v=2026-11-15)\n\n[![Try BenchUp in your browser](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTry_BenchUp_in_your_browser-d63b32?style=for-the-badge)](https:\u002F\u002Fbenchup3d.github.io\u002Fbenchup\u002Fplay\u002F)\n\n## Download for desktop\n\n[![Download for Windows x64](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FWindows_x64-0078D4?style=for-the-badge)](https:\u002F\u002Fgithub.com\u002FBenchUp3D\u002Fbenchup\u002Freleases\u002Flatest\u002Fdownload\u002Fio.github.BenchUp3D.BenchUp-win-x64-Setup.exe)\n[![Download for macOS Apple Silicon](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FmacOS_Apple_Silicon-6E40C9?style=for-the-badge)](https:\u002F\u002Fgithub.com\u002FBenchUp3D\u002Fbenchup\u002Freleases\u002Flatest\u002Fdownload\u002Fio.github.BenchUp3D.BenchUp-osx-arm64-Setup.pkg)\n[![Download for macOS Intel](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FmacOS_Intel-6E40C9?style=for-the-badge)](https:\u002F\u002Fgithub.com\u002FBenchUp3D\u002Fbenchup\u002Freleases\u002Flatest\u002Fdownload\u002Fio.github.BenchUp3D.BenchUp-osx-x64-Setup.pkg)\n[![Download for Linux x64](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLinux_x64-E95420?style=for-the-badge)](https:\u002F\u002Fgithub.com\u002FBenchUp3D\u002Fbenchup\u002Freleases\u002Flatest\u002Fdownload\u002Fio.github.BenchUp3D.BenchUp-linux-x64.AppImage)\n[![See all downloads](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FAll_downloads-555555?style=for-the-badge)](https:\u002F\u002Fgithub.com\u002FBenchUp3D\u002Fbenchup\u002Freleases\u002Flatest)\n\nA free, open-source 3D modeling app for woodworking and furniture design, written in Rust. Plan individual boards, wood joints, and complete assemblies with exact measurements before heading to the workshop. The same editor runs as a native Windows, macOS, or Linux application and in a desktop browser through WebAssembly.\n\nThe workspace includes Select, Line, Rectangle, Circle, Polygon, Freehand, Push\u002FPull, Scale, Offset, Move, Rotate, Paint, Tape Measure, Protractor, Dimensions, a Union flyout, Router, Erase, and Orbit, automatic geometry snapping, filled planar faces, measured lines, full-enclosure box selection, groups and components, a right-click object menu, geometry clipboard, undo\u002Fredo, local autosave, and portable `.bup` project files, with support for legacy `.k3d` and `.ketchup` projects. It starts with an empty model. File → Import\u002FExport adds SketchUp `.skp` import and Wavefront `.obj` export. Mobile and cloud storage are outside this version.\n\n## Woodworking features\n\nModel shelves, tables, cabinets, workbenches, and other furniture with precisely sized parts. Use groups, reusable components, and tags to keep the assembly organized, then inspect dimensions and fit from any angle. Measure three points with Protractor to place a persistent angle dimension automatically. The arc and label are saved in the project and follow attached geometry.\n\n### Wood joinery\n\nCreate mortise-and-tenon, half-lap, tongue-and-groove, rabbet, dovetail, finger, Lamello\u002Fbiscuit, Domino\u002Floose-tenon, groove, and groove-and-loose-tongue joints between boards, including angled connections. Adjust joint dimensions and clearance with live previews. Dynamic joints update automatically when either board moves. Inspect machining diagnostics and cut guides, and trim excess material past a joint while keeping the original boards editable. Biscuit and Domino pockets have adjustable width, thickness, insertion depth, and count; continuous grooves have adjustable thickness and depth. Position boards with a shared volume: the new pocket joints meet halfway through it. Loose inserts are separate parts and are not generated.\n\n![Dovetail joint between two selected boards, with joint types, tail width, pin width, angle, and clearance controls](assets\u002Fscreenshots\u002Fwood-joinery-dovetail.jpg)\n\n### Procedural wood material\n\nSet the grain direction on groups and components and show grain-direction guides directly on the model. Review how the grain runs across each board and through the full assembly before building. Grain orientation is saved with the project and follows the parts when they rotate.\n\nIn the Materials face style, parts with assigned wood stock show procedural grain and the result of their sanding and finishing steps. Set the wood color and product appearance in the material catalog, then adjust the recipe and appearance overrides in the part's inspector. Work rates and drying times affect estimates only. Explicit face colors and Color by Tag take precedence over the finish preview.\n\n![Shelving with procedural wood grain visible across the horizontal shelves and vertical boards](assets\u002Fscreenshots\u002Fprocedural-wood.jpg)\n\n### Router tool\n\nSelect an edge with Router, then choose a profile in Properties to apply it immediately. Shape edges with chamfer, bevel, roundover, cove, rabbet, groove, Roman ogee, and bead profiles. Adjust the profile dimensions, change it later, or choose None to remove routing while preserving the original stock. Lines drawn on a solid face can also define routing paths. Saved routes contribute their length and work time to project estimates.\n\n![Close-up of a routed bead along a board edge, with the Bead profile selected in Properties](assets\u002Fscreenshots\u002Frouter-tool.jpg)\n\n### Plan materials and workshop work\n\nAssign stock materials and wood types to parts, configure sanding and finishing products, and prepare cut lists, cutting plans, and workshop labels. Export cutting plans and time and cost estimates to PDF to take the design into the workshop.\n\n### PDF exports\n\nUse the Tools menu to turn the model into printable workshop documents. Each report includes the BenchUp header, project name, and generation date.\n\n![BenchUp PDF exports, from left to right: Time & Cost Estimates with material costs and work times, Cutting Plan with a color-coded stock layout, and Workshop Labels with part marks and dimensions](assets\u002Fscreenshots\u002Fpdf-exports.jpg)\n\n- **Time & Cost Estimates** summarizes material costs, hands-on work, drying and waiting time, and the sequential total. Detailed tables break down stock and finishing supplies, workshop tasks, and joinery allowances. Use it to plan purchases and time; labor is not included in the material price.\n- **Cutting Plan** groups matching parts by material and size, lists quantities and finished cutting dimensions, and lays out marked parts on the selected stock. Color-coded diagrams show part placement, saw kerf, and offcuts, with grain direction and rotation settings taken into account. Parts that do not fit the stock are flagged separately.\n- **Workshop Labels** creates one printable label per piece, with the part mark, group or component name, and dimensions. Cut along the dotted borders and attach the labels to keep similar boards identifiable during assembly. The marks match those in the cutting plan.\n\nCutting plans and labels can cover selected parts or all visible parts in the project. Assign stock materials to the parts first, and verify dimensions before cutting.\n\n## Create with your AI agent\n\nAsk your AI coding agent to build a model in BenchUp: “Use benchup to create a small bookshelf.” With the BenchUp command-line tool installed, agents such as Codex, Claude Code, and Cursor can create and edit `.bup` projects, add boards and joints, check the model, and generate previews. Open the result in BenchUp to inspect it and keep editing.\n\n![An AI agent using the BenchUp CLI to create a small bookshelf, shown in the editor with dimensions and joints alongside the agent's completion message](assets\u002Fscreenshots\u002Fai-agent-bookshelf.jpg)\n\nThe example above is a 600 × 300 × 900 mm birch plywood bookshelf with three compartments and a recessed base. The agent reports that all 12 joints passed validation.\n\nStart with the [CLI installation and setup](docs\u002Fcli.md), then have your agent read `benchup guide` for modeling conventions and woodworking recipes. The same tools are also available through the CLI's MCP server for agents that support MCP.\n\n## Documentation\n\nThis README covers developer installation, building, verification, and deployment.\nFor instructions on using BenchUp, see the [user documentation](docs\u002FREADME.md).\nFor supported versions and instructions for reporting vulnerabilities, see the\n[security policy](SECURITY.md).\n\n## Prerequisites\n\n- Rust installed with rustup. `rust-toolchain.toml` pins Rust 1.97.1 for development and CI; the workspace minimum supported version is 1.95.\n- A C\u002FC++17 compiler for the native SketchUp reader (GCC\u002FClang on Linux, Xcode Clang on macOS, or MSVC on Windows). Browser builds do not require it.\n- A GPU\u002Fdriver supported by wgpu. The browser prefers WebGPU and falls back to WebGL2.\n- On Linux, development libraries for X11\u002FWayland, xkbcommon, and libudev. For Debian\u002FUbuntu: `sudo apt install build-essential pkg-config libx11-dev libxcb1-dev libxkbcommon-dev libwayland-dev libegl1-mesa-dev libudev-dev`.\n- On Windows, the MSVC Rust toolchain and Visual Studio Build Tools with the **Desktop development with C++** workload and a Windows SDK. SpaceMouse support uses Windows system APIs; no separate HIDAPI or libusb installation is required.\n- On macOS, Xcode Command Line Tools (`xcode-select --install`), including Clang and the macOS SDK. SpaceMouse support uses the system IOKit, CoreFoundation, and AppKit frameworks; no Homebrew HIDAPI or libusb package is required.\n\nLinux desktop builds use libudev through the `hidapi` dependency to discover SpaceMouse devices. The `libudev-dev` package supplies the headers and `pkg-config` metadata needed to compile this support, even if no SpaceMouse is connected. If compilation fails with `Unable to find libudev` or `Package 'libudev' not found`, install `libudev-dev` and retry. Browser builds do not use `hidapi`. See the upstream [HIDAPI build prerequisites](https:\u002F\u002Fgithub.com\u002Flibusb\u002Fhidapi\u002Fblob\u002Fmaster\u002FBUILD.md#prerequisites).\n\n## Run on desktop\n\n```sh\ncargo run -p benchup-app --profile dev-desktop\n```\n\nThe `dev-desktop` profile enables incremental application compilation for faster\nrebuilds after edits. It preserves the usual development optimizations, full debug\nsymbols, debug assertions, and overflow checks. The executable is\n`target\u002Fdev-desktop\u002Fbenchup-app` (`benchup-app.exe` on Windows).\n\nTo rebuild and relaunch automatically after changes, install a\n[prebuilt Watchexec executable](https:\u002F\u002Fgithub.com\u002Fwatchexec\u002Fwatchexec\u002Freleases)\nand put it on your `PATH`, then run from the repository root:\n\n```sh\nwatchexec --restart --debounce 1s --shell none \\\n  --watch crates --watch assets --watch Cargo.toml --watch Cargo.lock \\\n  -- cargo run -p benchup-app --profile dev-desktop --locked\n```\n\nThis watches all workspace crates (including native reader sources and shaders),\nembedded assets, and dependency manifests. Saves within one second are grouped\ninto one restart. Build output stays in the terminal; after a compilation error,\nthe watcher retries on the next edit. Stop it with Ctrl+C. Each restart terminates\nthe current app process, so save model edits before changing source files; only\npersisted state survives. This command watches application inputs; restart it\nmanually after changing `.env`, Cargo configuration, or the Rust toolchain.\n\nOn Linux, register the application launcher and icons once after compiling:\n\n```sh\npython3 scripts\u002Finstall_linux_desktop.py target\u002Fdev-desktop\u002Fbenchup-app\n```\n\nThis installs into your user data directory (`$XDG_DATA_HOME`, or `~\u002F.local\u002Fshare`) without root access. GNOME on Wayland uses the application's ID and matching desktop entry to find its icon. Restart BenchUp after installing. The launcher points to the executable you pass, so later compilations with the same profile update it. For a release installation, pass its path: `python3 scripts\u002Finstall_linux_desktop.py target\u002Frelease\u002Fbenchup-app`. Keep that executable in place, or rerun the installer with its new path if you move it. Omitting the path still selects `target\u002Fdebug\u002Fbenchup-app` for the standard `dev` profile.\n\n## Run in a browser\n\nInstall the browser target and Trunk once:\n\n```sh\nrustup target add wasm32-unknown-unknown\ncargo install --locked trunk\n```\n\nFrom the repository root:\n\n```sh\ntrunk serve\n```\n\nOpen \u003Chttp:\u002F\u002F127.0.0.1:8080>. Keep the app on the same origin\u002Fport to restore the same saved model. No Node.js, JavaScript application framework, or backend is required. Trunk generates the JavaScript needed to load the Rust WebAssembly program.\n\nDevelopment builds use light optimization for application code and stronger optimization for dependencies and the geometry core, on both desktop and WebAssembly. Debug symbols, debug assertions, and overflow checks remain enabled. These optimizations target the cost of menu hovering, scrolling, and rendering in debug mode. The profile takes effect on the next development compilation; changing it recompiles affected dependencies once.\n\n`trunk serve` continues to use the standard `dev` profile, which disables\nincremental compilation for `benchup-app` to avoid a WebAssembly linker issue.\nUse `dev-desktop` only for native development. Its first build populates a\nseparate target directory; later edits reuse that profile's compilation artifacts.\n\nThe workspace keeps geometry formats and the embedded browser SketchUp reader\nin `benchup-io`, with the C\u002FC++ reader and its safe Rust boundary in `benchup-skp`.\nThe application depends on these crates, so UI edits reuse their compiled\nartifacts. The native reader compiles C\u002FC++ files in parallel and no\nlonger rebuilds when application server or update configuration changes.\n\n## Compile for distribution\n\nDesktop, on the OS you want to target:\n\n```sh\ncargo build -p benchup-app --release --locked\n```\n\nThe executable is `target\u002Frelease\u002Fbenchup-app` (`benchup-app.exe` on Windows). These commands produce executables, not installers or signed application bundles. Native builds should run on the corresponding OS; this project does not configure cross-linkers or signing identities.\n\n### Automated release builds\n\n[Build releases](.github\u002Fworkflows\u002Fbuild.yml) runs when a `v*` tag is pushed\n(for example, `git push origin v0.1.0`). The tag must be a stable `vX.Y.Z`\nversion matching `[workspace.package].version` in `Cargo.toml`. It builds with\nthe pinned Rust toolchain and committed `Cargo.lock`, runs update regression\ntests, and packages the desktop app with Velopack and the browser app with Trunk:\n\n| Artifact | Platform | Install \u002F run |\n|---|---|---|\n| `benchup-windows-x64` | Windows x64 (MSVC) | `*-win-x64-Setup.exe` (per-user installer) |\n| `benchup-macos-arm64` | macOS Apple Silicon | `*-osx-arm64-Setup.pkg` or the portable `.app` zip |\n| `benchup-macos-x64` | macOS Intel (x64) | `*-osx-x64-Setup.pkg` or the portable `.app` zip |\n| `benchup-linux-x64` | Linux x64 (built on Ubuntu 22.04) | `*-linux-x64.AppImage` |\n| `benchup-wasm` | Desktop browsers (WebAssembly) | Extract `benchup-vX.Y.Z-wasm.zip` and serve it with a static web server |\n\nThe macOS builds run natively on `macos-15` (Apple Silicon) and\n`macos-15-intel` (Intel). Both target macOS 11.0 or newer and use the same\nsigning and notarization secrets, with separate `osx-arm64` and `osx-x64`\nupdate channels.\n\n[Warm release caches](.github\u002Fworkflows\u002Fcache.yml) populates dependency caches\non relevant pushes to `main`, or manually from that branch. It uses the same Rust\ntoolchain, runners, profiles, targets, and shared cache keys as releases. It also\nrefreshes an sccache compiler cache for workspace Rust libraries and the native\nSketchUp reader, even when the dependency cache already matches. It warms release\nlibraries without linking the final application, plus the desktop compatibility\ntest dependencies. Release tags restore compiler-cache entries from `main`\nwithout writing duplicate tag caches. Branch and PR runs also populate their\nown scoped compiler caches for subsequent runs. The shared\n[compiler-cache action](.github\u002Factions\u002Fsetup-compiler-cache\u002Faction.yml) pins\nsccache and prints cache statistics at the end of each job.\n\nDesktop compatibility tests run in parallel with packaging, on all four desktop\ntargets, using `ci-test`: release assertion and overflow behavior, optimization\nlevel 1, and no LTO. Shipped applications retain release optimization level 2 and\nThin LTO. Both profiles are warmed on `main`. To change Rust, update\n`rust-toolchain.toml` and the matching toolchain action versions in the release,\ncache-warming, Pages, and PR workflows together, then rewarm the caches.\n\nRelease tags and manual Pages builds restore the dependency caches without\nsaving duplicate tag caches. GitHub permits tags to\nrestore caches from the default branch, but not from other tags. Keep `main` as\nthe default branch and let cache warming finish before tagging a release to get\nthe benefit. Cache warming does not package or publish a release.\n\nAfter all desktop builds, compatibility tests, and WebAssembly builds succeed,\nthe workflow creates a GitHub Release for the pushed tag with the prepared\nrelease notes, installers, portable packages, full\n`.nupkg` updates, one `releases.\u003Cplatform>.json` feed per OS\u002Farchitecture, the browser app ZIP, and\n`SHA256SUMS`. It validates the packages against their feed hashes and publishes\nonly after every platform succeeds and all assets have uploaded. Reruns can\nreplace assets on an unfinished draft; a published version cannot be overwritten.\nTo ship another update, first add its user-facing notes to\n`assets\u002Frelease-notes.json` (newest version first, keeping previous releases),\nthen bump the workspace version and lockfile. Validate and preview the notes:\n\n```sh\npython3 scripts\u002Fdesktop_release.py version --tag vX.Y.Z\npython3 scripts\u002Fdesktop_release.py notes --tag vX.Y.Z\n```\n\nDeployments reuse the existing README and website screenshots. Refresh them only\nwhen explicitly requested, using the procedure below. Deploy requests do not run\nlocal builds or tests; GitHub Actions\nperforms the desktop and browser builds, tests, and packaging. Commit and push\nthe release changes and notes before creating and pushing the matching tag.\nRelease validation rejects missing or mismatched notes. The same\ncatalog supplies the GitHub Release description and **Help → Release notes**\nin the app. Publishing uses GitHub's automatic token. Signing needs the credentials below.\n\n### Release signing\n\nWithout signing secrets, CI produces **unsigned packages for development**.\nBefore public distribution, configure signing and set the repository Actions\nvariable `BENCHUP_REQUIRE_SIGNING=true`. This makes packaging fail if Windows or\nmacOS signing is missing. Checksums detect damaged downloads; they do not\nreplace publisher signatures. Release access and signing credentials should be\nrestricted to maintainers. Velopack's [signing guide](https:\u002F\u002Fdocs.velopack.io\u002Fpackaging\u002Fsigning)\ndescribes certificate\u002Faccount setup.\n\nFor Windows, configure these repository Actions secrets:\n\n| Secret | Value |\n|---|---|\n| `AZURE_CREDENTIALS` | Azure service-principal credentials JSON for `azure\u002Flogin`, with permission to sign using the chosen profile |\n| `WINDOWS_AZURE_SIGNING` | JSON with `Endpoint`, `CodeSigningAccountName`, and `CertificateProfileName` for Azure Artifact Signing |\n\nThe workflow logs into Azure and passes a temporary configuration file to\nVelopack's Windows signing integration. The account needs the **Artifact Signing\nCertificate Profile Signer** role. Windows SDK signing tools are supplied by\nthe Windows build runner.\n\nFor macOS, export the Developer ID Application and Developer ID Installer\ncertificates **with their private keys** together into a password-protected\n`.p12`, then configure:\n\n| Secret | Value |\n|---|---|\n| `MACOS_CERTIFICATES_P12` | Base64 of the `.p12`, on one line |\n| `MACOS_CERTIFICATE_PASSWORD` | Password protecting the `.p12` |\n| `MACOS_SIGN_APP_IDENTITY` | Exact Developer ID Application signing identity |\n| `MACOS_SIGN_INSTALL_IDENTITY` | Exact Developer ID Installer signing identity |\n| `APPLE_ID` | Apple developer account email |\n| `APPLE_TEAM_ID` | Apple developer team ID |\n| `APPLE_APP_PASSWORD` | App-specific password for notarization |\n\nCI imports the certificates into a temporary keychain, stores a notarytool\nprofile, and asks Velopack to sign and notarize the app and installer. It removes\nthe `.p12` after importing and deletes the keychain even if packaging fails.\nPartially configured signing fails instead of silently producing unsigned files.\n\nThe Rust dependency, `VPK_VERSION` in the workflow, and the version in\n`scripts\u002Fdesktop_release.py` are pinned together at `1.2.161`. Update them\ntogether. Only the packaging machine needs .NET 8 for the `vpk` CLI; the Rust\napp does not require users to install .NET.\n\nBefore shipping publicly, install one packaged version on each supported OS,\nmake a test project, publish a newer version, and verify automatic download,\nrestart, restored work\u002Ffile association, the opt-out preference, and failure\nrecovery. Native update tests run in tag CI; package installation and OS trust\ndialogs still need this platform smoke test.\n\n### Browser distribution\n\nTagged GitHub Releases include `benchup-vX.Y.Z-wasm.zip`, containing the browser\nentry point, JavaScript loader, WebAssembly module, branding, translations, and\nlicense files. Extract the ZIP into a static web server's document directory;\nopen its URL rather than opening `index.html` directly from disk. The archive\nis also available as the `benchup-wasm` workflow artifact and is covered by the\nrelease's `SHA256SUMS`.\n\nTo compile the browser distribution yourself:\n\n```sh\ntrunk build --release --locked\n```\n\nServe the resulting `dist\u002F` directory with a static web server. Use HTTPS for WebGPU (localhost is also supported). `public_url = \".\u002F\"` allows serving from a subdirectory. There is no service worker or external asset dependency.\n\n## Development and verification\n\nRefresh the README screenshot from an existing desktop executable:\n\n```sh\npython3 -B scripts\u002Fcapture_readme_desktop.py\n```\n\nOn Linux, this requires X11 or XWayland, ImageMagick's `import` command, and\nPython Pillow. The script selects the newest existing executable from the native\nrelease and debug output directories; `--binary \u002Fpath\u002Fto\u002Fbenchup-app` selects one\nexplicitly. It launches the desktop app in an isolated temporary profile, loads\n[`assets\u002Fexamples\u002FExample.bup`](assets\u002Fexamples\u002FExample.bup) with its saved\ncamera and display settings, dismisses open dialogs and popups, captures the\nsettled window at 1920 × 1080, and updates `assets\u002Fscreenshots\u002Fbenchup.jpg` and its\nREADME link. Visually verify that no modal remains open before using the image.\nWhen refreshing the screenshot, update the landing page and its social preview\nreferences to the same capture.\nIt never compiles the app, runs tests, or starts benchmarks. The screenshot\nreflects the existing executable; a missing executable is reported without\nbuilding one.\n\n```sh\ncargo check --workspace --locked\ncargo check --workspace --target wasm32-unknown-unknown --locked\ncargo test --workspace --locked\n```\n\nThe vendored SketchUp reader, adapter, and browser shortcut handling can also be tested without compiling the application:\n\n```sh\nnode --test scripts\u002Ftest_skp_import.cjs\nnode --test scripts\u002Ftest_web_shortcuts.cjs\n```\n\nAn optional offscreen GPU test renders the actual UI and custom viewport to PNGs without opening a window:\n\n```sh\ncargo test -p benchup-app gpu_renders_empty_and_modeled_workspace --locked -- --ignored --nocapture\n```\n\nSnapshots appear in `target\u002Fqa\u002F`. This test requires a working native GPU adapter. Normal tests cover document validation, geometry, inference, camera math, selection, undo\u002Fredo, and synthetic keyboard\u002Fpointer interactions through egui.\n\nMeasure actual viewport frame intervals in the running Web app without starting a build:\n\n```sh\nnode scripts\u002Fbenchmark_viewport_web.mjs --headed --project \u002Fpath\u002Fto\u002FProject.bup --seconds 25 --min-fps 45 --output \u002Ftmp\u002Fbenchup-viewport.json\n```\n\nThe benchmark uses an isolated browser profile, preserves the complete project,\nwarms up for five seconds, and records FPS, frame timings, the hardware adapter,\ngeometry buffer rebuilds, screenshots, and the project hash. It rejects software\nadapters, blank screenshots, GPU validation errors, and missing measurements.\nUse `--mode select` to alternate selection while picking across the scene, or\n`--mode groups` to repeatedly enter\u002Fleave nested groups. `--mode draw-line`\nand `--mode draw-rectangle` drive real pointer\u002Fkeyboard events with snapping,\npreview, geometry creation and autosave enabled; their FPS includes the commit\nstall and counts actual GPU frame submissions. Reports include commit latency\nand the number of created edges. `--mode measure-tape` measures live tape\nsnapping with a saved guide present and checks that another guide is saved.\n`--mode walk` places a person on a real floor, walks with WASD and turns the\ncamera. `--after-walk` checks an editor tool after exiting Walk and restoring its\ncamera. The reports count Walk bridge mutations so repeated browser capture\nupdates cannot silently return. `--require-pointer-lock` additionally requires\nbrowser mouse capture; without it, a reported browser refusal uses ordinary\nmouse look. Each run pins its loaded artifact against development-server reloads.\n`--validate-snapping` compares indexed and exhaustive inference on the actual\nproject, including axis\u002Fplane locks, editing scopes and both projections.\n`--validate-state`\nchecks immediate selection\u002Fcontext restoration after reload and isolation from\nanother project; `--validate-shader` checks edge occlusion on the GPU.\nPass `--legacy` to compare\nthe CPU projection path on the same scene, or `--profile` for a separate CPU\nprofile (profiling adds overhead). The default server is `http:\u002F\u002F127.0.0.1:8080\u002F`;\nuse `--url` or `--browser` to override the server or Chromium executable.\nLarge opaque perspective scenes retain their face and edge geometry on the GPU;\nother display modes continue to use the precision renderer. Selection, hover,\nand editing scope update a small GPU state texture without rebuilding geometry.\nExact inspector measurements run in a background worker. Selection and editing\nscope persist immediately in a small record tied to the current autosave,\navoiding a complete document rewrite for each click.\n\nRun the repeatable CPU interaction benchmarks explicitly (10\u002F100-face drawing,\n10\u002F100-object Move, a 4,096-face imported model, axes on\u002Foff with 512 groups,\nand 256\u002F1,024 shadow casters over a large receiving face):\n\n```sh\ncargo test -p benchup-app --locked --config 'profile.test.package.benchup-app.opt-level=2' --config 'profile.test.package.benchup-core.opt-level=2' workload_benchmark -- --ignored --nocapture --test-threads=1\n```\n\nThese settings optimize application geometry and rendering code while retaining\nthe existing test dependencies. Timings exclude model construction and GPU\npresentation; compare runs on the same machine without other CPU-heavy work.\nThe shadow workload reports regeneration after sun changes and CPU mesh\u002Fedge\nrendering separately.\nThe normal suite also exercises all 22 tools through interrupted gestures,\nfocus loss, resizing, and document reload, plus display styles and effects.\n\nFor a sequential feature audit, including the normally ignored GPU comparisons\nand per-tool CPU workloads, run:\n\n```sh\npython3 scripts\u002Frun_feature_audit.py\n```\n\nThis uses an isolated temporary autosave directory and writes the feature\nchecklist, individual test results, GPU comparisons, timings, command logs, and\nremaining platform checks to `target\u002Fqa\u002Ffeature-audit\u002Freport.txt` and\n`report.json`. Every display field has an independent before\u002Fafter GPU case;\nnormal interaction tests click the individual toggles, face-style choices,\ncolor pickers, paint swatches, and project confirmation buttons.\n\nVerified during implementation: native Linux and browser WASM Cargo checks; core and UI interaction tests; offscreen Vulkan rendering of empty, modeled, and compact workspaces. Windows\u002FmacOS execution, browser startup, and runtime WebGPU\u002FWebGL2 fallback still require platform smoke testing. Production builds and hosted deployment were not run.\n\n## Layout\n\n- `crates\u002Fbenchup-core`: double-precision document geometry, planar face discovery\u002Ftriangulation, inference, picking, camera, tool definitions, and bounded history. It has no GUI or GPU dependencies.\n- `crates\u002Fbenchup-tools`: the operations an agent may call (schemas, validation, scene summaries) and `.bup` encode\u002Fdecode. Depends only on `benchup-core`.\n- `crates\u002Fbenchup-cli`: the `benchup` command-line tool for reading and editing `.bup` files from a shell or an AI agent, including an MCP server over stdio. See [docs\u002Fcli.md](docs\u002Fcli.md).\n- `crates\u002Fbenchup-app`: egui workspace, gesture routing, local persistence, native\u002Fbrowser launchers, and the wgpu\u002FWGSL edge renderer. Model coordinates remain independent of GPU resources.\n- `index.html` and `Trunk.toml`: static browser host and WASM development configuration.\n\nThe viewport uses depth-tested filled triangles and antialiased triangle strips for consistent edge widths, CPU projection\u002Fclipping, and the same shader and editor behavior on every target. Rendering is event-driven rather than a continuous idle loop.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for pull request guidelines\n","BenchUp 是一款免费开源的 3D 木工建模软件，专为家具设计与木结构规划打造。核心功能包括精确尺寸建模、动态木工连接（如榫卯、燕尾、槽口等）、组件复用、测量标注、SketchUp 文件导入及 OBJ 导出；基于 Rust 开发，通过 WebAssembly 和 WebGPU 实现跨平台原生性能与浏览器内实时渲染，兼顾稳定性、响应速度与直观操作体验。适用于木工爱好者、家具设计师及小型作坊在加工前进行结构验证、工艺预演与协作交付。",2,"2026-11-18 04:44:45","CREATED_QUERY"]