-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1305 lines (1208 loc) · 80.8 KB
/
Copy pathindex.html
File metadata and controls
1305 lines (1208 loc) · 80.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MeshDoc | 3D Print Mesh Diagnostics & Auto-Repair</title>
<!-- Primary Meta Tags -->
<title>MeshDoc – Kostenloses Online STL Repair Tool | Svender3D</title>
<meta name="description" content="Repariere fehlerhafte STL-Dateien kostenlos im Browser – automatische Korrektur von Löchern, Non-Manifold-Kanten & invertierten Normalen für 3D-Druck.">
<meta name="keywords" content="meshdoc, stl repair, stl reparieren, svender3d, non manifold fix, stl analyse, mesh repair online, 3d druck stl reparieren, inverted normals, stl hole closer, orca slicer stl fix, bambu studio non manifold">
<meta name="author" content="Svender3D">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://meshdoc.svender3d.de/">
<!-- Favicon, Theme & Machine-Readable Discovery -->
<meta name="theme-color" content="#1a1a1a">
<link rel="icon" type="image/svg+xml" href="assets/images/favicon.svg">
<link rel="alternate icon" type="image/x-icon" href="favicon.ico">
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">
<link rel="help" type="text/plain" title="LLMs Info" href="/llms.txt">
<!-- Open Graph / Facebook / Discord -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://meshdoc.svender3d.de/">
<meta property="og:site_name" content="Svender3D">
<meta property="og:title" content="MeshDoc – Online STL Repair & Mesh Diagnose">
<meta property="og:description" content="Fehlerhafte 3D-Modelle direkt im Browser analysieren und reparieren. Schluss mit Slicer-Fehlern durch Non-Manifold Kanten und Löcher.">
<meta property="og:image" content="https://meshdoc.svender3d.de/og-image.jpg">
<meta property="og:image:secure_url" content="https://meshdoc.svender3d.de/og-image.jpg">
<meta property="og:image:type" content="image/jpeg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="MeshDoc – Online STL Repair Tool by Svender3D">
<!-- Twitter / X Card -->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://meshdoc.svender3d.de/">
<meta property="twitter:title" content="MeshDoc – Online STL Repair Tool">
<meta property="twitter:description" content="Kostenlose STL-Mesh-Reparatur für den 3D-Druck: Behebt Löcher, überlappende Kanten und invertierte Normalen automatisch.">
<meta property="twitter:image" content="https://meshdoc.svender3d.de/og-image.jpg">
<!-- Schema.org JSON-LD Structured Data (WebApplication + FAQPage) -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "WebApplication",
"@id": "https://meshdoc.svender3d.de/#webapp",
"name": "MeshDoc",
"url": "https://meshdoc.svender3d.de/",
"applicationCategory": "UtilitiesApplication",
"operatingSystem": "All",
"browserRequirements": "Requires JavaScript. Requires HTML5 Canvas / WebGL.",
"creator": {
"@type": "Organization",
"name": "Svender3D",
"url": "https://svender3d.de"
},
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "EUR"
},
"description": "MeshDoc ist ein webbasiertes Tool zur Diagnose und automatischen Reparatur defekter 3D-Druck-STL-Dateien.",
"featureList": [
"Erkennung & Reparatur von Naked Edges (offene Kanten)",
"Schließen von planaren und nicht-planaren Löchern",
"Korrektur von Non-Manifold Kanten",
"Automatische Ausrichtung invertierter Normalen",
"Bereinigung doppelter & degenerierter Faces",
"Erkennung getrennter Shells (Disjoint Shells)",
"Live-Statistiken: Vertex Count & Triangle Count (Vorher/Nachher)"
]
},
{
"@type": "FAQPage",
"@id": "https://meshdoc.svender3d.de/#faq",
"mainEntity": [
{
"@type": "Question",
"name": "Was bedeutet Non-Manifold bei einer STL-Datei?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Ein Non-Manifold-Fehler beschreibt eine geometrisch ungültige oder nicht wasserdichte Mesh-Struktur (z. B. Kanten, die von drei oder mehr Flächen geteilt werden, oder sich selbst schneidende Wände). Slicer können daraus kein eindeutiges Innen- und Außenvolumen berechnen, was zu Druckfehlern führt."
}
},
{
"@type": "Question",
"name": "Warum zeigt mein 3D-Slicer (Bambu Studio, OrcaSlicer, PrusaSlicer, Cura) Mesh-Fehler an?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Viele CAD-Programme und 3D-Modellierer exportieren beim Konvertieren in Polygone offene Kanten, invertierte Flächennormalen oder T-Junctions. Moderne Slicer prüfen die Wasserdichtigkeit streng und warnen vor Instabilitäten und Lücken im Werkzeugpfad."
}
},
{
"@type": "Question",
"name": "Was ist der Unterschied zwischen STL, OBJ und 3MF?",
"acceptedAnswer": {
"@type": "Answer",
"text": "STL ist das traditionelle Standardformat für Dreiecksnetze ohne Farb- oder Einheiten-Informationen. OBJ unterstützt zusätzliche Textur- und Geometriedaten. 3MF ist das moderne, kompakte XML-Container-Format, das Netze verlustfrei komprimiert, Metadaten speichert und von modernen Slicern bevorzugt wird."
}
},
{
"@type": "Question",
"name": "Werden meine hochgeladenen 3D-Modelle auf einem Server gespeichert?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Nein. MeshDoc arbeitet nach dem strikten Zero-Upload-Prinzip: Alle Analysen, Triangulierungen und Reparaturen laufen zu 100% lokal im Arbeitsspeicher deines Webbrowsers ab. Keine 3D-Datei verlässt dein Gerät."
}
},
{
"@type": "Question",
"name": "Welche Dateigröße wird maximal unterstützt?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Da die Verarbeitung direkt im Browser über hardwarebeschleunigte Typ-Arrays (Float32Array) erfolgt, gibt es kein künstliches Server-Limit. Dateien bis ca. 150–200 MB bzw. über 2.000.000 Polygone lassen sich auf modernen Rechnern problemlos verarbeiten."
}
},
{
"@type": "Question",
"name": "Funktioniert MeshDoc auch auf Smartphones und Tablets?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Ja. MeshDoc ist vollständig responsiv aufgebaut und unterstützt mobile WebGL-Renderer auf iOS (Safari) und Android (Chrome/Firefox), sodass du 3D-Dateien auch unterwegs auf dem Handy oder Tablet prüfen und reparieren kannst."
}
},
{
"@type": "Question",
"name": "Welche Dateiformate können repariert und exportiert werden?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Du kannst STL (sowohl binär als auch ASCII), Wavefront OBJ und 3MF importieren. Nach der Reparatur kannst du das saubere Modell als Binary-STL, ASCII-STL, 3MF-Paket oder OBJ-Datei herunterladen."
}
}
]
}
]
}
</script>
<!-- 100% Local Self-Hosted Three.js Import Map -->
<script type="importmap">
{
"imports": {
"three": "./assets/vendor/three/three.module.js",
"three/addons/": "./assets/vendor/three/"
}
}
</script>
<!-- Minified Combined Stylesheet (Includes Self-Hosted WOFF2 Fonts) -->
<link rel="stylesheet" href="assets/css/style.min.css">
<!-- Self-Hosted JSZip for 3MF OPC Package extraction and export -->
<script src="assets/vendor/jszip/jszip.min.js"></script>
</head>
<body>
<!-- Accessibility Skip Link -->
<a href="#main-content" class="skip-link" data-i18n="skipToContent">Zum Inhalt springen / Skip to content</a>
<!-- Fallback Banner for file:/// Protocol -->
<div id="fileProtocolWarning" style="display: none; background: #ef4444; color: #fff; padding: 10px 16px; font-size: 0.85rem; text-align: center; z-index: 99999; position: relative;">
⚠️ <strong>Notice:</strong> When opened directly via <code>file:///</code>, browsers block ES modules. Please start a local web server (e.g. <code>python -m http.server 8080</code> or in VS Code with <em>Live Server</em>).
</div>
<script>
if (window.location.protocol === 'file:') {
document.getElementById('fileProtocolWarning').style.display = 'block';
}
</script>
<div class="app-container">
<!-- Top Header Navigation & Hero -->
<header class="app-header" role="banner">
<div class="brand-wrapper" style="display: flex; align-items: center; gap: 14px; flex-wrap: wrap;">
<nav aria-label="Hauptnavigation">
<!-- Branding / Logo & Link zurück zu svender3d.de -->
<a href="https://svender3d.de" target="_blank" rel="noopener" class="brand-link" title="Zurück zu Svender3D">
<div class="brand-logo" style="background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15)); border: 1.5px solid var(--accent-cyan); border-radius: 8px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);">
<svg viewBox="0 0 32 32" width="18" height="18" fill="none" aria-hidden="true">
<polygon points="16,2 29,9.5 29,22.5 16,30 3,22.5 3,9.5" stroke="url(#meshdoc-grad)" stroke-width="2" stroke-linejoin="round" fill="rgba(56, 189, 248, 0.08)" />
<line x1="16" y1="2" x2="16" y2="10" stroke="#38bdf8" stroke-width="1.5" stroke-linecap="round" />
<line x1="29" y1="22.5" x2="22" y2="18.5" stroke="#38bdf8" stroke-width="1.5" stroke-linecap="round" />
<line x1="3" y1="22.5" x2="10" y2="18.5" stroke="#38bdf8" stroke-width="1.5" stroke-linecap="round" />
<path d="M14 10h4v3h3v4h-3v3h-4v-3h-3v-4h3v-3z" fill="url(#cross-grad)" stroke="#38bdf8" stroke-width="1" stroke-linejoin="round" />
<circle cx="16" cy="2" r="1.5" fill="#38bdf8" />
<circle cx="29" cy="9.5" r="1.5" fill="#6366f1" />
<circle cx="29" cy="22.5" r="1.5" fill="#38bdf8" />
<circle cx="16" cy="30" r="1.5" fill="#6366f1" />
<circle cx="3" cy="22.5" r="1.5" fill="#38bdf8" />
<circle cx="3" cy="9.5" r="1.5" fill="#6366f1" />
<defs>
<linearGradient id="meshdoc-grad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#38bdf8" />
<stop offset="100%" stop-color="#6366f1" />
</linearGradient>
<linearGradient id="cross-grad" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" stop-color="#38bdf8" />
<stop offset="100%" stop-color="#22c55e" />
</linearGradient>
</defs>
</svg>
</div>
<span>Svender3D</span>
</a>
</nav>
<div class="hero-content">
<h1 data-i18n="appTitle">MeshDoc – STL Repair & Mesh Diagnose Tool</h1>
<p class="subtitle" data-i18n="appSubtitle">Fehlerhafte STL-Dateien analysieren, reparieren und slicerfertig exportieren.</p>
<p class="hero-description" data-i18n="appDescription">MeshDoc ist ein spezialisiertes Browser-Werkzeug für 3D-Druck-Anwender zur schnellen Reparatur defekter STL-, OBJ- und 3MF-Meshes. Die Anwendung schließt offene Netzlöcher, korrigiert Non-Manifold-Kanten und richtet invertierte Normalen automatisch für fehlerfreies Slicing aus. Alle Rechenschritte erfolgen zu 100% lokal auf deinem Gerät ohne Cloud-Upload.</p>
</div>
</div>
<div style="display: flex; align-items: center; gap: 8px; flex-wrap: wrap;">
<!-- What's New Button -->
<button class="btn btn-secondary header-btn" onclick="window.openModal('modalWhatsNew', event)" data-open-modal="modalWhatsNew" title="What's New / Release Notes" aria-label="What's New and Release Notes">
<span class="pulse-dot" aria-hidden="true"></span>
<span data-i18n="navWhatsNew">What's New</span>
<span class="version-tag">v1.5</span>
</button>
<!-- GitHub Repository Link -->
<a href="https://github.com/Exulizer/MeshDoc" target="_blank" rel="noopener" class="btn btn-secondary header-btn" title="GitHub Repository" aria-label="MeshDoc GitHub Repository">
<svg viewBox="0 0 24 24" width="14" height="14" fill="currentColor" aria-hidden="true">
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.53 1.032 1.53 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"/>
</svg>
<span data-i18n="linkGitHub">GitHub</span>
</a>
<!-- Language Switcher (EN | DE) -->
<div class="lang-switch-wrapper" role="group" aria-label="Language Selector" style="display: flex; background: var(--bg-panel); border: 1px solid var(--border-default); border-radius: var(--radius-sm); padding: 2px;">
<button class="lang-btn active" data-lang="en" aria-label="Switch language to English">EN</button>
<button class="lang-btn" data-lang="de" aria-label="Sprache auf Deutsch wechseln">DE</button>
</div>
<button class="btn btn-secondary header-btn" data-open-modal="modalContact" data-i18n="contactBtn" aria-label="Contact support">
✉️ Contact
</button>
<div class="privacy-badge">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
</svg>
<span data-i18n="privacyBadge">100% Local Processing (Zero-Upload)</span>
</div>
</div>
</header>
<!-- Main Container with Interactive App & On-Page SEO Sections -->
<main id="main-content" role="main" style="display: flex; flex-direction: column; gap: var(--space-md);">
<!-- Bento Grid Interactive Dashboard -->
<div class="dashboard-grid">
<!-- Sektion 1: Upload, Status & Diagnostics -->
<section id="upload-section" class="bento-card left-sidebar" aria-labelledby="upload-heading">
<div class="bento-header">
<h2 id="upload-heading" class="bento-title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"></path>
<polyline points="14 2 14 8 20 8"></polyline>
</svg>
<span data-i18n="uploadHeading">STL-Datei hochladen & prüfen</span>
</h2>
</div>
<div class="bento-content">
<!-- Dropzone -->
<div class="dropzone-container" id="dropzone" role="button" tabindex="0" aria-label="3D-Datei ablegen oder auswählen">
<div class="dropzone-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>
<polyline points="17 8 12 3 7 8"></polyline>
<line x1="12" y1="3" x2="12" y2="15"></line>
</svg>
</div>
<div class="dropzone-text">
<strong data-i18n="dropzoneTitle" style="font-size: 0.9rem; color: var(--text-primary);">Datei ablegen oder hier klicken</strong>
<p data-i18n="dropzoneSubtitle">STL, OBJ oder 3MF per Drag & Drop</p>
</div>
<div class="dropzone-tags">
<span class="tag-badge">.STL</span>
<span class="tag-badge">.OBJ</span>
<span class="tag-badge">.3MF</span>
</div>
</div>
<input type="file" id="fileInput" accept=".stl,.obj,.3mf" style="display: none;" aria-label="3D-Modelldatei hochladen (STL, OBJ, 3MF)">
<!-- Processing Pipeline Status Indicator -->
<div class="processing-pipeline" aria-label="Verarbeitungs-Status Pipeline">
<div class="pipeline-step active" id="pipeUpload"><span data-i18n="pipeUpload">1. Upload</span></div>
<span class="pipeline-arrow">→</span>
<div class="pipeline-step" id="pipeAnalyze"><span data-i18n="pipeAnalyze">2. Analyse</span></div>
<span class="pipeline-arrow">→</span>
<div class="pipeline-step" id="pipeRepair"><span data-i18n="pipeRepair">3. Reparatur</span></div>
<span class="pipeline-arrow">→</span>
<div class="pipeline-step" id="pipeExport"><span data-i18n="pipeExport">4. Slicer-Ready</span></div>
</div>
<!-- Progress Bar -->
<div class="progress-bar-container" id="progressBar">
<div class="progress-bar-fill" style="width: 100%;"></div>
</div>
<!-- File Info Badge -->
<div class="file-info-badge" id="fileBadge" style="margin-top: 12px; display: none;">
<span class="file-info-name" id="fileNameText">model.stl</span>
<span class="file-info-size" id="fileSizeText">0 KB</span>
</div>
<!-- Sample Models Selection -->
<div style="margin: 12px 0;">
<select class="select-input" id="sampleModelSelect" aria-label="Beispielmodell auswählen">
<option value="" disabled selected data-i18n="sampleSelectDefault">Beispiel-Modell testen...</option>
<option value="brokenCube" data-i18n="sampleBrokenCube">⚠️ Würfel mit Loch (Non-Manifold Test)</option>
<option value="cylinder" data-i18n="sampleCylinder">⚠️ Offener Zylinder (Boundary Test)</option>
<option value="torus" data-i18n="sampleTorus">✅ Perfekter Torus (Watertight)</option>
</select>
</div>
<!-- 3D Printability Verdict Card -->
<div class="printability-card not-ready" id="printabilityCard">
<div class="printability-header">
<div class="printability-badge-wrapper">
<span class="printability-badge bad" id="printabilityBadge">
<svg viewBox="0 0 20 20" fill="currentColor" width="15" height="15" id="printabilityIcon">
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" clip-rule="evenodd"/>
</svg>
<span id="printabilityBadgeText" data-i18n="printNotReadyTitle">❌ Not 3D-Printable (Slicing Defect Risk)</span>
</span>
</div>
<p class="printability-desc" id="printabilityDescText" data-i18n="printNotReadyDesc">
The model contains topological defects. Slicers will produce hollow infill defects or slicing crashes.
</p>
</div>
<div class="printability-reasons-list" id="printabilityReasonsList">
<!-- Dynamically populated with reasons -->
</div>
</div>
<!-- Timeout / CAD Recommendation Alert Box (Hidden by default) -->
<div class="alert-box alert-warning" id="timeoutNoticeBox" style="display: none; margin: 12px 0; border: 1.5px solid #f59e0b; background: rgba(245, 158, 11, 0.08); border-radius: var(--radius-md); padding: 12px;">
<div style="display: flex; align-items: flex-start; gap: 10px;">
<span style="font-size: 1.3rem; line-height: 1;">⏱️</span>
<div style="flex: 1;">
<strong id="timeoutNoticeTitle" style="color: #f59e0b; font-size: 0.85rem;" data-i18n="timeoutAlertTitle">Reparatur-Zeitlimit erreicht</strong>
<p id="timeoutNoticeDesc" style="font-size: 0.76rem; color: var(--text-secondary); margin: 4px 0 6px 0;" data-i18n="timeoutAlertDesc">
Die automatische Reparatur wurde gestoppt, um ein Einfrieren des Browsers zu verhindern.
</p>
<div style="font-size: 0.73rem; color: var(--text-muted); background: rgba(0,0,0,0.3); padding: 6px 8px; border-radius: 6px; border-left: 3px solid #f59e0b;">
<div data-i18n="timeoutAlertCause"><strong>Ursache:</strong> Modell weicht zu stark von einem geschlossenen Manifold-Volumenkörper ab.</div>
<div style="margin-top: 4px;" data-i18n="timeoutAlertSolution"><strong>Empfehlung:</strong> Bitte im CAD-Programm (Fusion 360, Blender, SolidWorks) nachbessern.</div>
</div>
</div>
</div>
</div>
<!-- Primary Metrics Grid -->
<div class="metrics-grid">
<div class="metric-box">
<span class="metric-label" data-i18n="metricVertices">Vertices</span>
<span class="metric-value" id="metricVertices">0</span>
</div>
<div class="metric-box">
<span class="metric-label" data-i18n="metricTriangles">Dreiecke (Facets)</span>
<span class="metric-value" id="metricTriangles">0</span>
</div>
<div class="metric-box">
<span class="metric-label" data-i18n="metricVolume">Volumen (cm³)</span>
<span class="metric-value" id="metricVolume">0.00 cm³</span>
</div>
<div class="metric-box">
<span class="metric-label" data-i18n="metricArea">Oberfläche (cm²)</span>
<span class="metric-value" id="metricArea">0.00 cm²</span>
</div>
</div>
<!-- Bounding Box Dimensions -->
<div class="metric-box" style="margin-bottom: 12px;">
<span class="metric-label" data-i18n="dimensionsLabel">Abmessungen (X × Y × Z in mm)</span>
<div style="display: flex; gap: 12px; margin-top: 4px; font-family: var(--font-mono); font-weight: 700;">
<span>X: <span id="metricDimX" style="color: var(--accent-cyan);">0</span> mm</span>
<span>Y: <span id="metricDimY" style="color: var(--accent-cyan);">0</span> mm</span>
<span>Z: <span id="metricDimZ" style="color: var(--accent-cyan);">0</span> mm</span>
</div>
</div>
<!-- Detailed Issue Inspection List -->
<div class="issues-container">
<div class="issue-item success" id="issueOpenEdges">
<span class="issue-name" data-i18n="issueOpenEdges">Holes / Open Edges</span>
<span class="issue-count">0</span>
</div>
<div class="issue-item success" id="issueNonManifold">
<span class="issue-name" data-i18n="issueNonManifold">Non-Manifold Edges</span>
<span class="issue-count">0</span>
</div>
<div class="issue-item success" id="issueInverted">
<span class="issue-name" data-i18n="issueInverted">Inconsistent Face Normals</span>
<span class="issue-count">0</span>
</div>
<div class="issue-item success" id="issueDegenerates">
<span class="issue-name" data-i18n="issueDegenerates">Degenerate Triangles</span>
<span class="issue-count">0</span>
</div>
</div>
</div>
</section>
<!-- CENTER: 3D Interactive Viewport -->
<section class="bento-card viewer-card" aria-label="3D Modell Ansicht">
<div class="viewer-canvas-wrapper" id="viewportWrapper">
<!-- Top Floating Controls -->
<div class="viewer-overlay-top">
<!-- Mode Switcher -->
<div class="viewer-mode-selector" role="group" aria-label="3D View Mode">
<button class="mode-btn active" data-mode="original" aria-label="Originalmodell anzeigen">
<span data-i18n="modeOriginal">Original</span>
</button>
<button class="mode-btn" data-mode="repaired" aria-label="Repariertes Modell anzeigen">
<span data-i18n="modeRepaired">Repariert</span>
</button>
<button class="mode-btn" data-mode="split" aria-label="Vergleichsansicht Split-Screen anzeigen">
<span data-i18n="modeSplit">Vergleich (Split)</span>
</button>
</div>
<!-- Viewport Tools -->
<div class="viewer-tool-toggles" role="toolbar" aria-label="3D Viewport Controls">
<button class="tool-toggle-btn active" id="toggleErrors" data-i18n-title="toggleErrorsTooltip" title="Fehler-Highlighting (rote Kanten) ein/aus" aria-label="Fehler-Hervorhebung (rote Kanten) ein- oder ausschalten">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"></path>
<line x1="12" y1="9" x2="12" y2="13"></line>
<line x1="12" y1="17" x2="12.01" y2="17"></line>
</svg>
</button>
<button class="tool-toggle-btn" id="toggleWireframe" data-i18n-title="toggleWireframeTooltip" title="Drahtgittermodell (Wireframe) ein/aus" aria-label="Drahtgittermodell (Wireframe) ein- oder ausschalten">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<polygon points="12 2 2 7 12 12 22 7 12 2"></polygon>
<polyline points="2 17 12 22 22 17"></polyline>
<polyline points="2 12 12 17 22 12"></polyline>
</svg>
</button>
<button class="tool-toggle-btn active" id="toggleBed" data-i18n-title="toggleBedTooltip" title="Druckbett-Gitter ein/aus" aria-label="Druckbett-Gitter ein- oder ausschalten">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
<line x1="3" y1="9" x2="21" y2="9"></line>
<line x1="3" y1="15" x2="21" y2="15"></line>
<line x1="9" y1="3" x2="9" y2="21"></line>
<line x1="15" y1="3" x2="15" y2="21"></line>
</svg>
</button>
<button class="tool-toggle-btn" id="btnResetCamera" data-i18n-title="resetCameraTooltip" title="Kamera zurücksetzen (Iso)" aria-label="Kamera auf Standardansicht zurücksetzen">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<polyline points="1 4 1 10 7 10"></polyline>
<polyline points="23 20 23 14 17 14"></polyline>
<path d="M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"></path>
</svg>
</button>
</div>
</div>
<!-- Bottom Watermark Indicator -->
<div class="viewer-watermark">
<span data-i18n="watermarkHint">Druckbett: 220 × 220 mm | Orbit: L-Klick | Pan: R-Klick | Zoom: Scroll</span>
</div>
<!-- Repair Hologram Scanner HUD Overlay & Laser Animation -->
<div class="repair-scan-overlay" id="repairScanOverlay">
<div class="scan-laser-line"></div>
<div class="scan-hud-card">
<div class="scan-hud-header">
<div class="scan-hud-spinner"></div>
<div>
<h4 class="scan-hud-title" data-i18n="autoRepairSectionTitle">Auto-Repair Engine</h4>
<p class="scan-hud-step" id="scanStepText">Analyzing Mesh Topology...</p>
</div>
</div>
<div class="scan-progress-track">
<div class="scan-progress-bar" id="scanProgressBar"></div>
</div>
<div class="scan-hud-metrics">
<span id="scanMetricsLabel">Ear-Clipping & Normals</span>
<span id="scanPercentText">0%</span>
</div>
<div style="display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.08);">
<span id="scanTimeoutNotice" style="font-size: 0.72rem; color: var(--text-muted);">⏱️ Max: <span id="scanWatchdogSec">60</span>s Watchdog</span>
<button type="button" class="btn btn-secondary btn-mini" id="btnCancelScan" style="border-color: #ef4444; color: #ef4444; padding: 4px 10px; font-size: 0.75rem;" data-i18n="btnCancelRepair">
✕ Abbrechen
</button>
</div>
</div>
</div>
</div>
</section>
<!-- RIGHT SIDEBAR: Repair Actions, Material & Exporter -->
<section class="bento-card right-sidebar" aria-label="Reparatur- und Optimierungswerkzeuge">
<div class="bento-header">
<h2 class="bento-title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"></path>
</svg>
<span data-i18n="repairEngineTitle">Reparatur & Export</span>
</h2>
</div>
<div class="bento-content">
<!-- Auto-Repair Main Action (Sticky on scroll) -->
<div class="tool-section auto-repair-tool-section" id="autoRepairToolSection">
<div class="tool-section-header">
<span data-i18n="autoRepairSectionTitle">Auto-Reparatur Engine</span>
<span class="status-pill good" style="font-size: 0.65rem;">Wasm / Manifold</span>
</div>
<p style="font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px;" data-i18n="autoRepairSectionDesc">
Repariert Topologiefehler mit planarer Ohr-Triangulation und scharfer Kantenschattierung.
</p>
<div style="display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 0.78rem; color: var(--text-secondary);">
<label style="display: flex; align-items: center; gap: 8px; cursor: pointer;">
<input type="checkbox" id="optCloseHoles" checked style="accent-color: var(--accent-cyan);" aria-label="Löcher schließen (Planar Ear-Clipping)">
<span data-i18n="optCloseHoles">Löcher schließen (Planar Ear-Clipping)</span>
</label>
<label style="display: flex; align-items: center; gap: 8px; cursor: pointer;">
<input type="checkbox" id="optFixNormals" checked style="accent-color: var(--accent-cyan);" aria-label="Normalen nach außen ausrichten">
<span data-i18n="optFixNormals">Normalen nach außen ausrichten</span>
</label>
<label style="display: flex; align-items: center; gap: 8px; cursor: pointer;">
<input type="checkbox" id="optWeldVerts" checked style="accent-color: var(--accent-cyan);" aria-label="Doppelte Vertices verschweißen">
<span data-i18n="optWeldVerts">Doppelte Vertices verschweißen</span>
</label>
</div>
<div id="repairActionsWrapper" style="display: flex; gap: 8px;">
<button class="btn btn-repair" id="btnAutoRepair" style="flex: 1;" aria-label="Automatisierte Mesh-Reparatur starten">
<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83"></path>
</svg>
<span data-i18n="btnAutoRepair">Auto-Reparatur starten</span>
</button>
<button type="button" class="btn btn-secondary" id="btnCancelAutoRepair" style="display: none; border-color: #ef4444; color: #ef4444;" title="Reparatur abbrechen" data-i18n="btnCancelRepair" aria-label="Reparatur abbrechen">
✕ Abbrechen
</button>
</div>
</div>
<!-- Bed Alignment & Positioning -->
<div class="tool-section">
<div class="tool-section-header">
<span data-i18n="positioningTitle">Druckbett-Ausrichtung & Position</span>
</div>
<div class="btn-group-2" style="margin-bottom: 8px;">
<button class="btn btn-secondary" id="btnDropToBed" data-i18n-title="btnDropToBedTooltip" title="Setzt das Modell mit dem tiefsten Punkt exakt auf die Druckbett-Oberfläche" aria-label="Modell auf Druckbett absetzen">
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M12 3v13M5 10l7 7 7-7M4 21h16"></path>
</svg>
<span data-i18n="btnDropToBed">Auf Bett absetzen</span>
</button>
<button class="btn btn-secondary" id="btnCenterBed" data-i18n-title="btnCenterBedTooltip" title="Zentriert das Modell exakt in der Mitte des Druckbetts" aria-label="Modell mittig auf dem Druckbett zentrieren">
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<circle cx="12" cy="12" r="9"></circle>
<line x1="12" y1="3" x2="12" y2="7"></line>
<line x1="12" y1="17" x2="12" y2="21"></line>
<line x1="3" y1="12" x2="7" y2="12"></line>
<line x1="17" y1="12" x2="21" y2="12"></line>
</svg>
<span data-i18n="btnCenterBed">Mittig zentrieren</span>
</button>
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 12px;">
<button class="btn btn-secondary" id="btnRotateX" style="padding: 6px 4px; font-size: 0.72rem;" data-i18n="btnRotateX" title="90° X" aria-label="Modell um 90 Grad um die X-Achse drehen">
↻ 90° X
</button>
<button class="btn btn-secondary" id="btnRotateY" style="padding: 6px 4px; font-size: 0.72rem;" data-i18n="btnRotateY" title="90° Y" aria-label="Modell um 90 Grad um die Y-Achse drehen">
↻ 90° Y
</button>
<button class="btn btn-secondary" id="btnRotateZ" style="padding: 6px 4px; font-size: 0.72rem;" data-i18n="btnRotateZ" title="90° Z" aria-label="Modell um 90 Grad um die Z-Achse drehen">
↻ 90° Z
</button>
</div>
<!-- Polygon Decimation Slider -->
<div class="tool-section-header" style="margin-top: 8px;">
<span data-i18n="decimationTitle">Polygon-Dezimierung</span>
</div>
<div class="range-slider-group">
<div class="slider-header">
<label for="decimateRatio" data-i18n="targetDensityLabel">Ziel-Dichte:</label>
<span class="slider-val" id="decimateValue">50%</span>
</div>
<input type="range" class="custom-range" id="decimateRatio" min="0.1" max="0.95" step="0.05" value="0.5" aria-label="Polygon-Reduktionsgrad">
<div style="display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); margin-top: 3px;">
<span>Low-Poly (10%)</span>
<span>Original (95%)</span>
</div>
</div>
<button class="btn btn-secondary" id="btnDecimate" aria-label="Polygon-Reduktion anwenden">
<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<circle cx="12" cy="12" r="10"></circle>
<line x1="8" y1="12" x2="16" y2="12"></line>
</svg>
<span data-i18n="btnDecimate">Polygone reduzieren</span>
</button>
</div>
<!-- Surface Smoothing (Taubin Volume-Preserving) -->
<div class="tool-section">
<div class="tool-section-header">
<span data-i18n="smoothingTitle">Oberflächen-Glättung</span>
</div>
<div class="range-slider-group">
<div class="slider-header">
<label for="smoothIntensity" data-i18n="smoothIntensityLabel">Glättungs-Intensität:</label>
<span class="slider-val" id="smoothIntensityValue">Mittel (3 Passes)</span>
</div>
<input type="range" class="custom-range" id="smoothIntensity" min="1" max="4" step="1" value="2" aria-label="Glättungs-Intensität">
<div style="display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-muted); margin-top: 3px;">
<span>Leicht (1)</span>
<span>Mittel (3)</span>
<span>Stark (6)</span>
<span>Ultra (10)</span>
</div>
</div>
<div style="margin-bottom: 10px; font-size: 0.78rem; color: var(--text-secondary);">
<label style="display: flex; align-items: center; gap: 8px; cursor: pointer;">
<input type="checkbox" id="optProtectSharpEdges" checked style="accent-color: var(--accent-cyan);" aria-label="Scharfe CAD-Kanten schützen">
<span data-i18n="smoothProtectEdges">Scharfe CAD-Kanten schützen (> 30°)</span>
</label>
</div>
<!-- Structure Feasibility Warning (Hidden by default) -->
<div id="smoothFeasibilityAlert" style="display: none; margin-bottom: 10px; padding: 8px 10px; border-radius: 6px; background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; font-size: 0.74rem; color: #fca5a5;">
<strong data-i18n="smoothAlertTitle" style="color: #ef4444; display: block; margin-bottom: 2px;">⚠️ Struktur nicht glättbar</strong>
<span id="smoothFeasibilityText" data-i18n="smoothAlertDesc">Das Modell enthält zu viele offene Kanten oder Non-Manifolds.</span>
<button type="button" class="btn btn-repair btn-mini" id="btnQuickAutoRepairFromSmooth" style="margin-top: 6px; width: 100%; font-size: 0.72rem; padding: 4px;" aria-label="Automatische Reparatur vor der Glättung starten">
⚡ Jetzt Auto-Reparieren
</button>
</div>
<div style="display: flex; gap: 8px;">
<button class="btn btn-secondary" id="btnSmoothMesh" style="flex: 1; border-color: var(--accent-cyan); color: var(--accent-cyan);" aria-label="Oberflächen-Glättung anwenden">
<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"></path>
</svg>
<span data-i18n="btnSmoothMesh">Oberfläche glätten</span>
</button>
<button class="btn btn-secondary btn-mini" id="btnResetSmooth" style="padding: 0 10px;" title="Glättung auf Original zurücksetzen" aria-label="Glättung zurücksetzen">
<svg viewBox="0 0 24 24" width="13" height="13" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"></path>
<path d="M3 3v5h5"></path>
</svg>
<span data-i18n="btnResetSmooth">Zurücksetzen</span>
</button>
</div>
</div>
<!-- Material & Weight Calculation -->
<div class="tool-section">
<div class="tool-section-header">
<span data-i18n="materialTitle">Material- & Gewichtsberechnung</span>
</div>
<select class="select-input" id="materialSelect" aria-label="Filament Material auswählen">
<option value="PLA" selected>PLA (1,24 g/cm³)</option>
<option value="PETG">PETG (1,27 g/cm³)</option>
<option value="ABS">ABS (1,04 g/cm³)</option>
<option value="TPU">TPU (1,21 g/cm³)</option>
</select>
<div class="range-slider-group">
<div class="slider-header">
<label for="infillSlider" data-i18n="infillLabel">Infill (Fülldichte):</label>
<span class="slider-val" id="infillValue">20%</span>
</div>
<input type="range" class="custom-range" id="infillSlider" min="0" max="100" step="5" value="20" aria-label="Infill Fülldichte">
</div>
<div class="metrics-grid" style="margin-bottom: 0;">
<div class="metric-box">
<span class="metric-label" data-i18n="estWeightLabel">Gewicht ca.</span>
<span class="metric-value" id="metricWeight" style="color: var(--accent-cyan);">0 g</span>
</div>
<div class="metric-box">
<span class="metric-label" data-i18n="filamentLengthLabel">Filament (1.75mm)</span>
<span class="metric-value" id="metricFilament">0 m</span>
</div>
</div>
</div>
<!-- Export Actions -->
<div class="tool-section" id="exportButtonGroup">
<div class="tool-section-header">
<span data-i18n="exportTitle">Modell Herunterladen</span>
</div>
<div class="btn-group-2" style="margin-bottom: 8px;">
<button class="btn btn-primary" id="btnExportBinarySTL" aria-label="3D-Modell als binäre STL-Datei exportieren">
<span data-i18n="btnExportBinarySTL">STL (Binary)</span>
</button>
<button class="btn btn-secondary" id="btnExport3MF" aria-label="3D-Modell als 3MF-Paket exportieren">
<span data-i18n="btnExport3MF">3MF Paket</span>
</button>
</div>
<div class="btn-group-2">
<button class="btn btn-secondary" id="btnExportAsciiSTL" aria-label="3D-Modell als ASCII-STL-Datei exportieren">
<span data-i18n="btnExportAsciiSTL">STL (ASCII)</span>
</button>
<button class="btn btn-secondary" id="btnExportOBJ" aria-label="3D-Modell als Wavefront OBJ-Datei exportieren">
<span data-i18n="btnExportOBJ">Wavefront OBJ</span>
</button>
</div>
</div>
</div>
</section>
</div> <!-- End Bento Grid .dashboard-grid -->
<!-- Sektion 2: Vorher / Nachher Metriken & Vergleich -->
<section id="metrics-section" class="tool-section-card" aria-labelledby="metrics-heading">
<div class="section-header" style="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;">
<h2 id="metrics-heading" style="margin: 0;">
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M18 20V10M12 20V4M6 20v-6"></path>
</svg>
<span data-i18n="metricsHeading">Mesh-Statistik & Vorher/Nachher-Vergleich</span>
</h2>
<span id="repairStatusPill" class="status-pill warning" style="font-size: 0.72rem;">
<span data-i18n="statusPreRepair">⚡ Original-Modell geladen (Reparatur bereit)</span>
</span>
</div>
<div class="metrics-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-md); margin-bottom: 0;">
<!-- Vertices Card -->
<div class="metric-card">
<div style="display: flex; justify-content: space-between; align-items: center;">
<h3 data-i18n="statVerticesTitle">Vertices (Eckpunkte)</h3>
<span id="v-delta-badge" class="tag-badge" style="display: none; font-size: 0.7rem; font-weight: 700;">+0</span>
</div>
<p class="metric-val" id="vertex-stats">
<span id="v-stat-display"><span data-i18n="labelCurrentMesh">Aktuell:</span> <span id="v-current-val" style="font-weight: 700; color: var(--accent-cyan);">0</span></span>
</p>
<span id="v-detail-note" style="font-size: 0.75rem; color: var(--text-muted);" data-i18n="vNoteAction">⚡ Auto-Repair verschweißt redundante Vertices & glättet T-Junctions.</span>
</div>
<!-- Triangles Card -->
<div class="metric-card">
<div style="display: flex; justify-content: space-between; align-items: center;">
<h3 data-i18n="statTrianglesTitle">Triangles (Dreiecke)</h3>
<span id="t-delta-badge" class="tag-badge" style="display: none; font-size: 0.7rem; font-weight: 700;">+0</span>
</div>
<p class="metric-val" id="tri-stats">
<span id="t-stat-display"><span data-i18n="labelCurrentMesh">Aktuell:</span> <span id="t-current-val" style="font-weight: 700; color: var(--accent-cyan);">0</span></span>
</p>
<span id="t-detail-note" style="font-size: 0.75rem; color: var(--text-muted);" data-i18n="tNoteAction">⚡ Auto-Repair schließt offene Löcher wasserdicht & filtert Null-Flächen.</span>
</div>
<!-- Topology Integrity Card -->
<div class="metric-card">
<div style="display: flex; justify-content: space-between; align-items: center;">
<h3 data-i18n="statErrorsTitle">Topologie & Wasserdichtigkeit</h3>
<span id="errors-badge" class="tag-badge" style="background: var(--status-warning-bg); color: var(--status-warning); border-color: var(--status-warning-border); font-size: 0.7rem;">Analyse</span>
</div>
<p class="metric-val" id="error-stats">
<span id="err-stat-display"><span data-i18n="labelStatusMesh">Status:</span> <span id="err-current-val" style="font-weight: 700; color: var(--status-warning);">0 Defekte</span></span>
</p>
<span id="errors-detail-note" style="font-size: 0.75rem; color: var(--text-muted);" data-i18n="errorsNoteAction">⚡ Auto-Repair stellt 100% Manifold-Wasserdichtigkeit für alle Slicer her.</span>
</div>
</div>
</section>
<!-- Sektion 3: Diagnose- & Reparaturkatalog (8 Kernprüfungen) -->
<section id="diagnostics-section" class="tool-section-card" aria-labelledby="diagnostics-heading">
<div class="section-header">
<h2 id="diagnostics-heading">
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<path d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
<span data-i18n="diagnosticsHeading">Automatisch behobene Mesh-Fehler</span>
</h2>
</div>
<div class="diagnostics-grid">
<article class="diag-item">
<h3 data-i18n="diagNakedEdgesTitle">Naked Edges (Offene Außenkanten)</h3>
<p data-i18n="diagNakedEdgesDesc">Erkennt und schließt offene Netzkanten. Beim 3D-Druck führen offene Kanten dazu, dass der Slicer das Modell nicht als geschlossenen Volumenkörper erkennt und dadurch Schichten auslässt oder Wände fehlerhaft druckt.</p>
</article>
<article class="diag-item">
<h3 data-i18n="diagHolesTitle">Planar & Non-Planar Holes (Löcher im Mesh)</h3>
<p data-i18n="diagHolesDesc">Füllt ebene und komplexe dreidimensionale Lücken in der Netzhülle wasserdicht auf. Durch Löcher dringt virtueller Leerraum in das Modell ein, wodurch Slicer kein Infill generieren und der Druck instabil wird oder fehlschlägt.</p>
</article>
<article class="diag-item">
<h3 data-i18n="diagNonManifoldTitle">Non-Manifold Edges (Ungültige Kantenverbindungen)</h3>
<p data-i18n="diagNonManifoldDesc">Bereinigt Kanten, an denen mehr als zwei Dreiecksflächen anliegen. Non-Manifold-Strukturen verwirren den Schicht-Algorithmus des Slicers, was zu doppelten Druckbahnen, Filament-Knubbeln oder Schichtabrissen führt.</p>
</article>
<article class="diag-item">
<h3 data-i18n="diagInvertedTitle">Inverted Normals (Verdrehte Flächenausrichtung)</h3>
<p data-i18n="diagInvertedDesc">Richtet nach innen zeigende Flächennormalen automatisch nach außen aus. Invertierte Normalen lassen den Slicer annehmen, die Außenwand liege im Modellinneren, wodurch Außenwände gar nicht oder spiegelverkehrt gedruckt werden.</p>
</article>
<article class="diag-item">
<h3 data-i18n="diagDuplicateTitle">Duplicate Faces (Doppelte Dreiecke)</h3>
<p data-i18n="diagDuplicateDesc">Entfernt identische, übereinanderliegende Dreiecke aus fehlerhaften CAD-Exporten. Doppelte Flächen führen im Slicer zu lokaler Überextrusion und unschönen Artefakten auf den Oberflächen des Drucks.</p>
</article>
<article class="diag-item">
<h3 data-i18n="diagDegenerateTitle">Degenerate Faces (Null-Flächen)</h3>
<p data-i18n="diagDegenerateDesc">Löscht entartete Dreiecke ohne Flächeninhalt oder mit kollinearen Punkten. Null-Flächen können im Slicer mathematische Fehler auslösen und die Schichtberechnung verlangsamen oder zum Absturz bringen.</p>
</article>
<article class="diag-item">
<h3 data-i18n="diagDisjointTitle">Disjoint Shells (Isolierte Teilnetze)</h3>
<p data-i18n="diagDisjointDesc">Identifiziert getrennte Körperfragmente und verbindet oder bereinigt diese. Unverbundene, in der Luft schwebende Teilnetze führen beim 3D-Druck zu Filament-Fäden (Spaghetti-Effekt) und Fehldrucken.</p>
</article>
</div>
</section>
<!-- Sektion 4: FAQ -->
<section id="faq-section" class="tool-section-card" aria-labelledby="faq-heading">
<div class="section-header">
<h2 id="faq-heading">
<svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
<circle cx="12" cy="12" r="10"></circle>
<path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path>
<line x1="12" y1="17" x2="12.01" y2="17"></line>
</svg>
<span data-i18n="faqHeading">Häufig gestellte Fragen zu MeshDoc</span>
</h2>
</div>
<div class="faq-accordion">
<details>
<summary><strong data-i18n="faqQ1">Was bedeutet Non-Manifold bei einer STL-Datei?</strong></summary>
<p data-i18n="faqA1">Ein Non-Manifold-Fehler beschreibt eine geometrisch ungültige oder nicht wasserdichte Mesh-Struktur (z. B. Kanten, die von drei oder mehr Flächen geteilt werden, oder sich selbst schneidende Wände). Slicer können daraus kein eindeutiges Innen- und Außenvolumen berechnen, was zu Druckfehlern führt.</p>
</details>
<details>
<summary><strong data-i18n="faqQ2">Warum zeigt mein 3D-Slicer (Bambu Studio, OrcaSlicer, PrusaSlicer, Cura) Mesh-Fehler an?</strong></summary>
<p data-i18n="faqA2">Viele CAD-Programme und 3D-Modellierer exportieren beim Konvertieren in Polygone offene Kanten, invertierte Flächennormalen oder T-Junctions. Moderne Slicer prüfen die Wasserdichtigkeit streng und warnen vor Instabilitäten und Lücken im Werkzeugpfad.</p>
</details>
<details>
<summary><strong data-i18n="faqQ3">Was ist der Unterschied zwischen STL, OBJ und 3MF?</strong></summary>
<p data-i18n="faqA3">STL ist das traditionelle Standardformat für Dreiecksnetze ohne Farb- oder Einheiten-Informationen. OBJ unterstützt zusätzliche Textur- und Geometriedaten. 3MF ist das moderne, kompakte XML-Container-Format, das Netze verlustfrei komprimiert, Metadaten speichert und von modernen Slicern bevorzugt wird.</p>
</details>
<details>
<summary><strong data-i18n="faqQ4">Werden meine hochgeladenen 3D-Modelle auf einem Server gespeichert?</strong></summary>
<p data-i18n="faqA4">Nein. MeshDoc arbeitet nach dem strikten Zero-Upload-Prinzip: Alle Analysen, Triangulierungen und Reparaturen laufen zu 100% lokal im Arbeitsspeicher deines Webbrowsers ab. Keine 3D-Datei verlässt dein Gerät.</p>
</details>
<details>
<summary><strong data-i18n="faqQ5">Welche Dateigröße wird maximal unterstützt?</strong></summary>
<p data-i18n="faqA5">Da die Verarbeitung direkt im Browser über hardwarebeschleunigte Typ-Arrays (Float32Array) erfolgt, gibt es kein künstliches Server-Limit. Dateien bis ca. 150–200 MB bzw. über 2.000.000 Polygone lassen sich auf modernen Rechnern problemlos verarbeiten.</p>
</details>
<details>
<summary><strong data-i18n="faqQ6">Funktioniert MeshDoc auch auf Smartphones und Tablets?</strong></summary>
<p data-i18n="faqA6">Ja. MeshDoc ist vollständig responsiv aufgebaut und unterstützt mobile WebGL-Renderer auf iOS (Safari) und Android (Chrome/Firefox), sodass du 3D-Dateien auch unterwegs auf dem Handy oder Tablet prüfen und reparieren kannst.</p>
</details>
<details>
<summary><strong data-i18n="faqQ7">Welche Dateiformate können repariert und exportiert werden?</strong></summary>
<p data-i18n="faqA7">Du kannst STL (sowohl binär als auch ASCII), Wavefront OBJ und 3MF importieren. Nach der Reparatur kannst du das saubere Modell als Binary-STL, ASCII-STL, 3MF-Paket oder OBJ-Datei herunterladen.</p>
</details>
</div>
</section>
</main>
<!-- Footer -->
<footer class="app-footer" role="contentinfo">
<div>
<p>© 2026 Svender3D • MeshDoc STL Repair Tool • <a href="https://svender3d.de" target="_blank" rel="noopener" style="color: var(--accent-cyan); text-decoration: underline;">svender3d.de</a></p>
</div>
<div style="display: flex; gap: 12px; align-items: center; flex-wrap: wrap;">
<a href="javascript:void(0)" onclick="window.openModal('modalWhatsNew', event)" data-open-modal="modalWhatsNew" data-i18n="linkWhatsNew">What's New (v1.5)</a> •
<a href="https://github.com/Exulizer/MeshDoc" target="_blank" rel="noopener" data-i18n="linkGitHub">GitHub</a> •
<a href="javascript:void(0)" onclick="window.openModal('modalImpressum', event)" data-open-modal="modalImpressum" data-i18n="linkImpressum">Legal Notice</a> •
<a href="javascript:void(0)" onclick="window.openModal('modalDatenschutz', event)" data-open-modal="modalDatenschutz" data-i18n="linkDatenschutz">Privacy Policy</a> •
<a href="javascript:void(0)" onclick="window.openModal('modalContact', event)" data-open-modal="modalContact" data-i18n="linkContact">Contact</a> •
<a href="sitemap.xml" target="_blank" rel="noopener" data-i18n="linkSitemap">Sitemap</a> •
<a href="javascript:void(0)" id="btnOpenCookieSettings" onclick="window.openCookieBanner ? window.openCookieBanner(event) : (document.getElementById('cookieBanner').style.display='block')" data-i18n="linkCookieSettings">Cookie Settings</a>
</div>
</footer>
</div>
<!-- =========================================================================
MODAL DIALOGS (WHAT'S NEW, IMPRESSUM, DATENSCHUTZ, KONTAKT)
========================================================================= -->
<!-- Modal: What's New & Release Notes -->
<div class="modal-backdrop" id="modalWhatsNew" role="dialog" aria-modal="true" aria-labelledby="whatsNewTitle">
<div class="modal-dialog" style="max-width: 740px;">
<div class="modal-header">
<h2 id="whatsNewTitle" data-i18n="modalWhatsNewTitle">✨ What's New & Updates</h2>
<button class="modal-close-btn" onclick="window.closeModal('modalWhatsNew')" aria-label="Close">×</button>
</div>
<div class="modal-body">
<div class="changelog-timeline">
<!-- v1.5 (Latest) -->
<div class="changelog-card latest">
<div class="changelog-card-header">
<div class="changelog-card-title">
<span class="version-pill current">v1.5</span>
<span class="badge-status">Latest Release</span>
<strong style="color: var(--text-primary); font-size: 0.9rem;">Zero-Idle GPU Engine, Two-Phase Comparison & UX Restructuring</strong>
</div>
<span class="changelog-date">August 2026</span>
</div>
<ul class="changelog-list">
<li>
<span>⚡</span>
<div><strong>Zero-Idle GPU & Demand-Driven WebGL:</strong> WebGL render loop drops to 0% GPU load during idle states (0 FPS when stationary), eliminating GPU overheating, VRAM bandwidth spikes, and display driver screen flickering.</div>
</li>
<li>
<span>📊</span>
<div><strong>Two-Phase Before/After Comparison Architecture:</strong> File loading displays exact verified current geometry metrics; post-repair automatically transforms into a complete Before ➔ After delta audit with confirmed 100% Watertight / Manifold status.</div>
</li>
<li>
<span>📍</span>
<div><strong>Non-Intrusive Floating Sticky Auto-Repair Action:</strong> A sleek bottom-center floating action pill appears when scrolling past the dashboard, offering instant 1-click repair without obstructing sidebar tools.</div>
</li>
<li>
<span>⬆️</span>
<div><strong>Smooth Ease-In-Out Back-To-Top Navigation:</strong> High-precision Back-to-Top physics utilizing an <code>easeInOutCubic</code> deceleration curve (gentle start, fluid glide, soft deceleration).</div>
</li>
<li>
<span>🎯</span>
<div><strong>Semantic HTML5 Restructuring & On-Page SEO / JSON-LD:</strong> Full HTML5 semantic landmarks (<code><header></code>, <code><main></code>, <code><section></code>, <code><article></code>, <code><aside></code>, <code><footer></code>), strict H1–H3 hierarchy, schema.org <code>WebApplication</code> & <code>FAQPage</code> schemas, and 100% EN/DE translation parity.</div>
</li>
</ul>
</div>
<!-- v1.4 -->
<div class="changelog-card">
<div class="changelog-card-header">
<div class="changelog-card-title">
<span class="version-pill">v1.4</span>
<strong style="color: var(--text-primary); font-size: 0.9rem;">Deep Force-Repair & Visual Hologram Scanner</strong>
</div>
<span class="changelog-date">August 2026</span>
</div>
<ul class="changelog-list">
<li>
<span>⚡</span>
<div><strong>Deep Multi-Pass Force-Repair:</strong> Automated removal of overlapping CAD duplicate faces, robust planar ear-clipping hole triangulation, and topological BFS surface normal orientation.</div>
</li>
<li>
<span>🔬</span>
<div><strong>Live 3D Laser Hologram Scanner:</strong> Animated scanning laser HUD with real-time multi-step progress feedback during mesh repair.</div>
</li>
<li>
<span>🛡️</span>
<div><strong>Hetzner Mailer Backend:</strong> Secure PHP contact backend (<code>contact.php</code>) with anti-spam honeypot, header injection protection, and SPF/DMARC compliant delivery to <code>info@svender3d.de</code>.</div>
</li>
<li>
<span>📐</span>
<div><strong>Zero-Offset Error Highlighting:</strong> Defect lines (Red/Yellow) are rigidly parented to the 3D model with zero spatial offset across all viewport modes.</div>
</li>
</ul>
</div>
<!-- v1.3 -->
<div class="changelog-card">
<div class="changelog-card-header">
<div class="changelog-card-title">
<span class="version-pill">v1.3</span>
<strong style="color: var(--text-primary); font-size: 0.9rem;">Interactive Diagnostics & Slicer Audit</strong>
</div>
<span class="changelog-date">August 2026</span>
</div>
<ul class="changelog-list">
<li>
<span>🔍</span>
<div><strong>Interactive Diagnostic Accordions:</strong> Clickable defect cards explaining exact root causes in 3D slicers and corresponding algorithmic solutions.</div>
</li>
<li>
<span>🌐</span>
<div><strong>Bilingual Architecture (EN / DE):</strong> Full localization across all UI elements, tooltips, diagnostics, and export dialogs.</div>
</li>
<li>
<span>🖨️</span>
<div><strong>Slicer-Readiness Assessment:</strong> Topological printability evaluation for Bambu Studio, OrcaSlicer, PrusaSlicer, and Ultimaker Cura.</div>
</li>
</ul>
</div>
<!-- v1.2 -->
<div class="changelog-card">
<div class="changelog-card-header">
<div class="changelog-card-title">
<span class="version-pill">v1.2</span>
<strong style="color: var(--text-primary); font-size: 0.9rem;">100% Zero-Upload & Self-Hosted Privacy</strong>
</div>
<span class="changelog-date">August 2026</span>
</div>
<ul class="changelog-list">
<li>
<span>🔒</span>
<div><strong>Zero-Upload Browser Memory:</strong> All mesh operations run 100% locally inside client browser memory (<code>Float32Array</code>) with no cloud uploads.</div>
</li>