Files
snapcad-studio/tests/unit/stlExport.test.ts
T

13 lines
399 B
TypeScript
Raw Normal View History

2026-08-10 16:15:32 +03:00
import { describe, expect, it } from "vitest";
import { exportMeshesToStl } from "@/lib/stlExport";
describe("STL export orientation", () => {
it("writes editor Y-up coordinates as slicer Z-up coordinates", () => {
const stl = exportMeshesToStl([{
vertices: [[0, 0, 0], [10, 0, 0], [0, 20, 5]],
faces: [[0, 1, 2]],
}]);
expect(stl).toContain("vertex 0 -5 20");
});
});