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
+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