Skip to content

SolidCraft: an open-source parametric 3D CAD application built in pure Rust. Desktop, web, and automation through MCP.

Send to Slicer: the Print face input takes one face for each body sent (#10468)

C.Vengels7bafc99390a4
diff --git a/assets/locales/ar.json b/assets/locales/ar.json
index feb5f576ac..9151a03770 100644
--- a/assets/locales/ar.json
+++ b/assets/locales/ar.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "اضغط مفتاحًا…",
"ui.print_face_cleared": "{body}: تم مسح وجه الطباعة",
"ui.print_face_input": "وجه الطباعة",
- "ui.print_face_one_body": "يُختار وجه الطباعة لجسم واحد: أرسل ذلك الجسم وحده لتغييره",
"ui.print_face_pick": "اختر وجهًا مستويًا واحدًا لجسم صلب لجعله وجه الطباعة",
"ui.print_face_set": "{body}: تم تعيين وجه الطباعة؛ الإرسال إلى برنامج التقطيع يضع الجسم عليه",
"ui.profile": "المقطع",
diff --git a/assets/locales/bs.json b/assets/locales/bs.json
index 542a49ff73..3f812e22f8 100644
--- a/assets/locales/bs.json
+++ b/assets/locales/bs.json
@@ -4796,7 +4796,6 @@
"ui.press_a_key": "pritisnite tipku…",
"ui.print_face_cleared": "{body}: površina za štampu uklonjena",
"ui.print_face_input": "Površina za štampu",
- "ui.print_face_one_body": "Površina za štampu pripada jednom tijelu: pošaljite to tijelo samo da biste je promijenili",
"ui.print_face_pick": "Odaberite ravnu površinu punog tijela da postane površina za štampu",
"ui.print_face_set": "{body}: površina za štampu postavljena; Pošalji u slajser polaže tijelo na nju",
"ui.profile": "Profil",
diff --git a/assets/locales/cs.json b/assets/locales/cs.json
index 41503e4e63..4ab2f62c0f 100644
--- a/assets/locales/cs.json
+++ b/assets/locales/cs.json
@@ -4796,7 +4796,6 @@
"ui.press_a_key": "stiskněte klávesu…",
"ui.print_face_cleared": "{body}: tisková plocha zrušena",
"ui.print_face_input": "Tisková plocha",
- "ui.print_face_one_body": "Tisková plocha patří jednomu tělesu: odešlete toto těleso samostatně, abyste ji změnili",
"ui.print_face_pick": "Vyberte rovinnou plochu objemového tělesa, aby se stala tiskovou plochou",
"ui.print_face_set": "{body}: tisková plocha nastavena; Odeslat do sliceru položí těleso na ni",
"ui.profile": "Profil",
diff --git a/assets/locales/da.json b/assets/locales/da.json
index b6a1e56fda..fe4e0945b9 100644
--- a/assets/locales/da.json
+++ b/assets/locales/da.json
@@ -4796,7 +4796,6 @@
"ui.press_a_key": "tryk på en tast…",
"ui.print_face_cleared": "{body}: printflade ryddet",
"ui.print_face_input": "Printflade",
- "ui.print_face_one_body": "En printflade hører til ét legeme: send det legeme alene for at ændre den",
"ui.print_face_pick": "Vælg en plan flade på et massivt legeme for at gøre den til printfladen",
"ui.print_face_set": "{body}: printflade sat; Send til slicer lægger legemet på den",
"ui.profile": "Profil",
diff --git a/assets/locales/de.json b/assets/locales/de.json
index 683759b9e6..3457e0e771 100644
--- a/assets/locales/de.json
+++ b/assets/locales/de.json
@@ -4844,7 +4844,6 @@
"ui.press_a_key": "Taste drücken…",
"ui.print_face_cleared": "{body}: Auflagefläche entfernt",
"ui.print_face_input": "Auflagefläche",
- "ui.print_face_one_body": "Eine Auflagefläche gehört zu einem Körper: Sende diesen Körper allein, um sie zu ändern",
"ui.print_face_pick": "Eine plane Fläche eines Volumenkörpers auswählen, um sie zur Auflagefläche zu machen",
"ui.print_face_set": "{body}: Auflagefläche gesetzt; An Slicer senden legt den Körper darauf",
"ui.profile": "Profil",
diff --git a/assets/locales/en.json b/assets/locales/en.json
index bbd41bd197..447ce8de5f 100644
--- a/assets/locales/en.json
+++ b/assets/locales/en.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "press a key…",
"ui.print_face_cleared": "{body}: print face cleared",
"ui.print_face_input": "Print face",
- "ui.print_face_one_body": "A print face is picked for one body: send that body on its own to change it",
"ui.print_face_pick": "Select one flat face of a solid body to make it the print face",
"ui.print_face_set": "{body}: print face set; Send to Slicer lays the body on it",
"ui.profile": "Profile",
diff --git a/assets/locales/es.json b/assets/locales/es.json
index f039ed860b..2b4125ebbd 100644
--- a/assets/locales/es.json
+++ b/assets/locales/es.json
@@ -4506,7 +4506,6 @@
"ui.press_a_key": "pulsa una tecla…",
"ui.print_face_cleared": "{body}: cara de impresión limpiada",
"ui.print_face_input": "Cara de impresión",
- "ui.print_face_one_body": "Se ha elegido una cara de impresión para un cuerpo: envía ese cuerpo solo para cambiarla",
"ui.print_face_pick": "Selecciona una cara plana de un cuerpo sólido para hacerla la cara de impresión",
"ui.print_face_set": "{body}: cara de impresión establecida; Enviar a Laminador coloca el cuerpo sobre ella",
"ui.profile": "Perfil",
diff --git a/assets/locales/fi.json b/assets/locales/fi.json
index 142c0c90bb..e2168ae95b 100644
--- a/assets/locales/fi.json
+++ b/assets/locales/fi.json
@@ -4470,7 +4470,6 @@
"ui.press_a_key": "paina näppäintä…",
"ui.print_face_cleared": "{body}: tulostuspinta poistettu",
"ui.print_face_input": "Tulostuspinta",
- "ui.print_face_one_body": "Tulostuspinta on valittu yhdelle kappaleelle: lähetä kappale yksinään muuttaaksesi sitä",
"ui.print_face_pick": "Valitse kiinteän kappaleen yksi tasainen pinta tulostuspinnaksi",
"ui.print_face_set": "{body}: tulostuspinta asetettu; Lähetä viipalointiohjelmaan asettaa kappaleen sen varaan",
"ui.profile": "Profiili",
diff --git a/assets/locales/fr.json b/assets/locales/fr.json
index 27ce2b4545..cb6dc2d4e7 100644
--- a/assets/locales/fr.json
+++ b/assets/locales/fr.json
@@ -4807,7 +4807,6 @@
"ui.press_a_key": "appuyez sur une touche…",
"ui.print_face_cleared": "{body} : face d’impression effacée",
"ui.print_face_input": "Face d’impression",
- "ui.print_face_one_body": "Une face d’impression appartient à un seul corps : envoyez ce corps seul pour la modifier",
"ui.print_face_pick": "Sélectionnez une face plane d’un corps solide pour en faire la face d’impression",
"ui.print_face_set": "{body} : face d’impression définie ; Envoyer au slicer pose le corps sur cette face",
"ui.profile": "Profil",
diff --git a/assets/locales/gl.json b/assets/locales/gl.json
index f3b3e3abb9..21a1a95d42 100644
--- a/assets/locales/gl.json
+++ b/assets/locales/gl.json
@@ -4796,7 +4796,6 @@
"ui.press_a_key": "preme unha tecla…",
"ui.print_face_cleared": "{body}: cara de impresión quitada",
"ui.print_face_input": "Cara de impresión",
- "ui.print_face_one_body": "Unha cara de impresión pertence a un só corpo: envía ese corpo só para cambiala",
"ui.print_face_pick": "Selecciona unha cara plana dun corpo sólido para facela a cara de impresión",
"ui.print_face_set": "{body}: cara de impresión definida; Enviar ao laminador apoia o corpo sobre ela",
"ui.profile": "Perfil",
diff --git a/assets/locales/he.json b/assets/locales/he.json
index f65c11d73f..1c012e21ac 100644
--- a/assets/locales/he.json
+++ b/assets/locales/he.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "יש ללחוץ על מקש…",
"ui.print_face_cleared": "{body}: פאת ההדפסה נוקתה",
"ui.print_face_input": "פאת הדפסה",
- "ui.print_face_one_body": "פאת הדפסה נבחרת לגוף אחד: שלח את הגוף הזה לבדו כדי לשנות אותה",
"ui.print_face_pick": "בחר פאה שטוחה אחת של גוף מוצק כדי להפוך אותה לפאת ההדפסה",
"ui.print_face_set": "{body}: פאת ההדפסה הוגדרה; שליחה לסלייסר מניחה את הגוף עליה",
"ui.profile": "פרופיל",
diff --git a/assets/locales/hr.json b/assets/locales/hr.json
index 1c4c759bec..a155d47fc0 100644
--- a/assets/locales/hr.json
+++ b/assets/locales/hr.json
@@ -4796,7 +4796,6 @@
"ui.press_a_key": "pritisnite tipku…",
"ui.print_face_cleared": "{body}: ploha ispisa uklonjena",
"ui.print_face_input": "Ploha ispisa",
- "ui.print_face_one_body": "Ploha ispisa pripada jednom tijelu: pošaljite to tijelo samo da biste je promijenili",
"ui.print_face_pick": "Odaberite ravnu plohu punog tijela da postane ploha ispisa",
"ui.print_face_set": "{body}: ploha ispisa postavljena; Pošalji u slicer polaže tijelo na nju",
"ui.profile": "Profil",
diff --git a/assets/locales/hu.json b/assets/locales/hu.json
index 8ca09b7674..6b148d8484 100644
--- a/assets/locales/hu.json
+++ b/assets/locales/hu.json
@@ -4796,7 +4796,6 @@
"ui.press_a_key": "nyomjon meg egy billentyűt…",
"ui.print_face_cleared": "{body}: nyomtatási lap törölve",
"ui.print_face_input": "Nyomtatási lap",
- "ui.print_face_one_body": "A nyomtatási lap egy testhez tartozik: a módosításhoz küldd el azt a testet egyedül",
"ui.print_face_pick": "Válassz ki egy tömör test egy sík lapját, hogy az legyen a nyomtatási lap",
"ui.print_face_set": "{body}: nyomtatási lap beállítva; a Küldés szeletelőnek erre a lapra fekteti a testet",
"ui.profile": "Profil",
diff --git a/assets/locales/id.json b/assets/locales/id.json
index 66cf9988f4..e2971185fd 100644
--- a/assets/locales/id.json
+++ b/assets/locales/id.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "tekan tombol…",
"ui.print_face_cleared": "{body}: permukaan cetak dihapus",
"ui.print_face_input": "Permukaan cetak",
- "ui.print_face_one_body": "Permukaan cetak milik satu bodi: kirim bodi itu sendiri untuk mengubahnya",
"ui.print_face_pick": "Pilih satu permukaan datar dari bodi padat untuk dijadikan permukaan cetak",
"ui.print_face_set": "{body}: permukaan cetak diatur; Kirim ke slicer meletakkan bodi di atasnya",
"ui.profile": "Profil",
diff --git a/assets/locales/it.json b/assets/locales/it.json
index e031e42b36..e05d9303f6 100644
--- a/assets/locales/it.json
+++ b/assets/locales/it.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "premi un tasto…",
"ui.print_face_cleared": "{body}: faccia di stampa rimossa",
"ui.print_face_input": "Faccia di stampa",
- "ui.print_face_one_body": "Una faccia di stampa appartiene a un solo corpo: invia quel corpo da solo per cambiarla",
"ui.print_face_pick": "Seleziona una faccia piana di un corpo solido per renderla la faccia di stampa",
"ui.print_face_set": "{body}: faccia di stampa impostata; Invia allo slicer appoggia il corpo su di essa",
"ui.profile": "Profilo",
diff --git a/assets/locales/ja.json b/assets/locales/ja.json
index c5a51a4452..1c0e0c3476 100644
--- a/assets/locales/ja.json
+++ b/assets/locales/ja.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "キーを押してください…",
"ui.print_face_cleared": "{body}: 造形面を解除しました",
"ui.print_face_input": "造形面",
- "ui.print_face_one_body": "造形面はボディごとに選びます。変更するにはそのボディだけを送信してください",
"ui.print_face_pick": "ソリッドボディの平面を1つ選択すると造形面になります",
"ui.print_face_set": "{body}: 造形面を設定しました。スライサーへ送るとこの面を下にして置きます",
"ui.profile": "プロファイル",
diff --git a/assets/locales/ko.json b/assets/locales/ko.json
index d8dbd9494d..b69dd0bfc7 100644
--- a/assets/locales/ko.json
+++ b/assets/locales/ko.json
@@ -3618,7 +3618,6 @@
"ui.press_a_key": "키를 누르세요…",
"ui.print_face_cleared": "{body}: 출력 바닥면을 해제했습니다",
"ui.print_face_input": "출력 바닥면",
- "ui.print_face_one_body": "출력 바닥면은 바디마다 하나입니다. 변경하려면 그 바디만 보내십시오",
"ui.print_face_pick": "솔리드 바디의 평면 하나를 선택하면 출력 바닥면이 됩니다",
"ui.print_face_set": "{body}: 출력 바닥면을 설정했습니다. 슬라이서로 보내면 이 면이 아래로 놓입니다",
"ui.profile": "프로파일",
diff --git a/assets/locales/ms.json b/assets/locales/ms.json
index 87b5a27024..2e740247f5 100644
--- a/assets/locales/ms.json
+++ b/assets/locales/ms.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "tekan kekunci…",
"ui.print_face_cleared": "{body}: muka cetakan dikosongkan",
"ui.print_face_input": "Muka cetakan",
- "ui.print_face_one_body": "Muka cetakan dimiliki oleh satu jasad: hantar jasad itu sahaja untuk menukarnya",
"ui.print_face_pick": "Pilih satu muka rata pada jasad pepejal untuk menjadikannya muka cetakan",
"ui.print_face_set": "{body}: muka cetakan ditetapkan; Hantar ke penghiris meletakkan jasad di atasnya",
"ui.profile": "Profil",
diff --git a/assets/locales/nb.json b/assets/locales/nb.json
index 3434ec1b02..1aca68dc56 100644
--- a/assets/locales/nb.json
+++ b/assets/locales/nb.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "trykk på en tast…",
"ui.print_face_cleared": "{body}: utskriftsflate fjernet",
"ui.print_face_input": "Utskriftsflate",
- "ui.print_face_one_body": "En utskriftsflate hører til ett legeme: send det legemet alene for å endre den",
"ui.print_face_pick": "Velg en plan flate på et massivt legeme for å gjøre den til utskriftsflaten",
"ui.print_face_set": "{body}: utskriftsflate satt; Send til slicer legger legemet på den",
"ui.profile": "Profil",
diff --git a/assets/locales/nl.json b/assets/locales/nl.json
index fc74d29921..2c5f9084de 100644
--- a/assets/locales/nl.json
+++ b/assets/locales/nl.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "druk op een toets…",
"ui.print_face_cleared": "{body}: printvlak gewist",
"ui.print_face_input": "Printvlak",
- "ui.print_face_one_body": "Een printvlak hoort bij één lichaam: stuur dat lichaam alleen om het te wijzigen",
"ui.print_face_pick": "Selecteer één vlak van een massief lichaam om het het printvlak te maken",
"ui.print_face_set": "{body}: printvlak ingesteld; Naar slicer sturen legt het lichaam erop",
"ui.profile": "Profiel",
diff --git a/assets/locales/pending/print-face-each-body.json b/assets/locales/pending/print-face-each-body.json
new file mode 100644
index 0000000000..3133e0a945
--- /dev/null
+++ b/assets/locales/pending/print-face-each-body.json
@@ -0,0 +1,33 @@
+{
+ "en": { "ui.print_face_body_not_sent": "That face's body is not being sent: add it to Bodies first" },
+ "ar": { "ui.print_face_body_not_sent": "جسم هذا الوجه لا يُرسل: أضفه أولًا إلى الأجسام" },
+ "bs": { "ui.print_face_body_not_sent": "Tijelo te površine se ne šalje: prvo ga dodajte u Tijela" },
+ "cs": { "ui.print_face_body_not_sent": "Těleso této plochy se neodesílá: nejprve ho přidejte do Tělesa" },
+ "da": { "ui.print_face_body_not_sent": "Den flades emne sendes ikke: føj det først til Emner" },
+ "de": { "ui.print_face_body_not_sent": "Der Körper dieser Fläche wird nicht gesendet: Füge ihn zuerst bei Körper hinzu" },
+ "es": { "ui.print_face_body_not_sent": "El cuerpo de esa cara no se envía: añádelo primero a Cuerpos" },
+ "fi": { "ui.print_face_body_not_sent": "Tämän pinnan kappaletta ei lähetetä: lisää se ensin kohtaan Kappaleet" },
+ "fr": { "ui.print_face_body_not_sent": "Le corps de cette face n’est pas envoyé : ajoutez-le d’abord à Corps" },
+ "gl": { "ui.print_face_body_not_sent": "O corpo desa cara non se envía: engádeo primeiro a Corpos" },
+ "he": { "ui.print_face_body_not_sent": "הגוף של פאה זו אינו נשלח: הוסף אותו קודם לגופים" },
+ "hr": { "ui.print_face_body_not_sent": "Tijelo te plohe ne šalje se: najprije ga dodajte u Tijela" },
+ "hu": { "ui.print_face_body_not_sent": "Ennek a lapnak a teste nincs elküldve: előbb add hozzá a Testekhez" },
+ "id": { "ui.print_face_body_not_sent": "Bodi permukaan itu tidak dikirim: tambahkan dulu ke Bodi" },
+ "it": { "ui.print_face_body_not_sent": "Il corpo di quella faccia non viene inviato: aggiungilo prima a Corpi" },
+ "ja": { "ui.print_face_body_not_sent": "この面のボディは送信されません。先にボディに追加してください" },
+ "ko": { "ui.print_face_body_not_sent": "이 면의 바디는 보내지지 않습니다. 먼저 바디에 추가하십시오" },
+ "ms": { "ui.print_face_body_not_sent": "Jasad muka itu tidak dihantar: tambahkannya pada Jasad dahulu" },
+ "nb": { "ui.print_face_body_not_sent": "Legemet til den flaten sendes ikke: legg det til i Kropper først" },
+ "nl": { "ui.print_face_body_not_sent": "Het lichaam van dat vlak wordt niet verstuurd: voeg het eerst toe aan Lichamen" },
+ "pl": { "ui.print_face_body_not_sent": "Bryła tej powierzchni nie jest wysyłana: najpierw dodaj ją do Bryły" },
+ "pt-BR": { "ui.print_face_body_not_sent": "O corpo dessa face não está sendo enviado: adicione-o primeiro a Corpos" },
+ "ro": { "ui.print_face_body_not_sent": "Corpul acelei fețe nu este trimis: adăugați-l mai întâi la Corpuri" },
+ "ru": { "ui.print_face_body_not_sent": "Тело этой грани не отправляется: сначала добавьте его в Тела" },
+ "sr": { "ui.print_face_body_not_sent": "Тело те површине се не шаље: прво га додајте у Тела" },
+ "sv": { "ui.print_face_body_not_sent": "Den ytans kropp skickas inte: lägg först till den i Kroppar" },
+ "tr": { "ui.print_face_body_not_sent": "Bu yüzeyin gövdesi gönderilmiyor: önce onu Gövdeler'e ekleyin" },
+ "uk": { "ui.print_face_body_not_sent": "Тіло цієї грані не надсилається: спершу додайте його до Тіла" },
+ "vi": { "ui.print_face_body_not_sent": "Thân của mặt này không được gửi: hãy thêm nó vào Thân khối trước" },
+ "zh-TW": { "ui.print_face_body_not_sent": "此面的實體不會傳送:請先將其加入實體" },
+ "zh": { "ui.print_face_body_not_sent": "此面所属的实体不会发送:请先将其添加到实体" }
+}
diff --git a/assets/locales/pl.json b/assets/locales/pl.json
index 20294dfe80..31dffe5765 100644
--- a/assets/locales/pl.json
+++ b/assets/locales/pl.json
@@ -3142,7 +3142,6 @@
"ui.press_a_key": "naciśnij klawisz…",
"ui.print_face_cleared": "{body}: usunięto powierzchnię druku",
"ui.print_face_input": "Powierzchnia druku",
- "ui.print_face_one_body": "Powierzchnia druku należy do jednej bryły: wyślij tę bryłę osobno, aby ją zmienić",
"ui.print_face_pick": "Wybierz płaską powierzchnię bryły, aby ustawić ją jako powierzchnię druku",
"ui.print_face_set": "{body}: ustawiono powierzchnię druku; Wyślij do slicera kładzie bryłę na niej",
"ui.profile": "Profil",
diff --git a/assets/locales/pt-BR.json b/assets/locales/pt-BR.json
index 19b0560447..0aad2d8ecf 100644
--- a/assets/locales/pt-BR.json
+++ b/assets/locales/pt-BR.json
@@ -2207,7 +2207,6 @@
"ui.press_a_key": "pressione uma tecla…",
"ui.print_face_cleared": "{body}: face de impressão removida",
"ui.print_face_input": "Face de impressão",
- "ui.print_face_one_body": "Uma face de impressão pertence a um único corpo: envie esse corpo sozinho para alterá-la",
"ui.print_face_pick": "Selecione uma face plana de um corpo sólido para torná-la a face de impressão",
"ui.print_face_set": "{body}: face de impressão definida; Enviar ao fatiador apoia o corpo sobre ela",
"ui.profile": "Perfil",
diff --git a/assets/locales/ro.json b/assets/locales/ro.json
index 99d9f8ed19..12943b42ae 100644
--- a/assets/locales/ro.json
+++ b/assets/locales/ro.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "apăsați o tastă…",
"ui.print_face_cleared": "{body}: fața de imprimare a fost ștearsă",
"ui.print_face_input": "Față de imprimare",
- "ui.print_face_one_body": "O față de imprimare aparține unui singur corp: trimiteți acel corp singur pentru a o schimba",
"ui.print_face_pick": "Selectați o față plană a unui corp solid pentru a o face fața de imprimare",
"ui.print_face_set": "{body}: fața de imprimare a fost setată; Trimite la slicer așază corpul pe ea",
"ui.profile": "Profil",
diff --git a/assets/locales/ru.json b/assets/locales/ru.json
index 60a93f6bab..ef42b97a80 100644
--- a/assets/locales/ru.json
+++ b/assets/locales/ru.json
@@ -4754,7 +4754,6 @@
"ui.press_a_key": "нажмите клавишу…",
"ui.print_face_cleared": "{body}: грань печати сброшена",
"ui.print_face_input": "Грань печати",
- "ui.print_face_one_body": "Грань печати относится к одному телу: отправьте это тело отдельно, чтобы изменить её",
"ui.print_face_pick": "Выберите плоскую грань твёрдого тела, чтобы сделать её гранью печати",
"ui.print_face_set": "{body}: грань печати задана; «Отправить в слайсер» кладёт тело на неё",
"ui.profile": "Профиль",
diff --git a/assets/locales/sr.json b/assets/locales/sr.json
index 09277f6c04..3595fb11c4 100644
--- a/assets/locales/sr.json
+++ b/assets/locales/sr.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "притисните тастер…",
"ui.print_face_cleared": "{body}: површина за штампу уклоњена",
"ui.print_face_input": "Површина за штампу",
- "ui.print_face_one_body": "Површина за штампу припада једном телу: пошаљите то тело само да бисте је променили",
"ui.print_face_pick": "Изаберите равну површину пуног тела да постане површина за штампу",
"ui.print_face_set": "{body}: површина за штампу постављена; Пошаљи у слајсер полаже тело на њу",
"ui.profile": "Профил",
diff --git a/assets/locales/sv.json b/assets/locales/sv.json
index 9fd2f9c605..dae339b895 100644
--- a/assets/locales/sv.json
+++ b/assets/locales/sv.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "tryck på en tangent…",
"ui.print_face_cleared": "{body}: utskriftsyta rensad",
"ui.print_face_input": "Utskriftsyta",
- "ui.print_face_one_body": "En utskriftsyta hör till en kropp: skicka den kroppen ensam för att ändra den",
"ui.print_face_pick": "Välj en plan yta på en solid kropp för att göra den till utskriftsytan",
"ui.print_face_set": "{body}: utskriftsyta angiven; Skicka till slicer lägger kroppen på den",
"ui.profile": "Profil",
diff --git a/assets/locales/tr.json b/assets/locales/tr.json
index 6662718aae..efe1a74881 100644
--- a/assets/locales/tr.json
+++ b/assets/locales/tr.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "bir tuşa basın…",
"ui.print_face_cleared": "{body}: baskı yüzeyi temizlendi",
"ui.print_face_input": "Baskı yüzeyi",
- "ui.print_face_one_body": "Baskı yüzeyi tek bir gövdeye aittir: değiştirmek için o gövdeyi tek başına gönderin",
"ui.print_face_pick": "Baskı yüzeyi yapmak için katı bir gövdenin düz bir yüzeyini seçin",
"ui.print_face_set": "{body}: baskı yüzeyi ayarlandı; Dilimleyiciye gönder gövdeyi bu yüzeyin üzerine koyar",
"ui.profile": "Profil",
diff --git a/assets/locales/uk.json b/assets/locales/uk.json
index 2f4759fba5..100157ff7f 100644
--- a/assets/locales/uk.json
+++ b/assets/locales/uk.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "натисніть клавішу…",
"ui.print_face_cleared": "{body}: грань друку скинуто",
"ui.print_face_input": "Грань друку",
- "ui.print_face_one_body": "Грань друку належить одному тілу: надішліть це тіло окремо, щоб змінити її",
"ui.print_face_pick": "Виберіть плоску грань твердого тіла, щоб зробити її гранню друку",
"ui.print_face_set": "{body}: грань друку задано; «Надіслати в слайсер» кладе тіло на неї",
"ui.profile": "Профіль",
diff --git a/assets/locales/vi.json b/assets/locales/vi.json
index 81fa9e342d..7c667d085b 100644
--- a/assets/locales/vi.json
+++ b/assets/locales/vi.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "nhấn một phím…",
"ui.print_face_cleared": "{body}: đã xóa mặt in",
"ui.print_face_input": "Mặt in",
- "ui.print_face_one_body": "Mặt in được chọn cho một thân: hãy gửi riêng thân đó để thay đổi",
"ui.print_face_pick": "Chọn một mặt phẳng của thân đặc để đặt làm mặt in",
"ui.print_face_set": "{body}: đã đặt mặt in; Gửi đến Slicer sẽ đặt thân lên mặt này",
"ui.profile": "Biên dạng",
diff --git a/assets/locales/zh-TW.json b/assets/locales/zh-TW.json
index e5a8a1e8d6..1d9b7a3fa7 100644
--- a/assets/locales/zh-TW.json
+++ b/assets/locales/zh-TW.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "按一個鍵…",
"ui.print_face_cleared": "{body}:已清除列印底面",
"ui.print_face_input": "列印底面",
- "ui.print_face_one_body": "列印底面屬於單一實體:請單獨傳送該實體以變更它",
"ui.print_face_pick": "選取實體的一個平面,將其設為列印底面",
"ui.print_face_set": "{body}:已設定列印底面;傳送到切片軟體時實體會放在此面上",
"ui.profile": "輪廓",
diff --git a/assets/locales/zh.json b/assets/locales/zh.json
index 43b63bdf79..4fe4bb6d10 100644
--- a/assets/locales/zh.json
+++ b/assets/locales/zh.json
@@ -4861,7 +4861,6 @@
"ui.press_a_key": "按一个键…",
"ui.print_face_cleared": "{body}:已清除打印底面",
"ui.print_face_input": "打印底面",
- "ui.print_face_one_body": "打印底面属于单个实体:请单独发送该实体以更改它",
"ui.print_face_pick": "选择实体的一个平面,将其设为打印底面",
"ui.print_face_set": "{body}:已设置打印底面;发送到切片软件时实体将放在此面上",
"ui.profile": "轮廓",
diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs
index d10b961b60..22f22e4d19 100644
--- a/crates/ui-egui/src/dialogs.rs
+++ b/crates/ui-egui/src/dialogs.rs
@@ -1667,8 +1667,9 @@ impl Dialog {
self.profile_selection_changed = true;
}
let measure = matches!(self.kind, Kind::Measure { .. });
- // The chat's picks stay what was clicked: a rim is one edge there, not its pieces.
- let one = measure || matches!(self.kind, Kind::ChatContext);
+ // The chat's picks stay what was clicked: a rim is one edge there, not its pieces. So do
+ // print faces: a click on one takes it out, not the other pieces of its surface in.
+ let one = measure || matches!(self.kind, Kind::ChatContext | Kind::SaveMesh(_));
let sel = if measure { crate::viewport::measurement_selection(s, &sel) } else { sel };
let chain = matches!(self.kind, Kind::Fillet { chain: true, .. });
let single =
diff --git a/crates/ui-egui/src/dialogs_save_mesh.rs b/crates/ui-egui/src/dialogs_save_mesh.rs
index c4ec7b72c4..cf6d476b1f 100644
--- a/crates/ui-egui/src/dialogs_save_mesh.rs
+++ b/crates/ui-egui/src/dialogs_save_mesh.rs
@@ -3,9 +3,10 @@
//! send the bodies to: it always asks, and pre-selects the slicer used last time. The list also has
//! a plain text row for EasyPrint (`file.open_in_easyprint`), which works in a browser too.
//!
-//! Send to Slicer also has a Print face input (#8429): it shows the print face of the one body being
-//! sent, takes a flat face picked in the viewport as that body's print face, and clears it when
-//! emptied. Each change runs `body.print_face` at once, so it undoes like any other.
+//! Send to Slicer also has a Print face input (#8429): it shows the print face of each body being
+//! sent, takes a flat face picked in the viewport as its body's print face (in place of the one it
+//! had), and clears a body's when its face is taken out. Each change runs `body.print_face` at
+//! once, so it undoes like any other.
//!
//! Every place that saves a mesh opens this dialog: File › Export STL / Export 3MF, the Mesh tab, and the
//! Save As Mesh item of the body menus. The slicer list (Send to Slicer only) holds the programs the user added (kept
@@ -51,9 +52,9 @@ pub struct SaveMesh {
slicer: String,
/// The slicer list has not been read for this opening yet.
stale: bool,
- /// Send to Slicer: the bodies and the print face the Print face input last showed, to tell
+ /// Send to Slicer: the bodies and the print faces the Print face input last showed, to tell
/// a pick or a clear in it from a change of the bodies.
- shown: Option<(Vec<String>, Option<Sel>)>,
+ shown: Option<(Vec<String>, Vec<Sel>)>,
}
impl SaveMesh {
@@ -138,7 +139,7 @@ pub fn start(app: &SolveApp, id: &str) -> Option<(Kind, Vec<SelInput>)> {
let kind = Kind::SaveMesh(SaveMesh { format, quality, open, slicer, stale: true, shown: None });
let mut inputs = vec![SelInput::new("Bodies", BODIES, true)];
if open {
- inputs.push(SelInput::new("Print face", PLANAR_FACES, false));
+ inputs.push(SelInput::new("Print face", PLANAR_FACES, true));
}
Some((kind, inputs))
}
@@ -321,26 +322,33 @@ pub(crate) fn body_picks(app: &SolveApp, visible: bool) -> Vec<Sel> {
st.bodies.iter().filter(|b| shown(&b.name)).map(|b| Sel::Body { name: b.name.clone() }).collect()
}
-/// Keep the Print face input and the design in step. A face picked into it becomes the print
-/// face of its body, which must be the one body being sent; emptying it clears that body's print
-/// face. When the bodies change, it shows the print face of the one body, or nothing for several.
+/// Keep the Print face input and the design in step: it holds the print face of each body being
+/// sent. A face picked into it becomes the print face of its body, in place of the one it had; a
+/// face taken out of it clears its body's. When the bodies change, it shows their print faces.
fn sync_print_face(app: &mut SolveApp, k: &mut SaveMesh, inputs: &mut [SelInput]) {
let bodies = crate::selection::items(inputs, 0).body_names();
let Some(input) = inputs.get_mut(1) else { return };
- let picked = input.items.first().cloned();
match k.shown.take() {
- Some((shown_bodies, shown)) if shown_bodies == bodies && shown != picked => {
- let one = bodies.first().filter(|_| bodies.len() == 1).cloned();
- let target = match (&picked, &shown) {
- (Some(Sel::Face { body, .. }), _) => Some(body.clone()),
- (None, Some(Sel::Face { body, .. })) => Some(body.clone()),
- _ => None,
- };
- match (target, one) {
- (Some(body), Some(one)) if body == one => {
- crate::print_face_ui::set(app, &body, picked.as_ref());
+ Some((shown_bodies, shown)) if shown_bodies == bodies && shown != input.items => {
+ let picked = input.items.clone();
+ // New faces first: a body picked anew keeps its new face, and is not then cleared
+ // because its old one has left the input.
+ let mut done: Vec<String> = Vec::new();
+ for face in picked.iter().filter(|f| !shown.contains(f)) {
+ let Sel::Face { body, .. } = face else { continue };
+ if !bodies.contains(body) {
+ app.set_status(crate::i18n::tr("ui.print_face_body_not_sent"), true);
+ } else if !done.contains(body) {
+ crate::print_face_ui::set(app, body, Some(face));
+ done.push(body.clone());
+ }
+ }
+ for face in shown.iter().filter(|f| !picked.contains(f)) {
+ let Sel::Face { body, .. } = face else { continue };
+ if !done.contains(body) {
+ crate::print_face_ui::set(app, body, None);
+ done.push(body.clone());
}
- _ => app.set_status(crate::i18n::tr("ui.print_face_one_body"), true),
}
}
Some(shown) if shown.0 == bodies => {
@@ -349,8 +357,8 @@ fn sync_print_face(app: &mut SolveApp, k: &mut SaveMesh, inputs: &mut [SelInput]
}
_ => {}
}
- let current = bodies.first().filter(|_| bodies.len() == 1).and_then(|b| crate::print_face_ui::current(app, b));
- input.items = current.iter().cloned().collect();
+ let current: Vec<Sel> = bodies.iter().filter_map(|b| crate::print_face_ui::current(app, b)).collect();
+ input.items = current.clone();
k.shown = Some((bodies, current));
}
@@ -951,4 +959,54 @@ mod tests {
let (_, saved) = commands(&SaveMesh { open: false, ..k }, &[input]).unwrap().remove(0);
assert_eq!(saved["quality"], "finest");
}
+
+ #[test]
+ fn the_print_face_input_takes_one_face_for_each_body_sent() {
+ let mut h = crate::scenario::Harness::new();
+ for (name, x) in [("One", 0), ("Two", 20)] {
+ h.app.run("solid.box", json!({"length":10,"width":10,"height":10,"corner":[x,0,0],"operation":"new_body","body_name":name})).unwrap();
+ }
+ h.app.services.pick_program = Some(Box::new(|| Box::pin(async { None })));
+ h.app.start("file.send_to_slicer");
+ let all = body_picks(&h.app, false);
+ h.app.dialog.as_mut().unwrap().inputs[0].items = all;
+ h.settle();
+ // A click on the face of `body` at `point` in the Print face input; that face's index.
+ let pick = |h: &mut crate::scenario::Harness, body: &str, point: [f64; 3]| {
+ let p = solidcraft_engine::geom::Vec3::new(point[0], point[1], point[2]);
+ let index = solidcraft_engine::doc::appearance::face_index_at(h.app.session.world_state().body(body).unwrap(), p).unwrap();
+ let d = h.app.dialog.as_mut().unwrap();
+ d.active = 1;
+ d.pick(&h.app.session, Sel::Face { body: body.into(), index, point: p });
+ h.settle();
+ index
+ };
+ let shown = |h: &crate::scenario::Harness| h.app.dialog.as_ref().unwrap().inputs[1].items.len();
+ let one_bottom = pick(&mut h, "One", [5.0, 5.0, 0.0]);
+ let two_bottom = pick(&mut h, "Two", [25.0, 5.0, 0.0]);
+ assert!(crate::print_face_ui::is_print_face(&h.app, "One", one_bottom));
+ assert!(crate::print_face_ui::is_print_face(&h.app, "Two", two_bottom), "a second body takes its own face");
+ assert_eq!(shown(&h), 2);
+ // Another face of One takes the place of its first; Two keeps its own.
+ let one_top = pick(&mut h, "One", [5.0, 5.0, 10.0]);
+ assert!(crate::print_face_ui::is_print_face(&h.app, "One", one_top));
+ assert!(crate::print_face_ui::is_print_face(&h.app, "Two", two_bottom));
+ assert_eq!(shown(&h), 2);
+ // A click on a body's print face takes it out, and clears only that body's.
+ pick(&mut h, "One", [5.0, 5.0, 10.0]);
+ assert!(crate::print_face_ui::current(&h.app, "One").is_none());
+ assert!(crate::print_face_ui::is_print_face(&h.app, "Two", two_bottom));
+ assert_eq!(shown(&h), 1);
+ // Each change is a command of its own.
+ h.app.run("edit.undo", json!({})).unwrap();
+ assert!(crate::print_face_ui::is_print_face(&h.app, "One", one_top));
+ // With Two alone sent, the input shows its face; a face of One, not sent, is refused.
+ h.app.dialog.as_mut().unwrap().inputs[0].items = vec![Sel::Body { name: "Two".into() }];
+ h.settle();
+ assert_eq!(h.app.dialog.as_ref().unwrap().inputs[1].items.len(), 1);
+ pick(&mut h, "One", [5.0, 5.0, 0.0]);
+ assert!(crate::print_face_ui::is_print_face(&h.app, "One", one_top), "One is not being sent: its print face stays");
+ assert!(matches!(&h.app.status, Some((_, _, true))));
+ assert_eq!(shown(&h), 1);
+ }
}
diff --git a/docs/book/src/guide/files.md b/docs/book/src/guide/files.md
index 0e10f6be78..475f355da8 100644
--- a/docs/book/src/guide/files.md
+++ b/docs/book/src/guide/files.md
@@ -69,8 +69,9 @@ 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
+it. The Send to Slicer window shows the print face of each body being sent in its **Print
+face** row. A face you pick there in the viewport becomes the print face of its body, in place
+of the one it had; take a face out of the row to clear its body's. 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