Print face: Send to Slicer lays a body on its marked face (#8429) (#8433)

* claim: #8429

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Print face: Send to Slicer lays a body on its marked face (#8429)

A body can have one flat print face (Document::print_faces, held by the
certified target a sketch on a face holds). body.print_face {body, point?}
marks or clears it. Send to Slicer, Save Mesh with a slicer and EasyPrint
turn and move the exported copy so the face lies on the bed at Z = 0 with
the centre of mass over the origin; a face that can't be found is a
warning and that body is exported as it lies. Move/Copy and Mirror give a
copy its source's print face. One pending format file; the command
has its own icon (print_face).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Print face: Ctrl+B, the face menu and the Send to Slicer row (#8429)

Ctrl+B and the face context menu mark the selected flat face as its
body's print face, or clear it. Send to Slicer shows the print face of
the one body being sent in a Print face input, takes a flat face picked
in the viewport and clears it when emptied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Print face: a light tint in the viewport and its strength in Preferences (#8429)

Each visible body's print face is tinted towards the theme's section
colour and outlined, at the strength set under Preferences > General >
Slicer (print_face_highlight, 0 to 1, 20 % by default; 0 hides it). The
user guide describes the print face, and the known limitation after a
shell of a shelled body is listed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
C.Vengels
2026-10-30 13:25:18 +00:00
committed by GitHub
parent 81b620d7aa
commit 3c40edd12a
31 changed files with 1301 additions and 43 deletions
+11
View File
@@ -67,6 +67,17 @@ with a `slicer`, which sends without a dialog. They can start only the slicers i
list and programs you added under **Custom…**; any other program path is refused, and an AI agent's
request to save a mesh or send it to a slicer asks first and names the slicer.
A body can have a **print face**: the flat face it should lie on in the slicer. Select the face
and press **Ctrl+B** (or **Print Face** in the face's right-click menu); press it again to clear
it. The Send to Slicer window shows the print face of the one body being sent in its **Print
face** row, where you can pick another face in the viewport or clear it. Each send then turns a
copy of the body so the print face points down at Z = 0, with its centre of mass over the
origin; the design itself does not move. The face is tinted and outlined in the viewport, and a
copy made with Move/Copy or Mirror keeps it. A print face that is gone or no longer flat is
reported, and the body is sent as it lies. Curved faces and mesh bodies can't be print faces.
Known limitation: after a shell of a body that is already shelled, no face of that body can be
marked, as no sketch can be attached to one either; this needs kernel work, which is paused.
The list also has a plain **EasyPrint (Printables, in the browser)** row, and it is the one entry
that works in the browser build too. EasyPrint is Printables' slicer, so choosing it uploads the
selected bodies (a 3MF, 100 MB at most) to Printables' servers and opens the model there in your
+13
View File
@@ -324,6 +324,19 @@ The first instance is the original.
- **Elsewhere:** instance, element, occurrence.
- **For translators:** not an occurrence of a component.
### print face
The flat face of a body that lies on the print bed when the body is sent to a slicer.
A body has one print face at most. The export turns a copy of the body so this face points down
at Z = 0, with the centre of mass over the origin; the design itself does not move.
- **In SolidCraft:** `body.print_face`; the `print_faces` of a design; the `print_faces` and
`warnings` of a `file.send_to_slicer` reply.
- **Don't use:** bottom face, base face (both say where a face is now, not where it is printed).
- **Elsewhere:** place on face, lay flat, bed face.
- **For translators:** the face the part stands on while it prints, not the printer's bed.
### reference edge
A straight edge of a flat face that a Single hole's centre or a cylinder's base centre keeps a
+1
View File
@@ -435,6 +435,7 @@ One setting per line, sorted by name. A change that adds a setting adds its own
- `pan_reverse_y` (default false: vertical scrolling pans the other way)
- `perspective_fov` (Perspective view's vertical field of view in radians, 0.2618…1.5708 (15°…90°), default 0.6; when it changes, the camera's distance scales so the view keeps its size)
- `placement_handles` (default false: handles on the preview of a Rest, Boss or Snap Fit that move it across the model and turn it)
- `print_face_highlight` (0…1, default 0.2: how strongly a print face is tinted and outlined in the view, #8429; 0 draws no highlight)
- `ribbon_reveal` (default false: hovering a result in Search commands switches the ribbon to the command's tab and marks its button, or opens the panel drop-down that holds it on its row, handle `ribbon:reveal`; leaving the results goes back to the tab before; a command started from the search blinks there, and a running command from a drop-down marks its panel label, `ribbon:running_section:<TAB>:<SECTION>`, #7287)
- `right_drag_orbits` (default true; false: a right drag the mouse preset would orbit leaves the camera alone, #6492)
- `show_frame_rate` (default false: frames per second in the view's bottom-right corner, counting the frames the view draws anyway; it reads 0 FPS once the view is idle)
+4
View File
@@ -404,6 +404,10 @@ completed drawings publish atomically. The browser still exports synchronously.
- Associative shell-face sketches require a unique certified planar source. Nested shell
attachments and ambiguous coincident sources remain unsupported.
- Print faces (#8429) are held like sketches on faces, so the same limit applies: after a shell
of a body that is already shelled, no face of that body has an exact name, and none can be
marked (`body.print_face` says so). Fixing it needs the shell to report its face history,
which is kernel work, paused for now (CONTRIBUTING.md, "Kernel work is paused").
- G2 fillets: exact quintic blends of straight edges between planar faces, with one planar
end face at each end, including sloped ends (#2708). The UI and `solid.fillet` expose
`curvature` (alias `g2`); the size is an equivalent circular setback. Curved faces/edges,