Constrained canvas smile preview: how photo-to-smile mockup works with no clinical claim
Written by: Atlas (Gemini 4 Argon) | Published by: Yusuf Aziz · Atlas Studio | Reaper: , 0 errors
When evaluating how photo to smile mockup works and what makes a constrained canvas smile preview reproducible, the core engineering principle is geometric constraint. Formulated by Yusuf within the Sakarya-based AtlasMaster R&D workflow, the Constrained Canvas methodology processes only a de-identified mouth crop (an oral-region frame excluding eyes, nose, forehead, and full facial biometrics) bounded by a 4,686-pixel lip lock, a projected 441-form STL/PLY tooth layer, and a p95 ≤ 0.2 mm contour fidelity gate—delivering a deterministic 2D/3D preview under a strict digital smile design no clinical claim boundary.
8/8 ablation study on a 100% synthetic face (n = 1) and the locked n = 32 test set.
1. Why unconstrained generative AI fails and what the Constrained Canvas locks
Passing a full facial photograph to an unconstrained image generator alters lip vermilion borders, invents non-existent tooth counts, and produces geometries that cannot be milled in CAD/CAM. The Constrained Canvas methodology eliminates hallucinated drift through four mechanical constraints:
- De-identified mouth crop and
4,686-px lip lock (K023): Full facial identity never enters the external visual model. Only a de-identified mouth crop (excluding eyes, nose, forehead, and full facial biometrics), the selected 3D tooth layer, and a4,686-pixel lip boundary mask are processed, keeping all4,686preserved lip, beard, gingival, and lower-tooth pixels identical across outputs withinp95 ≤ 0.2 mmcontour fidelity. - Projected 3D STL/PLY morphology layer (
K051–K052): Rather than synthesizing arbitrary teeth, the canvas projects a 3D mesh selected via478-landmark cephalometry from the441-form library (476/477verified STL/PLY renders), locked at the cervical boundary (0x800) withinp95 ≤ 0.2 mm(41/41self-tests). - Transparent retirement of failing branches (
K055): During R&D, the800-step (9.5min,15.93GB RAM)v6MLX DoRA (gemma-4-E4B) branch (which produced35%empty outputs,14/40, with43.2–46.3s latency) and thev4unconstrained generative arm (11/24quality failures) were retired in favor of thev7mechanical lighting and Constrained Canvas pipeline (6/36failures, retiring76.5 GBof generative weights). - Direct bridge to intraoral mock-up: Because the 2D preview is anchored to an actual 3D STL/PLY shell, the identical geometry exports to ExoCAD to print a model and silicone index for a non-prep intraoral mock-up.
2. Four-arm ablation benchmark (8/8 runs) and Constrained Canvas verification table
On the 100% synthetic brachycephalic face (n = 1, ZY-ZY = 629.7 px, Go-Go = 526.9 px, Go-Go / ZY-ZY = 0.837, N-Gn / ZY-ZY = 1.226, SAM 2D W/H = 0.77, verified at 0 / 0 / 0 real-person similarity), the 4-arm ablation experiment (ornek/sentetik-kare/ablasyon-4kol.json, 4 arms × 2 repeats = 8/8 calls, 494 s) and Constrained Canvas pipeline verified the following metrics:
| Ablation Arm / Metric | Untrained / Unconstrained Arm | Constrained Canvas + 3D QLoRA | Primary Evidence Source |
|---|---|---|---|
4-arm ablation (4×2 = 8/8 calls · K054) | 8/8 collapsed to oval / medium across 4 mouth states | square · wide · koseli (90.6% on n=32) | ablasyon-4kol.json |
Preserved lip & perioral pixel lock (K023) | Unconstrained diffusion contour drift | 4,686 px bit-for-bit lock · p95 ≤ 0.2 mm | yuzden-dise-sefalometrik-gulus-tasarimi-ve-lora-deneyi.html |
Mechanical lighting vs unconstrained arm (K055) | v4 generative: 11/24 failed checks | v7 mechanical: 6/36 failed (76.5 GB retired) | yuzden-dise-sefalometrik-gulus-tasarimi-ve-lora-deneyi.html |
Open-ended DoRA vs deterministic tree (K055) | v6 DoRA: 35% empty output (14/40, 43 s) | Decision tree < 50 ms · 3D QLoRA 32/32 JSON | yuzden-dise-sefalometrik-gulus-tasarimi-ve-lora-deneyi.html |
3D STL/PLY contour fidelity (K051–K052) | 441 forms · 476/477 STL/PLY renders | Cervical 0x800 · p95 ≤ 0.2 mm (41/41) | stl-ply-3d-tooth-library-rendering.html |
3. Why “digital smile design with no clinical claim” is a core engineering rule
Both healthcare communication regulations (RG 33075) and scientific falsifiability require a clear separation between visual simulation and clinical dentistry:
- Optical and geometric simulation only: A Constrained Canvas mockup illustrates how a specific 3D tooth morphology fits within the lip frame; it does not predict biological tissue response or clinical outcomes.
- Dentist-led conservative planning: Visual alignment before tooth preparation helps dentist and individual evaluate enamel-preserving options such as silicone-index composite injection moulding or prepless laminate veneers.
- Zero online patient intake (
O-012): No patient photographs or case files are accepted through this site or by email; communication is restricted to technical and professional collaboration.
4. Frequently asked questions (Constrained Canvas & photo-to-smile mockup)
- What is a constrained canvas smile preview, and how does photo to smile mockup work?
- Instead of feeding a full facial photograph into an unconstrained generative model, the Constrained Canvas methodology supplies only a de-identified mouth crop (excluding eyes, nose, forehead, and full facial biometrics), a projected 3D tooth morphology layer from the
441-form library, and a4,686-pixel lip boundary lock—keeping all4,686preserved lip, beard, gingival, and lower-tooth pixels bit-for-bit identical withinp95 ≤ 0.2 mmcontour fidelity. - Why were the v4 unconstrained generative arm and v6 DoRA retired in favor of the v7 mechanical lighting and Constrained Canvas pipeline?
- Applying an unconstrained generative model to retractor frames distorted tooth contours (
11/24failed checks in thev4generative arm), while the800-stepv6MLX DoRA (gemma-4-E4B) open-ended test produced35%empty outputs (14/40) with43.2–46.3s latency. Switching to the Constrained Canvas andv7mechanical lighting + specular + incisal shadow pipeline reduced failed checks to6/36and allowed76.5 GBof generative weights to be retired. - How does the 2D Constrained Canvas preview connect to 3D ExoCAD fabrication?
- The teeth previewed inside the canvas are not hallucinated pixels; they are calibrated projections from
441unique 3D tooth forms (476/477verified STL/PLY renders) locked at the cervical boundary (0x800flag) withp95 ≤ 0.2 mmgeometric fidelity (41/41self-tests). - Why is this workflow defined as digital smile design with no clinical claim?
- In compliance with healthcare communication regulations (RG 33075) and scientific rigor, a visual preview is strictly an optical and geometric simulation—not a clinical promise or diagnosis. No patient files are accepted online, no pricing is listed, and all clinical decisions belong solely to the dentist.
5. Ablation data, related technical pages, and contact
Links to the 4-arm ablation dataset, STL/PLY rendering documentation, and Sakarya technical collaboration:
- Ablation data and studies: ablasyon-4kol.json · 3D Cephalometric QLoRA Study · STL/PLY 3D Tooth Library
- Related technical pages: CAD/CAM Dentistry Sakarya · 3D Cephalometric Analysis · AI Smile Design · yusuf@atlasmaster.app
Falsification gate: If pixel drift outside the 4,686-px lip mask occurs or if unconstrained inpainting achieves p95 ≤ 0.2 mm 3D contour fidelity without a mask, this methodology will be revised.