User Tools

Site Tools


ig:gfx:shading

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ig:gfx:shading [2025/10/29 11:50] – created ig_iiig:gfx:shading [2025/10/29 11:51] (current) ig_ii
Line 6: Line 6:
  
   * **''shading.mode''** (string):   * **''shading.mode''** (string):
-    **Type:** string **Enum:** {"auto","flat","smooth"} **Default:** "auto"+    **Type:** string 
 +    * **Enum:** {"auto","flat","smooth"} 
 +    * **Default:** "auto"
     * **"auto"** — The processor chooses flat vs smooth per-edge based on face dihedral (angle between adjacent normal vectors). Recommended default for general models.     * **"auto"** — The processor chooses flat vs smooth per-edge based on face dihedral (angle between adjacent normal vectors). Recommended default for general models.
     * **"flat"** — Compute flat normals per face (no smoothing). Use for faceted, mechanical or intentionally sharp geometry. This is the default parameter because it always produces a mathematically correct mesh.     * **"flat"** — Compute flat normals per face (no smoothing). Use for faceted, mechanical or intentionally sharp geometry. This is the default parameter because it always produces a mathematically correct mesh.
Line 12: Line 14:
  
   * **''shading.angle''** (number):   * **''shading.angle''** (number):
-    **Type:** number **Unit:** degrees **Default:** 30 +    **Type:** number 
-    Angular threshold used only when **mode** is **"auto"** (or when smoothing is computed): edges with dihedral angle less than **shading.angle** are smoothed; edges with larger angles remain hard. Typical range: 10–60° up to 90°.+    * **Unit:** degrees 
 +    * **Default:** 30 
 +    Angular threshold used only when **mode** is **"auto"** (or when smoothing is computed): edges with dihedral angle less than **shading.angle** are smoothed; edges with larger angles remain hard. Typical range: 10–60° up to 90°.
  
 **User notes:** **User notes:**
ig/gfx/shading.1761735018.txt.gz · Last modified: 2025/10/29 11:50 by ig_ii