Wave 346/509: Engine tests: SMLib's faces, not truck's pieces, in the face counts and measures (and 3 more)

4 commits, squashed; the originals stay reachable from tag archive/merge-main-develop.

- ee9fc3793 jyviko: Tests: a torus patch to thicken is cut from SMLib's one-face torus
- ca53656a2 jyviko: Schema tests: an empty face list is checked on the draft, which refuses it
- ab68a3d0f jyviko: View tests: the section cap test draws the cap in the cap colour
- 24bcaca03 jyviko: Engine tests: SMLib's faces, not truck's pieces, in the face counts and measures

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
This commit is contained in:
jyviko
2026-10-28 22:11:05 -04:00
parent ce8981f167
commit aaecfda600
7 changed files with 49 additions and 44 deletions
+2 -1
View File
@@ -699,7 +699,8 @@ fn shared_types_keep_the_handlers_messages() {
for (id, p, probe) in [
("solid.shell", json!({"thickness": 1, "faces": 5}), json!({"faces": 5})),
("solid.shell", json!({"thickness": 1, "faces": null}), json!({"faces": null})),
("solid.shell", json!({"thickness": 1, "faces": []}), json!({"faces": []})),
// `solid.shell` takes no faces (a closed hollow body); the draft refuses them.
("solid.draft", json!({"angle": 1, "faces": []}), json!({"faces": []})),
("solid.shell", json!({"thickness": 1, "faces": [true]}), json!({"faces": [true]})),
("solid.shell", json!({"thickness": 1, "faces": [""]}), json!({"faces": [""]})),
("solid.fillet", json!({"radius": 1, "edges": {}}), json!({"edges": {}})),
+2 -2
View File
@@ -730,8 +730,8 @@ macro_rules! pick_list {
pick_list!(
/// The `faces` of `solid.shell`, `solid.draft`, `solid.offset_face`, `solid.split_face` and
/// `face.delete`, as `features::face_points` reads them. (Extrude's `faces` is a
/// [`FacesParam`].)
/// `face.delete`, as `features::face_points` reads them; `solid.shell` also takes an empty
/// list (a closed hollow body). (Extrude's `faces` is a [`FacesParam`].)
FaceRefs,
FaceRef,
"`faces` must be a list of points or face names",