feat: SnapCAD Studio'yu YakHub deposuna taşı
Build and Push Docker Images / build (push) Canceled after 0s
CI / Typecheck and unit tests (push) Canceled after 0s

- DWG/DXF içe aktarma ve .skf yeniden açma düzeltmeleri

- YakNet Bulut eşitlemede boş/eski kopya koruması ve yerel-only proje bildirimi

- Panelden içe aktarma duyuruları ve erişilebilir Türkçe hata mesajları

- AGPL-3.0 lisansı, README ve YakHub bağlantıları
This commit is contained in:
Enes Yakıştır
2026-10-25 18:20:21 +03:00
parent e9cb8e8681
commit 33b0940012
149 changed files with 46978 additions and 1273 deletions
+13 -1
View File
@@ -1,5 +1,5 @@
import { describe, expect, it } from "vitest";
import { exportMeshesToObj, type ObjExportMesh } from "@/lib/objExport";
import { exportMeshesToObj, generateMtlContent, type ObjExportMesh } from "@/lib/objExport";
function duplicatedTetrahedron(): ObjExportMesh {
const a: [number, number, number] = [0, 0, 0];
@@ -40,4 +40,16 @@ describe("OBJ export", () => {
expect(faces).toHaveLength(4);
expect([...edgeUse.values()].every((count) => count === 2)).toBe(true);
});
it("generates companion .mtl material library and references it in .obj", () => {
const mesh = duplicatedTetrahedron();
const colors = { closed_tetrahedron: "#ff5500" };
const mtl = generateMtlContent([mesh], colors);
const obj = exportMeshesToObj([mesh], { mtlFileName: "model.mtl", colors });
expect(mtl).toContain("newmtl Material_closed_tetrahedron");
expect(mtl).toContain("Kd 1 0.3333 0");
expect(obj).toContain("mtllib model.mtl");
expect(obj).toContain("usemtl Material_closed_tetrahedron");
});
});