A 1.0 MB native (903 KB WASM) pure-Rust, zero-dependency headless 3D scan, CAD & robotics mesh conditioner — featuring 4-wide SIMD BVH4 + SoA leaf packets (NEON + AVX2/SSE2), opt-in zero-crate Apple Metal GPU baking (--features gpu, up to 4096²), multi-core work-stealing hullyeah batch (369–400 meshes/s, 2.71 ms/mesh), 64-byte-aligned .usdz + KHR_mesh_quantization .glb (2.07× smaller), field-aligned 4-RoSy quad retopology (all_quads=true), multi-material PBR + Packed ORM baking, multi-part assembly conditioning, exact polyhedral inertia + MuJoCo MJCF / URDF / OpenUSD Physics export, Scan-to-CAD alignment/planar simplification, K/R/U region-locked local_remesh, shrinkage-compensated Loop subdivide, crease-aware volume-preserving fair, Make-It-Stand stabilize, Tier-0 spatial contact-graph & symmetry audit, warm studio clay + Zebra diagnostic PNG lenses, watertight voxel remeshing, and 5 compiled-in int8 kernel micro-models (5.1 KB total) for CLI, MCP server, and npm/WASM.
Hullyeah replaces the ~1 GB Blender + PyMeshLab + xatlas + CoACD + xNormal conditioning stack with a single zero-dependency Rust/WASM binary that turns messy Tripo / Meshy / Rodin / photogrammetry / Forma CAD .glb, .obj, and .stl meshes into watertight, zero-self-intersection, grounded, remeshed/decimated, tightly UV-packed, Normal+ORM+Albedo-baked, multi-LOD, multi-part collision & physics-ready assets in milliseconds — and cleanly conditions raw scans back into Forma's CAD boolean kernel.
Start from an existing mesh to generate hulls or an inspection report. A conditioned mesh can also feed an animation or a render, regardless of where it was modeled. The goal planner works backward from the requested outputs, selects producers and reuses shared prerequisites. Rigid assembly is one available recipe. Goal planner guide
Available engines include Forma for geometry and CAD export, Hullyeah for mesh conditioning and collision hulls, BoneDry for rigging and animation, Jolteon for lighting and rendering, and RootCause for optional world generation.
| Metric | Incumbent (Blender.app / Python trimesh + xatlas) |
hullyeah v0.4 (--strict) |
Delta |
|---|---|---|---|
| Binary / Install Footprint | 953 MB (Blender.app) |
1.0 MB CLI/MCP · 903 KB WASM (+17 KB for --features gpu Metal) |
~950× smaller |
| External Rust Crate Deps | Python + C++ wheels / Qt / OpenGL | 0 (std only, 0 WASM imports — even with --features gpu Metal) |
Pure Rust |
| Cold Single-Mesh CLI Run | 2,008.7 ms (Blender) · 1,550 ms (trimesh+xatlas) |
15.2 ms (statue, full QEM + UV + hulls + GLB) |
132× vs Blender · ~100× vs Python |
Multi-Core hullyeah batch (200 .glbs) |
2,008.7 ms/mesh (Blender) · 1,616.6 ms/mesh (Python) |
2.71 ms/mesh (541.8 ms med / 500.1 ms best = 369–400 meshes/s) |
741× vs Blender · 596× vs Python |
| 4-Wide SIMD BVH4 + Metal GPU Raytrace AO | 1,257.5 ms (1024² 64-spp 8-core NEON CPU) |
325.4 ms 1024² 64-spp Metal GPU · 650 ms 2048² (2.53M texels) |
3.86× GPU · 1.62× BVH4 CPU |
327k-Tri High-Poly Scan (load + weld + repair + normals) |
— | 58.6 ms load · 1.95 s full 327k-tri repair (flat-sort DSU stats()) |
Verified on 983k raw verts |
| Peak Memory RSS | 99.4 MB | 4.58 MB (statue) · 4.89 MB (arch) |
~21.7× less RAM |
| MCP Tool Schema Budget | — | 636 o200k tokens (100% native ↔ WASM parity) |
Strictly < 650 |
| 1,000-Model Held-Out Forma Stress Test | — | 1,000 / 1,000 (100.0% PASS) in 10.14 s total (P95 = 130.0 ms, external trimesh oracle) |
10 families × 100 seeds |
Exact Polyhedral Inertia vs. trimesh Oracle |
trimesh + scipy |
< 2.1e-5 rel err (< 1e-9 exact verts) across multi-material Forma assemblies → MJCF / URDF / OpenUSD |
Auto density + stability |
| UV Atlas Coverage (1,000-Model Held-Out Mean) | 61.7%–70.6% (C++ xatlas) |
67.1% mean across 1,000 meshes (75.3% flanges, 73.0% bolts, 70.6% enclosures) |
+6.4 pp via int8 UV policies |
CPU Normal + AO/ORM Bake (256² / 512² vs 64-spp RT) |
594.5 ms (Ray64 256²) |
20.8 ms 256² (28.6× faster, NEON/AVX2 + BVH4) · 63.2 ms 512², MAE = 0.0323 |
-31.0% MAE, +2.25 dB, 0 grain |
Compact .glb & .usdz Export |
Unquantized f32 glTF (22.8 KB) |
11.1 KB KHR_mesh_quantization .glb (2.07× smaller) · 64B-aligned .usdz |
Zero decoder deps |
Watertight Voxel Remesh (res=64) |
— | 55.5 ms (parallel narrow-band + plane early-out + flat CSR + 4-wide SIMD BVH4) | 3.8× faster than v0.2 |
External Oracle (trimesh) |
— | 100% of UCX_* hulls verified WT=True, is_convex=True, V<=32 + glTF Packed ORM / Normal / Albedo / TANGENT / LOD1 / LOD2 |
Verified |
| Capability | Operations / Exports |
|---|---|
| Multi-Material PBR & Packed ORM | Preserves per-material baseColorFactor, metallic, roughness, emissive, usemtl/UsdPreviewSurface+GeomSubset across all geometry ops; bakes single-draw-call glTF 2.0 Packed ORM (R=AO, G=Roughness, B=Metallic) (--orm-map, map: "orm"). |
| Multi-Part Assembly Conditioning | preserve_parts=true isolates vertex welding & component pruning across touching CAD sub-bodies; decompose(per_part=true) emits articulated per-part UCX_<part>_* hulls in .glb, .usda, .tscn, .xml, and .urdf. |
| Robotics & Physics Sim Export | | physics(density=, mass=) computes exact signed-tetrahedron mass, CoM, 3×3 inertia tensor, Jacobi principal axes, auto material-name densities, and 2D support-polygon tipping stability (assert stable, assert mass, assert support_margin). Exports self-contained MuJoCo 3.x MJCF (.xml), ROS/Gazebo/Isaac URDF (.urdf), and OpenUSD PhysicsRigidBodyAPI + PhysicsMassAPI (.usda). |
Scan-to-CAD Reverse Path (Hullyeah → Forma) |
| align_principal(up=, mode=) (dominant face-normal frame + area-weighted PCA fallback), | flatten_base(tol=, depth=) (exact plane-clip + ear-clipped dead-flat z=0 datum base), and | simplify_planar(angle=, tol=) (collapses coplanar/collinear facets while locking 3-plane CAD corners). |
| High-Poly & Broken GenAI Soup Toughness | | voxel_remesh(res=64, smooth=2, project=true) (leak-proof exterior-flood-fill SDF + Freudenthal 6-tetrahedra + fold/collision-guarded BVH projection) + assert self_intersections == 0 (BVH Möller–Trumbore check) + flat-sort DSU stats() (58.6 ms load on 327k tris). |
| Form Hygiene, Equilibrium & Tier-0 Audit | | fair(iters=3, tau=0.0025, restore=0.35, crease=60, pin_base=true) (Dirichlet crease-pinned implicit cotangent fairing + exact volume projection), | stabilize(strength=1.0, margin=0.0) (Make-It-Stand base-anchored shear -> assert stable, assert tip_angle_deg), and | audit(gap_tol=0.004, crease=45) (multi-part spatial contact graph contact_islands, unweighted macro/micro floating_parts, split within_intersections/cross_intersections, smooth panel_rms_deg, and bilateral sym_err). |
| Quad Retopo, Local K/R/U & Subdivision | | quadrify(angle=30, preserve_uvs=true, retopo=true, all_quads=true) (Taubin curvature + crease-locked 4-RoSy cross-field, field-aligned edge flips, optional 100% all-quad midpoint split -> native quad .obj/.usda/.usdz), | local_remesh(select=, rings=, density=) (region-locked K/R/U defect/spatial refinement with ic == 100), | subdivide(levels=1, compensate=true, crease=) (shrinkage-compensated Loop subdivision), plus Kiln A.3 topology metrics (val_irr, sl_1k, zf_pct). |
Zero-Dep .usdz & KHR_mesh_quantization .glb |
--usdz asset.usdz (64-byte-aligned uncompressed ZIP with asset.usda, UsdPreviewSurface, embedded Normal/ORM/Albedo PNGs, PhysicsMassAPI & hulls for Apple Quick Look / VisionOS / Isaac Sim) and --quantize (i16 positions + TRS dequant, i8 normals/tangents, u16 UVs/indices — 2.07× smaller .glb with full parse_glb round-trip). |
Opt-In Metal GPU Compute (--features gpu) |
Zero-crate Apple Metal.framework Unified Memory compute shaders for bake_maps(res=2048, samples=64, ao="raytrace", gpu=true) (up to 4096² bakes, 3.86× faster 1024² 64-spp raytrace vs. 8-core NEON CPU, +17 KB binary delta). |
| Warm Studio Clay & Zebra Diagnostic Lenses | Zero-GPU software G-buffer renderer: crease-aware smooth normals, 3-point Oren-Nayar warm alabaster clay + 12-tap horizon SSAO + curvature cavity darkening (--png / studio), plus 4-view Nyquist-antialiased Zebra stripes + Contact AO + Curvature H diagnostic lens (--zebra, MCP map: "zebra", WASM "zebra_png"). |
| Unix Streaming & Shared Forma Conventions | --in - / --out - zero-temp-file binary streaming with magic-byte .glb/.stl/.obj detection, -e <pipe>, --unit / --out-unit (m|cm|mm|um|in|ft), --json telemetry, shared DSL verbs (align_z0, move, scale, units, rot), and Forma-aligned exit codes (0/1/2/3). |
Distilled offline from exact geometric/raytraced oracles on strictly disjoint procedural Forma training meshes (seeds 10000..10300) and evaluated on held-out test meshes (seeds 0..1000):
| # | Kernel Micro-Model | Module | Quantized Size | Held-Out Test Impact |
|---|---|---|---|---|
| 1 | Hull Split-Plane Scorer | hull_policy.rs |
1,248 B |
3.9× faster 1,000-model wall (44.4s → 10.1s), 12.6× faster P95, concavity 18.36% → 15.90% |
| 2a | UV Per-Mesh Strategy Controller | uv_policy.rs |
1,468 B |
+6.4 pp mean UV coverage across 1,000 models (60.7% → 67.1%, 10/10 families improved) |
| 2b | UV Per-Edge Seam Scorer | uv_policy.rs |
748 B |
88.4% seam-cut accuracy; up to +17.4 pp coverage on threaded bolts |
| 3 | QEM Feature-Preserving Multiplier | qem_policy.rs |
796 B |
LOD 120: -15.4% max Hausdorff spike (2.16% → 1.82%), -26.2% volume drift (3.88% → 2.86%) |
| 4 | Multi-Cone SDF-AO Calibrator | ao_policy.rs |
852 B |
256² bake vs 64-spp RT: -31.0% MAE, +2.25 dB PSNR, -27.2% crease MAE, zero grain |
Reproducible benchmark & distillation scripts: bench/test_1000_forma.py · bench/train_hull_policy.py · bench/train_uv_policy.py · bench/train_qem_policy.py · bench/train_ao_policy.py.
Across 24 blind trials (flash_lite, flash, pro × 4 tasks M1–M4 × 2 conditions), graded symmetrically by an external trimesh oracle on exported Y-up .glb files:
| Metric | Python (trimesh + xatlas) |
Hullyeah-Pipe |
Delta |
|---|---|---|---|
Overall Pass@1 |
5/12 (41.7%) | 10/12 (83.3%) · 11/12 (91.7%) (post | assert(...) fix) |
+41.7 pp → +50.0 pp |
Overall Pass@3 |
10/12 (83.3%) | 12/12 (100.0%) (100% by Turn 2) | +16.7 pp |
flash + pro Pass@1 |
4/8 (50.0%) | 8/8 (100.0%) | 2.0× Pass@1 |
Mean Turn-1 Code Tokens (o200k) |
6,228.5 | 141.2 | 44.1× fewer tokens |
| Mean Cumulative Tokens | 12,443.6 | 162.0 | 76.8× fewer tokens |
| Mean Passing Latency | 5,129.3 ms (med 1,616.6 ms) | 28.7 ms (med 26.6 ms) | 178.7× faster mean |
Full audits: docs/PHASE1_ARCHITECTURE_AUDIT.md · docs/PHASE2_LANGUAGE_ABLATION.md · Reproducible harness: bench/eval_ablation.py.
{
"mcpServers": {
"hullyeah": {
"command": "npx",
"args": ["-y", "-p", "hullyeah-3d", "hullyeah-3d-mcp"]
}
}
}# Inspect any raw .glb, .obj, or .stl mesh (or `-` from stdin, with `--json` and `--unit mm`)
hullyeah inspect --json raw_scan.glb
# Condition a multi-part CAD assembly for games, VisionOS & robotics (quantized glTF + USDZ + OpenUSD + MJCF + URDF)
hullyeah eval --strict --quantize \
--out asset_ready.glb \
--usdz asset_ready.usdz \
--usda asset_ready.usda \
--tscn asset_ready.tscn \
--mjcf asset_ready.xml \
--urdf asset_ready.urdf \
--orm-map asset_orm.png \
--render preview_4view.png \
--zebra preview_zebra.png \
examples/concave_arch.hull
# Multi-core work-stealing batch conditioning (~369-400 meshes/s, 2.71 ms/mesh, zero spawn overhead)
hullyeah batch --out-dir ./ready --out-fmt glb --jobs 8 \
-e '| weld(eps=1e-4) | keep_largest(1) | fix_normals() | fill_holes() | decimate(tris=1500) | uv_pack() | decompose(max_hulls=6) | assert(watertight)' \
./raw_scans/*.glb
# Stream directly via stdin/stdout for Scan-to-CAD (Hullyeah -> Forma) in mm
cat raw_tilted_scan.glb \
| hullyeah eval --in - --strict --out - --out-fmt stl --out-unit mm \
-e '| weld() | voxel_remesh(res=64) | align_principal() | flatten_base() | simplify_planar(angle=2.0) | assert(watertight) | assert(stable) | assert(self_intersections == 0)' \
> cad_ready_mm.stlimport { evalPipe, exportAsset } from "hullyeah-3d";
const pipeline = `
arch = scan_fixture("arch", subdiv=5, noise=0.004, holes=2, floaters=3, flip=0.15)
| weld(eps=1e-4)
| keep_largest(1)
| fix_normals()
| fill_holes(max_edges=64)
| normalize(height=2.3, center=true, ground=true)
| remesh(tris=500, iters=2)
| decimate(tris=400)
| uv_pack(angle=45, margin=0.01)
| bake_maps(res=256, samples=16, ao="sdf")
| decompose(max_hulls=6, concavity=0.05, max_verts=32)
assert watertight
assert grounded
assert components == 1
assert tris <= 420
assert hulls <= 6
assert concavity <= 0.15
assert uv_coverage >= 0.45
assert texel_cv <= 0.25
`;
const diag = await evalPipe(pipeline, { strict: true });
const glbBytes = await exportAsset(pipeline, "glb"); // glTF 2.0 + embedded Normal/ORM/Albedo PBR + TANGENT + UCX_* hulls
const glbQBytes = await exportAsset(pipeline, "glb_q"); // Compact KHR_mesh_quantization glTF 2.0 (~2.1x smaller geometry)
const usdzBytes = await exportAsset(pipeline, "usdz"); // 64B-aligned USDZ bundle (asset.usda + embedded PBR PNGs + hulls)
const normalBytes = await exportAsset(pipeline, "normal_png"); // Baked tangent-space Normal Map PNG
const aoBytes = await exportAsset(pipeline, "ao_png"); // Baked Fast-SDF-AO Map PNG
const ormBytes = await exportAsset(pipeline, "orm_png"); // Baked glTF Packed ORM Map PNG (R=AO, G=Rough, B=Metal)
const usdaBytes = await exportAsset(pipeline, "usda"); // OpenUSD + UsdPhysics.MassAPI / CollisionAPI
const tscnBytes = await exportAsset(pipeline, "tscn"); // Godot 4 StaticBody3D + ConvexPolygonShape3D
const mjcfBytes = await exportAsset(pipeline, "mjcf"); // Self-contained MuJoCo 3.x MJCF with exact inertia
const urdfBytes = await exportAsset(pipeline, "urdf"); // ROS / Gazebo / Isaac Lab URDF with exact inertia
const pngBytes = await exportAsset(pipeline, "png"); // Zero-GPU 4-view Warm Studio Clay (Mesh | Hulls/Zebra | Front | UV)
const zebraBytes = await exportAsset(pipeline, "zebra_png"); // 4-view Class-A Diagnostics (Zebra Front/Rear | Contact AO | Curvature H)cargo test
cargo build --release # 1.0 MB zero-dep native CLI & MCP
cargo build --release --features gpu # +17 KB zero-crate Apple Metal GPU backend (macOS)
npm run build:wasm
npm testDual-licensed under MIT or Apache-2.0.


