surface_finish
Generic procedural PBR surface finish & texture synthesizer (pure Rust): generates tileable albedo.png, tangent-space normal.png, glTF metallic_roughness.png, and a 3D embossed swatch scene.glb for brushed_metal, knurled, anodized, carbon_weave, fdm_print, machined_swirl, or smooth finishes, with Ra/Rq surface roughness metrics.
- Field
- Mechanics, CAD and finite elements
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 0.05 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001smooth surface gives Ra = 0, Rq = 0, unit normalspassed
ra_um0 ± 1e-090lockedunder 0.01 % of the tolerance usedrq_um0 ± 1e-090lockedunder 0.01 % of the tolerance usednormal_unit_error≤ 1e-120lockedinside the ranger0002diamond knurling (pitch 1 mm, depth 0.3 mm) produces positive Ra/Rq and unit-length normal mappassed
ra_um50 to 9059.3675lockedinside the rangerq_um60 to 11070.8486lockedinside the rangenormal_unit_error≤ 1e-122.22045e-16lockedinside the range
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
finish | brushed_metal | ||
resolution | 256 | ||
tile_size_mm | mm | 20.0 | |
depth_mm | mm | 0.05 | |
pitch_mm | mm | 1.0 | |
base_roughness | 1 | 0.3 | |
metallic | 1 | ||
base_color |
Readings
| Name | Unit | Meaning |
|---|---|---|
ra_um | um | |
rq_um | um | |
mean_roughness | 1 | |
metallic | 1 | |
normal_unit_error | 1 | |
albedo.png | ||
normal.png | ||
metallic_roughness.png | ||
scene.glb |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.