feat: STL export (STLOUT / EXPORTSTL command)

Exports all tessellated 3D mesh models in the current drawing to a
binary STL file via a save-file dialog. Normals are taken from the
MeshModel where available, otherwise computed from triangle vertices.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Hakan Seven 2026-04-08 00:46:05 +03:00
commit 25b91bc09e
6 changed files with 145 additions and 1 deletions

View file

@ -3185,6 +3185,11 @@ impl H7CAD {
}
}
// ── STL export ────────────────────────────────────────────────
"STLOUT"|"EXPORTSTL" => {
return Task::done(Message::StlExport);
}
// ── Plot / Page Setup ──────────────────────────────────────────
"PRINT"|"PLOT"|"EXPORT" => {
return Task::done(Message::PlotExport);