STL/PLY 3D Tooth Library and Standardized Dental Rendering Pipeline
Why Do 2D Smile Design Templates Break in CAD? 441 Tooth Forms, 476/477 Verified Render Assets, Camera Matrix Calibration, and Mechanical Contour Fidelity
Executive Summary (TL;DR)
- Scope and regulatory boundary (K1 / Official Gazette No. 33075): This publication is a technical research record on 3D computer graphics, STL/PLY mesh geometry, and CAD/CAM software architecture. It contains no healthcare institution names, real patient photographs, before/after clinical comparisons, pricing, or superiority claims. Clinical diagnosis and treatment decisions belong exclusively to the attending dentist.
STL/PLY 3D Tooth Library, ExoCAD 441-Form Workflow and Standardized Dental Rendering Pipeline
1. Why 2D smile design previews fail inside 3D CAD environments
When flat 2D drawings or unconstrained generative inpainting outputs are handed over to a dental CAD technician working in ExoCAD or 3Shape, four systematic geometric failures occur:
Perspective distortion and focal-length drift: Close-up photographs captured with short focal lengths exaggerate the apparent width of central incisors while compressing canines and premolars along the buccal corridor. Applying a flat 2D golden proportion ruler (PMID:279670) without compensating for camera intrinsics produces unrealistically narrow lateral incisors and canines once wrapped onto a 3D dental arch.
Tooth-count and contour hallucination in unconstrained diffusion: Generative diffusion models synthesize plausible tooth textures but routinely violate anatomical topology. In internal benchmark logs (
ACIK_ISLER.md:32), running an unconstrained image-generation pass caused the SAM (Segment Anything Model, arXiv:2304.02643) tooth count to jump from5to9teeth, pushed the 95th-percentile contour deviation top95 = 48 pixels, and altered38.8%of pixels outside the target mask. Consequently, unconstrained diffusion was removed from the delivery path in favor of deterministic 3D-to-2D compositing (DEVIR.md:124).Z-axis depth and overjet ambiguity: A 2D overlay specifies vertical incisal length (Y) and horizontal width (X), but omits labio-palatal inclination (Z). Without a 3D transformation matrix (
M_local_world) anchored to the intraoral scan, the CAD operator must guess whether to procline or retrocline the restoration, directly affecting lip support and phonetics.Cervical root-extension clipping errors: Many CAD tooth libraries store meshes as open shells with long root extensions designed for gingival emergence boolean operations. Measuring crown height via a naive bounding box on teeth exceeding
12 mmcaptures only55%of the true crown ratio and introduces false central-incisor asymmetry (ACIK_ISLER.md:27, issueA214).
2. The 441-form tooth library, 537 guide profiles, and 476/477 verified STL/PLY render pool
To replace subjective template picking with measured morphological matching, the library layer is structured into two parallel datasets: a 441 primary tooth-form catalog (backed by 441/441 base profiles and a total of 537 measured markdown guide files under ~/atlas/atlas_data/rehber_ic, median size 6,154 B ≈ 6 KB; DEVIR.md:100) and a 477-entry STL / PLY 3D rendering pool including repaired shell variants (ACIK_ISLER.md:23, arsiv/DEVIR_arsiv_2026-10-09.md:37).
Each tooth form is indexed as a verified 3D surface mesh with pre-computed geometric invariants:
- Central incisor width-to-height ratio (
W/H): Evaluated against the anatomical crown reference range (0.78–0.85, PMID:12806322) established for unworn maxillary dentition. - Disto-incisal radius and incisal embrasure geometry: Mapped across cuboidal (square), ovoid, and tapered archetypes using the dentogenic SPA (sex, personality, age) filter (DOI:10.1016/0022-3913(58)90043-x) and morphological archetype parameters.
- Surface macro- and micro-topography: Developmental lobes, marginal ridge prominence, and perikymata surface normals that govern specular reflection.
During the render-library verification closure (arsiv/DEVIR_arsiv_2026-10-09.md:37, commit 6fd6b12), 34 open-shell variants were repaired and added to the 442 base entries, resulting in 476/477 verified render packages (RENDERKUT_OK 18/18, BINEK_OK 71/71, ISARET_OK 29/29). Every package contains a locked triad—render_rgba, siluet_alfa (alpha silhouette), and dis_indeks (per-tooth index mask)—sealed with a single deterministic transformation hash (sha1).
3. Camera projection matrices, CIE LAB lighting, and subsurface scattering
Projecting a 3D STL/PLY arch into a 2D photograph without creating an artificial appearance requires headless Blender/OpenGL rendering governed by three physical constraints:
Photograph-camera projection (
hekim_dizimi.py): Rather than rendering the tooth library with an arbitrary orthographic studio camera, the 3D mesh is rendered through the estimated camera projection matrix of the target photograph (DEVIR.md:122). Each render pass outputs seven synchronized layers:render_rgba,siluet_alfa,dis_indeks,derinlik(Z-depth),cfg,rapor.json, and the registered comparison overlay.CIE LAB / CIEDE2000 color-space harmonization and incisal shadow modeling: Natural dental enamel exhibits anisotropic translucency over warmer dentin. In the compositing pipeline (
DEVIR.md:100,commit 8feeb639), luminance (L*) and chromaticity (a*,b*) statistics are sampled in CIE LAB space from existing reference teeth; specular highlights and upper-lip incisal cast shadows (commit e8ffbcc9,DEVIR.md:115) are computed mechanically rather than hallucinated.Pixel-level lip and gingiva lock (with Synthetic Benchmark Caveat): Pixels outside the dental silhouette—lips, gingival zeniths, facial hair, and mandibular teeth—are strictly immutable. In the locked synthetic benchmark (
blog/en/face-to-tooth-cephalometric-lora.html:116),4,686surrounding pixels remained100%identical across model comparisons while only the maxillary anterior six-tooth line changed. Mandatory Methodological Caveat (bot/olgular.json:O-008, O-009): The lockedn = 32evaluation set on which face-shape accuracy improved from0.0% → 90.6% (29/32)and target tooth-line accuracy reached100.0% (32/32)is a100%rule-derived synthetic numerical test set, not a clinical patient photograph cohort.
4. Arch curvature, cervical boundary flags (0x800), and the p95 ≤ 0.2 mm gate
Once the 3D render is composited into the 2D Constrained Canvas, the Mechanical Fidelity Gate (kosucu/sadakat_kapisi.py --referans render, self-test selftest 41/41; end-to-end compositing runner ~/atlas/mockup2d/mockup_hatti.py --selftest 30/30; DEVIR.md:100,124) enforces three fail-closed checks:
- Exact tooth-count parity: The number of segmented teeth in the final composite must equal the tooth index mask (
dis_indeks) of the 3D render. - Zero out-of-mask leakage: Every pixel outside the constrained silhouette mask is restored from the original frame (out-of-mask difference =
0.000%). - Contour deviation bound (
p95 ≤ 0.2 mm): The 95th percentile of the Euclidean contour distance between the 3D render silhouette (siluet_alfa) and the final composite must not exceed0.2 mm. On alpha-channel identity verification across three test packages, contour deviation measuredp95 = 0.000 mm(3/3 PASSED,DEVIR.md:100).
Measurable Evidence Card (Live Library and Rendering Logs)
Every numerical metric on this page is read directly from live repository verification logs and locked datasets with data-kaynak attributes:
| Measurement / Evidence Item | Verified Value | Live Source (File:Field · Date) |
|---|---|---|
| 3D tooth morphology catalog and measured guide directory | 441 tooth forms (441/441 base match) · 537 total .md files in rehber_ic (median 6,154 B ≈ 6 KB) |
DEVIR.md:100 · atlas_data/rehber_ic/*.md · 2026-10-19 |
| Standardized STL/PLY 3D render library verification | 476/477 verified render entries (442 base + 34 repaired variants; RENDERKUT_OK 18/18, BINEK_OK 71/71, ISARET_OK 29/29) |
ACIK_ISLER.md:23 · arsiv/DEVIR_arsiv_2026-10-09.md:37 · 2026-10-19 |
| 3D cephalometric facial mesh and topological edge count | 478 landmarks · 2,556 edges (ZY-ZY #234–#454, Go-Go #172–#397) |
blog/en/face-to-tooth-cephalometric-lora.html:114,247 · 2026-10-19 |
| Face-shape and target tooth-line accuracy on locked n = 32 SYNTHETIC test set | Face shape 0.0% → 90.6% (29/32) · Target line 100.0% (32/32) · Caveat: 100% rule-derived SYNTHETIC numerical test set (no real patient photos) |
bot/olgular.json:150-186 (O-008, O-009) · 2026-10-15 |
| Mechanical fidelity gate (41/41), lip lock, and contour tolerance | 4,686 locked lip/gingiva pixels · contour p95 ≤ 0.2 mm · identity p95 = 0.000 mm (3/3) · sadakat_kapisi.py selftest 41/41 |
kosucu/sadakat_kapisi.py · DEVIR.md:100,124 · 2026-10-19 |
| Single-command 3D→2D compositing and fidelity verification runtime | 35–46 s / package (compositing 28–30 s, fidelity gate 16–39 s · ~/atlas/mockup2d/mockup_hatti.py selftest 30/30) |
~/atlas/mockup2d/mockup_hatti.py · DEVIR.md:100 · 2026-10-19 |
Frequently Asked Questions (FAQ)
Why does a 3D STL/PLY tooth library outperform flat 2D templates in digital smile design?
Flat 2D templates are dimensionless silhouettes drawn on a photograph plane; when camera focal length or arch curvature changes, the 2D outline cannot be reproduced accurately in 3D CAD software. An STL/PLY tooth library preserves true 3D surface topology, cervical boundary flags (0x800 bit), and occlusal volume, allowing the approved preview form to transfer directly into ExoCAD or chairside milling.
What is the difference between the 441 tooth forms, 537 guide files, and 476/477 render entries?
The primary morphological catalog contains 441 distinct tooth forms (441/441 base profiles), while the atlas_data/rehber_ic directory holds 537 total markdown profiles including variants (median size 6,154 bytes ≈ 6 KB). The standardized rendering pool combines 442 base entries plus 34 repaired open-shell variants, yielding 476/477 verified render packages (render_rgba, siluet_alfa, and dis_indeks sealed with a deterministic sha1 hash).
What does the mechanical fidelity gate (p95 ≤ 0.2 mm) verify, and what is the nature of the n = 32 test set?
kosucu/sadakat_kapisi.py --referans render (selftest 41/41; ~/atlas/mockup2d/mockup_hatti.py selftest 30/30) enforces exact tooth-count parity, 0.000% out-of-mask pixel drift, and contour deviation p95 ≤ 0.2 mm. Note that the n = 32 evaluation set in bot/olgular.json:O-008, O-009 is a 100% rule-derived synthetic numerical test set, not clinical patient photography.
Kaynaklar / References
Primary 3D mesh specifications, dental morphology benchmarks, color-space standards, and segmentation papers supporting this page:
- PLY - Polygon File Format 3D Surface Mesh Specification
- STL (STereoLithography) 3D Mesh File Format Family Specification (Library of Congress)
- Segment Anything — Zero-Shot Image and Mask Segmentation (arXiv:2304.02643)
- Real-time Facial Surface Geometry from Monocular Video on Mobile GPUs (arXiv:1907.06724)
- Dental esthetics and the golden proportion (Journal of Prosthetic Dentistry, PMID:279670, DOI:10.1016/0022-3913(78)90028-8)
- Anatomic crown width/length ratios of unworn and worn maxillary teeth in white subjects (Journal of Prosthetic Dentistry, PMID:12806322, DOI:10.1016/S0022-3913(03)00125-2)
- The dynesthetic interpretation of the dentogenic concept (Journal of Prosthetic Dentistry, DOI:10.1016/0022-3913(58)90043-x)
- The CIEDE2000 color-difference formula: Implementation notes, supplementary test data, and mathematical observations (DOI:10.1002/col.20070)
Related Technical Analyses: For the cephalometric foundation of 3D mesh alignment, read cephalometric smile design and LoRA experiment, digital dentistry reader edition, event-driven task_bus.jsonl coordination, and autonomy architecture (English Hub).