Skip to content

Feature Request: 3D Printer Dimensions #69

Description

@VR-Architect

BenchUp is fantastic for woodworking but is also awesome for the 3D modeling and 3D printing community. It would be great if we could define our printer's volume and have it shown on the canvas as a locked ghost model. This feature could also be used by woodworkers to define working spaces in their tool workspaces. For example, the dimension of a planer or the size of a cnc wood cutting machine.

  • Add settings:
    -- to show/hide the button on the canvas bar
    -- user enters X, Y, Z dimensions
  • Add a toggle button the top canvas bar to show/hide the ghost
  • When toggled on,
    -- the ghost model shows on the canvas
    -- the ghost's bottom panel's center point is located at the origin of the canvas
    -- the ghost model is locked from moving

Thanks for the considerations...Scott

Activity

  1. added
    help wantedExtra attention is needed
    enhancementNew feature or request
    and removed
    help wantedExtra attention is needed
    on Nov 14, 2026
  2. dannycoulombe commented on Nov 14, 2026

    @dannycoulombe
    Collaborator

    Good idea, yes! We could display a warning in the viewport whenever an object exceeds the canvas boundaries. If you'd like to implement it, please go ahead. Otherwise, I can tackle it later on.

  3. VR-Architect commented on Nov 14, 2026

    @VR-Architect
    Author

    I am happy to tackle it. Thanks...Scott

  4. VR-Architect commented on Nov 15, 2026

    @VR-Architect
    Author

    Hi Danny — first of all, thank you for the invitation to contribute.

    This is my very first pull request on any open source project, so please let me know if I have done
    anything the wrong way — branch name, commit message, PR description, test placement, scope, formatting,
    anything at all. I would rather correct it now than repeat the same mistake on the next two issues you
    assigned me.

    The PR is #77: implements this issue.

    What the PR does

    A locked, dashed reference box in the viewport, sized to a 3D printer's build volume or to a woodworking
    machine's working area — a planer's capacity, a CNC's cutting envelope, a drill press's throat depth.

    • It sits with the bottom face centred on the world origin, and it is locked: it cannot be
      selected, dragged or transformed.
    • It is not part of the project: it is never written to a .bup file, never exported, and never
      included in copy or select-all. It behaves like a viewport guide, not geometry.
    • As you suggested in this issue, a persistent banner appears while the volume is visible whenever a
      model leaves the volume: The model is outside the printer or tool volume.

    How to use it

    1. Open Settings → Tools and find the 3D Printer / Wood Tool Volume section.
    2. Type the size in Width (X), Depth (Y) and Height (Z). The default is 256 mm on all
      three sides — a common printer bed size.
      The numbers are entered in whatever units the workspace is using, so with the project in millimetres
      you type 256, and if you switch the workspace to centimetres the same box reads 25.6. Nothing is
      lost in the conversion because the value is stored in metres internally.
    3. Click the new icon in the viewport toolbar, next to Walk
      (tooltip: Show or hide the printer or tool volume).
      The box appears and the camera frames it, so it is visible whatever your current zoom. The button
      stays highlighted while the box is shown.
    4. Click it again to hide the box. The camera is left exactly where it was.
    5. Optional: set a shortcut in the same settings section. It is empty by default. If you pick a key
      a tool already uses, the tool keeps it, so you cannot lock yourself out of a tool.
    6. If you never want the button at all, untick Show the toggle on the viewport toolbar. The button
      disappears from the toolbar, and if the box was visible it is hidden at the same time.

    Details you may want to weigh in on

    • The volume is a global preference, not per-project document data. I chose this so that opening
      someone else's project on a machine without a printer does not inherit their build volume, and so it
      can never end up in a saved file or an export. If you would rather it be saved per project, it is a
      small change.
    • The default is 256 mm cubed. Easy to change if you would prefer something like 220 mm.
    • The warning is included because you offered it in this thread and I said I would take it. It can
      be split into a separate PR if you would prefer to review the volume on its own first.
    • Turning the toolbar button off also hides the box, so a saved shortcut cannot keep a box on screen
      after its only control has gone.

    Testing

    • 28 new tests in the repository: 14 for the volume module, 10 at app level (toggling, framing, the
      warning, the shortcut through real key events, the settings dialog, and isolation from save/export/
      copy/selection), and 4 for the preference defaults, clamping and translations.
    • cargo test --locked -p benchup-app --lib gives 1163 passed / 23 failed. Those 23 are exactly
      the set that already fails on pristine main at 5922466 (1135 passed / 23 failed), so they are
      unrelated to this change and I have deliberately not touched them. Measured in a separate worktree
      to be sure.
    • cargo test --locked -p benchup-core — 336 passed.
    • cargo check --locked -p benchup-app --target wasm32-unknown-unknown — clean.
    • Checked by hand in Chromium with a real WebGPU adapter: the box appears and hides, the warning
      appears and clears, the camera stays put when hiding, and the console is error-free.
    • Every new label is translated in all six catalogs, and a test enforces that.

    One small note: the PR checks are waiting for approval to run, which I understand is normal for a first
    contribution from a new account.

    If anything here is not how you would have done it, please just say so and I will rework it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

  • Status
    Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions