Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat(forge): grade generated meshes for physics-simulation readiness
nirholasd81938d931cf
diff --git a/api/_lib/sim-readiness.js b/api/_lib/sim-readiness.jsnew file mode 100644index 000000000..dbd020211--- /dev/null+++ b/api/_lib/sim-readiness.js@@ -0,0 +1,466 @@+// Simulation-readiness grading for generated 3D assets.+//+// glb-inspect.js answers "is this valid glTF and does it have a rig?".+// glb-quality.js answers "is this a good-looking mesh or a degenerate blob?".+// This module answers the question a physics simulator asks, which neither of+// them touches: "can I drop this asset into MuJoCo / Isaac / Bullet and get+// correct dynamics without a human editing it first?".+//+// A renderer forgives almost everything. A rigid-body solver does not. It needs+// a closed surface to integrate a volume over, consistent winding so that volume+// is positive, a real-world size so gravity and friction mean anything, and a+// convex proxy so collision queries stay cheap. Generated meshes routinely fail+// every one of those while looking perfect on screen, and the failure only shows+// up as an object that sinks through a floor or spins like it is hollow.+//+// Everything here is deterministic and derived from the mesh itself: no model+// call, no heuristic dressed up as a measurement. Where a value cannot be known+// from the geometry (true physical scale, material density) the report says+// `unknown` rather than inventing one, because a fabricated mass is worse than+// an absent one.+//+// Math, all standard and all exact for a closed triangle soup:+// volume, centroid divergence theorem over signed tetrahedra (0, a, b, c)+// inertia tetrahedron covariance accumulation, C = det(J) J Ĉ Jᵀ+// with Ĉ = (1/120)·[[2,1,1],[1,2,1],[1,1,2]], then+// I = tr(C)·1 - C after the parallel-axis shift to the+// centroid. Reported at unit density, so mass properties+// scale linearly with whatever density a caller assigns.+// manifoldness every undirected edge shared by exactly two triangles,+// every directed edge traversed exactly once (consistent+// winding). Vertices are welded by quantized position+// first, because UV/normal seams split vertices that are+// geometrically identical and would fake a boundary.+//+// glTF 2.0 defines one unit as one meter, so extents are read as meters. That+// makes "the generator normalized this into a unit box" a detectable, reportable+// condition rather than a silent lie: see `scale.normalizedGuess`.++import { NodeIO } from '@gltf-transform/core';+import { ALL_EXTENSIONS } from '@gltf-transform/extensions';++// glTF primitive.mode. Only triangles carry a volume; anything else is a+// rendering aid (points, lines, strips we do not de-index here) and is counted+// as a skipped primitive rather than silently folded into the mass properties.+const MODE_TRIANGLES = 4;++// Hull inputs are capped so a million-vertex scan stays interactive; the stride+// is deterministic (every Nth welded point) so the same asset always produces+// the same hull, which matters because the hull volume feeds a published grade.+const HULL_POINT_CAP = 20000;++// Physical-plausibility window for a rigid-body prop, in meters along the+// longest axis. Below the floor the solver hits its contact epsilon; above the+// ceiling the asset is a set piece, not a prop, and wants a different lane.+export const SCALE_BOUNDS = Object.freeze({ minMeters: 0.005, maxMeters: 20 });++// A normalization signature: generative lanes (TRELLIS, Hunyuan3D, TripoSR)+// emit meshes fitted to a unit or two-unit box centred on the origin. Hitting+// this window means the numbers are real but the units are not the object's.+const NORMALIZED_TARGETS = [1, 2];+const NORMALIZED_TOLERANCE = 0.02;++let ioPromise = null;++// One shared, fully-registered IO. Draco and meshopt are the two compressions+// our own pipeline emits, so a grader that cannot read them would report a+// false failure on our best assets.+async function getIO() {+ if (!ioPromise) {+ ioPromise = (async () => {+ const io = new NodeIO().registerExtensions(ALL_EXTENSIONS);+ const dependencies = {};+ try {+ const draco = await import('draco3dgltf');+ const create = draco.default ?? draco;+ dependencies['draco3d.decoder'] = await create.createDecoderModule();+ } catch { /* asset is only ungradeable if it actually uses Draco */ }+ try {+ const { MeshoptDecoder } = await import('meshoptimizer');+ await MeshoptDecoder.ready;+ dependencies['meshopt.decoder'] = MeshoptDecoder;+ } catch { /* same: absence only matters for meshopt-compressed input */ }+ if (Object.keys(dependencies).length) io.registerDependencies(dependencies);+ return io;+ })();+ }+ return ioPromise;+}++function transformPoint(m, x, y, z) {+ // gltf-transform world matrices are column-major, glTF's own convention.+ const w = m[3] * x + m[7] * y + m[11] * z + m[15] || 1;+ return [+ (m[0] * x + m[4] * y + m[8] * z + m[12]) / w,+ (m[1] * x + m[5] * y + m[9] * z + m[13]) / w,+ (m[2] * x + m[6] * y + m[10] * z + m[14]) / w,+ ];+}++// Flatten every triangle in the default scene into world space. Returns a flat+// Float64Array of positions plus a Uint32Array of triangle indices, which is the+// only representation the rest of this module needs.+function collectTriangles(document) {+ const positions = [];+ const indices = [];+ let skippedPrimitives = 0;+ let skinnedPrimitives = 0;++ const root = document.getRoot();+ const scene = root.getDefaultScene() ?? root.listScenes()[0] ?? null;+ const nodes = scene ? scene.listChildren() : root.listNodes();+ const seen = new Set();++ const visit = (node) => {+ if (seen.has(node)) return;+ seen.add(node);+ const mesh = node.getMesh();+ if (mesh) {+ const matrix = node.getWorldMatrix();+ const skinned = Boolean(node.getSkin());+ for (const prim of mesh.listPrimitives()) {+ if (prim.getMode() !== MODE_TRIANGLES) { skippedPrimitives += 1; continue; }+ const position = prim.getAttribute('POSITION');+ if (!position) { skippedPrimitives += 1; continue; }+ if (skinned) skinnedPrimitives += 1;+ const base = positions.length / 3;+ const count = position.getCount();+ const p = [0, 0, 0];+ for (let i = 0; i < count; i += 1) {+ position.getElement(i, p);+ const [x, y, z] = transformPoint(matrix, p[0], p[1], p[2]);+ positions.push(x, y, z);+ }+ const index = prim.getIndices();+ if (index) {+ const n = index.getCount();+ for (let i = 0; i + 2 < n; i += 3) {+ indices.push(+ base + index.getScalar(i),+ base + index.getScalar(i + 1),+ base + index.getScalar(i + 2),+ );+ }+ } else {+ for (let i = 0; i + 2 < count; i += 3) indices.push(base + i, base + i + 1, base + i + 2);+ }+ }+ }+ for (const child of node.listChildren()) visit(child);+ };+ for (const node of nodes) visit(node);++ return {+ positions: Float64Array.from(positions),+ indices: Uint32Array.from(indices),+ skippedPrimitives,+ skinnedPrimitives,+ };+}++function boundsOf(positions) {+ const min = [Infinity, Infinity, Infinity];+ const max = [-Infinity, -Infinity, -Infinity];+ for (let i = 0; i < positions.length; i += 3) {+ for (let a = 0; a < 3; a += 1) {+ const v = positions[i + a];+ if (v < min[a]) min[a] = v;+ if (v > max[a]) max[a] = v;+ }+ }+ if (!Number.isFinite(min[0])) return null;+ const size = [max[0] - min[0], max[1] - min[1], max[2] - min[2]];+ return {+ min, max, size,+ diagonal: Math.hypot(size[0], size[1], size[2]),+ longestAxisMeters: Math.max(size[0], size[1], size[2]),+ center: [(min[0] + max[0]) / 2, (min[1] + max[1]) / 2, (min[2] + max[2]) / 2],+ };+}++// Weld by quantized position. The tolerance is relative to the model's own size+// so it behaves the same on a 2 cm bolt and a 4 m vehicle.+function weld(positions, indices, tolerance) {+ const inv = 1 / tolerance;+ const map = new Map();+ const remap = new Uint32Array(positions.length / 3);+ const unique = [];+ for (let i = 0, v = 0; i < positions.length; i += 3, v += 1) {+ const key = `${Math.round(positions[i] * inv)},${Math.round(positions[i + 1] * inv)},${Math.round(positions[i + 2] * inv)}`;+ let id = map.get(key);+ if (id === undefined) {+ id = unique.length / 3;+ map.set(key, id);+ unique.push(positions[i], positions[i + 1], positions[i + 2]);+ }+ remap[v] = id;+ }+ const welded = new Uint32Array(indices.length);+ for (let i = 0; i < indices.length; i += 1) welded[i] = remap[indices[i]];+ return { points: Float64Array.from(unique), indices: welded };+}++// Edge-manifold and winding analysis over welded topology. Degenerate triangles+// (two or more identical corners after welding) are excluded from the edge+// counts and reported separately, because counting them turns one authoring+// artifact into a cascade of phantom boundary edges.+function analyzeTopology(indices) {+ const directed = new Map();+ const undirected = new Map();+ let degenerate = 0;+ let triangles = 0;++ for (let i = 0; i + 2 < indices.length; i += 3) {+ const a = indices[i], b = indices[i + 1], c = indices[i + 2];+ if (a === b || b === c || a === c) { degenerate += 1; continue; }+ triangles += 1;+ const corners = [[a, b], [b, c], [c, a]];+ for (const [u, v] of corners) {+ const dk = `${u}>${v}`;+ directed.set(dk, (directed.get(dk) ?? 0) + 1);+ const uk = u < v ? `${u}|${v}` : `${v}|${u}`;+ undirected.set(uk, (undirected.get(uk) ?? 0) + 1);+ }+ }++ let boundaryEdges = 0;+ let nonManifoldEdges = 0;+ for (const count of undirected.values()) {+ if (count === 1) boundaryEdges += 1;+ else if (count > 2) nonManifoldEdges += 1;+ }+ let reversedEdges = 0;+ for (const count of directed.values()) if (count > 1) reversedEdges += count - 1;++ return {+ triangles,+ degenerateTriangles: degenerate,+ edges: undirected.size,+ boundaryEdges,+ nonManifoldEdges,+ inconsistentWindingEdges: reversedEdges,+ edgeManifold: boundaryEdges === 0 && nonManifoldEdges === 0,+ windingConsistent: reversedEdges === 0,+ watertight: boundaryEdges === 0 && nonManifoldEdges === 0 && reversedEdges === 0,+ };+}++// Volume, centroid and the unit-density inertia tensor about the centroid.+// Exact for a closed, consistently wound surface; on an open one the numbers are+// still returned but the report marks them unreliable via `watertight: false`.+function massProperties(points, indices) {+ let volume = 0;+ const centroidAcc = [0, 0, 0];+ const cov = [0, 0, 0, 0, 0, 0, 0, 0, 0];+ let area = 0;+ // ∫ x xᵀ dV over the canonical tetrahedron (0, e1, e2, e3).+ const CANON = [2 / 120, 1 / 120, 1 / 120, 1 / 120, 2 / 120, 1 / 120, 1 / 120, 1 / 120, 2 / 120];++ for (let i = 0; i + 2 < indices.length; i += 3) {+ const ia = indices[i] * 3, ib = indices[i + 1] * 3, ic = indices[i + 2] * 3;+ const ax = points[ia], ay = points[ia + 1], az = points[ia + 2];+ const bx = points[ib], by = points[ib + 1], bz = points[ib + 2];+ const cx = points[ic], cy = points[ic + 1], cz = points[ic + 2];++ const nx = by * cz - bz * cy;+ const ny = bz * cx - bx * cz;+ const nz = bx * cy - by * cx;+ const det = ax * nx + ay * ny + az * nz; // 6 · signed tetra volume+ volume += det / 6;+ centroidAcc[0] += det * (ax + bx + cx) / 24;+ centroidAcc[1] += det * (ay + by + cy) / 24;+ centroidAcc[2] += det * (az + bz + cz) / 24;++ // C_tet = det(J) · J · Ĉ · Jᵀ with J the column matrix [a b c].+ const J = [ax, bx, cx, ay, by, cy, az, bz, cz];+ const JC = new Array(9).fill(0);+ for (let r = 0; r < 3; r += 1) {+ for (let c = 0; c < 3; c += 1) {+ let s = 0;+ for (let k = 0; k < 3; k += 1) s += J[r * 3 + k] * CANON[k * 3 + c];+ JC[r * 3 + c] = s;+ }+ }+ for (let r = 0; r < 3; r += 1) {+ for (let c = 0; c < 3; c += 1) {+ let s = 0;+ for (let k = 0; k < 3; k += 1) s += JC[r * 3 + k] * J[c * 3 + k]; // Jᵀ+ cov[r * 3 + c] += det * s;+ }+ }++ const e1x = bx - ax, e1y = by - ay, e1z = bz - az;+ const e2x = cx - ax, e2y = cy - ay, e2z = cz - az;+ const crx = e1y * e2z - e1z * e2y;+ const cry = e1z * e2x - e1x * e2z;+ const crz = e1x * e2y - e1y * e2x;+ area += Math.hypot(crx, cry, crz) / 2;+ }++ const surfaceArea = area;+ if (!Number.isFinite(volume) || Math.abs(volume) < 1e-18) {+ return { volumeM3: volume, surfaceAreaM2: surfaceArea, centroid: null, inertiaUnitDensity: null };+ }+ const centroid = [centroidAcc[0] / volume, centroidAcc[1] / volume, centroidAcc[2] / volume];++ // Shift the covariance to the centroid, then I = tr(C)·1 - C.+ const shifted = cov.slice();+ for (let r = 0; r < 3; r += 1) {+ for (let c = 0; c < 3; c += 1) shifted[r * 3 + c] -= volume * centroid[r] * centroid[c];+ }+ const trace = shifted[0] + shifted[4] + shifted[8];+ const inertia = [];+ for (let r = 0; r < 3; r += 1) {+ for (let c = 0; c < 3; c += 1) inertia.push((r === c ? trace : 0) - shifted[r * 3 + c]);+ }++ return {+ volumeM3: volume,+ surfaceAreaM2: surfaceArea,+ centroid,+ inertiaUnitDensity: inertia,+ };+}++async function convexProxy(points) {+ const stride = Math.max(1, Math.ceil(points.length / 3 / HULL_POINT_CAP));+ const { Vector3 } = await import('three');+ const { ConvexHull } = await import('three/examples/jsm/math/ConvexHull.js');+ const sample = [];+ for (let i = 0; i < points.length; i += 3 * stride) sample.push(new Vector3(points[i], points[i + 1], points[i + 2]));+ if (sample.length < 4) return null;++ const hull = new ConvexHull().setFromPoints(sample);+ const faces = hull.faces ?? [];+ let volume = 0;+ let triangles = 0;+ const vertices = new Set();+ for (const face of faces) {+ // Every hull face is a convex polygon; fan-triangulate it from its first+ // vertex so the same signed-tetra sum gives the hull volume.+ const loop = [];+ let edge = face.edge;+ do { loop.push(edge.head().point); edge = edge.next; } while (edge !== face.edge);+ for (const p of loop) vertices.add(`${p.x},${p.y},${p.z}`);+ for (let i = 1; i + 1 < loop.length; i += 1) {+ const a = loop[0], b = loop[i], c = loop[i + 1];+ volume += (a.x * (b.y * c.z - b.z * c.y) + a.y * (b.z * c.x - b.x * c.z) + a.z * (b.x * c.y - b.y * c.x)) / 6;+ triangles += 1;+ }+ }+ return {+ sampledPoints: sample.length,+ hullVertices: vertices.size,+ hullFaces: faces.length,+ hullTriangles: triangles,+ hullVolumeM3: Math.abs(volume),+ };+}++function scaleReport(bounds) {+ const longest = bounds.longestAxisMeters;+ const centered = Math.hypot(bounds.center[0], bounds.center[1], bounds.center[2]) < longest * 0.08;+ const normalizedGuess = centered && NORMALIZED_TARGETS.some((t) => Math.abs(longest - t) <= NORMALIZED_TOLERANCE * t);+ return {+ longestAxisMeters: longest,+ sizeMeters: bounds.size,+ centerOffsetMeters: bounds.center,+ withinPhysicalWindow: longest >= SCALE_BOUNDS.minMeters && longest <= SCALE_BOUNDS.maxMeters,+ // True means the geometry was fitted to a unit box by the generator, so+ // the numbers are internally consistent but say nothing about the real+ // object's size. Nothing downstream may treat them as meters.+ normalizedGuess,+ };+}++/**+ * Grade a GLB for simulation readiness.+ *+ * @param {Buffer|Uint8Array} buffer binary glTF 2.0+ * @param {{ weldToleranceRatio?: number, convexHull?: boolean }} [options]+ * @returns {Promise<object>} the report (never throws on bad input; an+ * unreadable buffer returns `{ readable: false, error }`)+ */+export async function gradeSimReadiness(buffer, options = {}) {+ const weldToleranceRatio = options.weldToleranceRatio ?? 1e-5;+ const wantHull = options.convexHull !== false;++ let document;+ try {+ const io = await getIO();+ document = await io.readBinary(buffer instanceof Uint8Array ? buffer : new Uint8Array(buffer));+ } catch (err) {+ return { readable: false, error: String(err?.message || err), verdict: 'unreadable', blockers: ['unreadable_glb'] };+ }++ const soup = collectTriangles(document);+ if (!soup.indices.length) {+ return {+ readable: true, verdict: 'unusable', blockers: ['no_triangles'],+ geometry: { triangles: 0, vertices: soup.positions.length / 3, skippedPrimitives: soup.skippedPrimitives },+ };+ }++ const bounds = boundsOf(soup.positions);+ const tolerance = Math.max(bounds.diagonal * weldToleranceRatio, Number.MIN_VALUE);+ const welded = weld(soup.positions, soup.indices, tolerance);+ const topology = analyzeTopology(welded.indices);+ const mass = massProperties(welded.points, welded.indices);+ const hull = wantHull ? await convexProxy(welded.points) : null;+ const scale = scaleReport(bounds);++ const volume = Math.abs(mass.volumeM3);+ const convexity = hull && hull.hullVolumeM3 > 0 ? volume / hull.hullVolumeM3 : null;++ const blockers = [];+ const warnings = [];+ if (!topology.edgeManifold) blockers.push(topology.boundaryEdges ? 'open_surface' : 'non_manifold_edges');+ if (!topology.windingConsistent) blockers.push('inconsistent_winding');+ if (mass.volumeM3 < 0) blockers.push('inverted_winding');+ if (volume <= 0) blockers.push('zero_volume');+ if (scale.normalizedGuess) blockers.push('scale_normalized');+ else if (!scale.withinPhysicalWindow) warnings.push('scale_outside_physical_window');+ if (topology.degenerateTriangles > 0) warnings.push('degenerate_triangles');+ if (soup.skippedPrimitives > 0) warnings.push('non_triangle_primitives_skipped');+ if (soup.skinnedPrimitives > 0) warnings.push('skinned_geometry_graded_at_bind_pose');++ // simulation_ready drops in as a rigid body with correct dynamics, as is.+ // needs_scale geometry is solid, only the unit anchoring is missing.+ // needs_repair the surface itself has to be closed before it can be one.+ // unusable no volume to simulate at all.+ const geometrySound = topology.watertight && volume > 0 && mass.volumeM3 > 0;+ let verdict;+ if (!geometrySound) verdict = volume > 0 ? 'needs_repair' : 'unusable';+ else if (scale.normalizedGuess) verdict = 'needs_scale';+ else verdict = 'simulation_ready';++ return {+ readable: true,+ verdict,+ blockers,+ warnings,+ geometry: {+ triangles: topology.triangles,+ verticesRaw: soup.positions.length / 3,+ verticesWelded: welded.points.length / 3,+ weldToleranceMeters: tolerance,+ skippedPrimitives: soup.skippedPrimitives,+ skinnedPrimitives: soup.skinnedPrimitives,+ generator: document.getRoot().getAsset()?.generator ?? null,+ },+ topology,+ scale,+ mass: {+ volumeM3: mass.volumeM3,+ surfaceAreaM2: mass.surfaceAreaM2,+ centroid: mass.centroid,+ // Unit density: multiply by kg/m³ for the real tensor and mass.+ inertiaUnitDensity: mass.inertiaUnitDensity,+ massAtWaterDensityKg: mass.volumeM3 > 0 ? mass.volumeM3 * 1000 : null,+ },+ collision: hull ? { ...hull, convexityRatio: convexity, convexEnough: convexity != null && convexity >= 0.9 } : null,+ bounds,+ };+}++export default { gradeSimReadiness, SCALE_BOUNDS };diff --git a/prompts/simulation-ready/00-CONTEXT.md b/prompts/simulation-ready/00-CONTEXT.mdnew file mode 100644index 000000000..dc477c2fb--- /dev/null+++ b/prompts/simulation-ready/00-CONTEXT.md@@ -0,0 +1,172 @@+# simulation-ready/: shared facts for the physics-grade asset campaign++The frontier bet produced by [../masters/09-the-frontier.md](../masters/09-the-frontier.md) on+2026-08-13. Read this file first; every work order in this pack assumes it. Nothing here is a+status claim to trust: re-derive with the commands in "Measured starting state" before you act.++---++## The bet, in one sentence++**Generative 3D produces pictures of things; embodied AI needs things.** three.ws already+generates, rigs, textures and provenance-signs 3D assets at scale on its own GPU fleet. Almost+none of that output, and almost none of the world's 3D asset supply, can be dropped into a+rigid-body simulator and behave correctly. The bet is to close that gap mechanically: grade+every asset for simulation readiness, repair what can be repaired, anchor it to real-world+units, publish the mass properties and a collision proxy alongside the GLB, and sign the whole+thing into the existing provenance credential so a robot-learning pipeline can consume it+without a human in the loop.++## The user and the moment++A robot-learning engineer is assembling a training scene. They need forty household props with+correct scale, mass, inertia and collision geometry so a policy trained in simulation transfers+to the real arm. Today they either buy a curated library, spend a week in Blender closing holes+and guessing masses, or accept a domain gap they cannot measure. They arrive at three.ws from a+search for simulation-ready assets or from an agent calling our MCP server mid-pipeline, type+what they need, and get back a GLB whose report says watertight, 0.31 m tall, 0.42 kg at+polypropylene density, inertia tensor attached, convex hull attached, credential signed. "It+worked" means they never open a mesh editor and the numbers survive their own audit.++The second user is the agent itself. The same report is what makes an asset machine-buyable:+an autonomous pipeline can filter on `verdict == "simulation_ready"` before it spends anything,+which no asset marketplace currently lets it do.++## The capability intersection this joins++Three live surfaces that have never met (see [../../STRUCTURE.md](../../STRUCTURE.md)):++1. **Generative 3D on our own fleet** (Forge lanes, auto-rigging worker, catalog quality gate).+2. **Verifiable 3D provenance** (`specs/PROVENANCE_3D.md`, ed25519 credential, Solana anchor).+3. **The x402 economy** (self-facilitator, the 480k-endpoint datapoint fabric pattern, Receipt+ Vault), which is what turns a graded asset into something an agent can buy mid-run.++The world made this possible only recently: text-to-3D crossed usable quality in 2026,+generated-world reinforcement learning was shown to transfer to real hardware (EmbodiedGen V2+reports simulation success 9.7% to 79.8% and real-robot task success 21.7% to 75.0%), and x402+gave machines a payment rail (Solana carrying the majority of agent payment volume, protocol+governance under the Linux Foundation since April 2026). Each existed separately a year ago.+Nobody hosts the bridge.++## Measured starting state (2026-08-13, measured, not remembered)++```bash+node scripts/sim-readiness-probe.mjs --limit 10 --out tasks/sim-readiness/probe-$(date +%F).json+npx vitest run tests/sim-readiness.test.js+grep -rniE "urdf|mujoco|watertight|inertia" STRUCTURE.md docs/ specs/ # expect: only this campaign+```++| Fact | Value | How it was read |+|---|---|---|+| Assets graded | 20 real GLBs pulled live from production | `scripts/sim-readiness-probe.mjs --limit 10` |+| Our own Forge output that is simulation ready | **0 of 10** | probe summary, `forge` row |+| Human-authored CC0 output that is simulation ready | **2 of 10** | probe summary, `authored` row |+| Forge assets sound in geometry, blocked only on units | 3 of 10 (`needs_scale`) | same |+| Dominant blocker, our lanes | `scale_normalized` (8 of 10), every mesh fitted to a unit box | same |+| Dominant blocker, authored lanes | `open_surface` (7 of 10) | same |+| Median grade time, fetch included | ~1.6 s per asset | probe row `ms` |+| Prior art in this repo | none | the grep above |++The evidence file for that run is [../../tasks/sim-readiness/probe-2026-08-13.json](../../tasks/sim-readiness/probe-2026-08-13.json).++## The proven kernel++The riskiest assumption was: *an arbitrary generated GLB can be graded for simulation readiness+deterministically, in process, with no human input and no model call.* It holds.++- [../../api/_lib/sim-readiness.js](../../api/_lib/sim-readiness.js) grades a GLB into one of+ four verdicts (`simulation_ready`, `needs_scale`, `needs_repair`, `unusable`) with the+ blockers named. It computes volume, centroid and the unit-density inertia tensor by+ divergence-theorem tetrahedron accumulation, checks edge manifoldness and winding consistency+ over position-welded topology, reads world-space extents in meters per the glTF unit+ convention, detects the generator unit-box normalization signature, and builds a convex hull+ proxy with a convexity ratio. It reads Draco and meshopt compressed input.+- [../../tests/sim-readiness.test.js](../../tests/sim-readiness.test.js) pins the math against+ closed forms: a cube of side s at unit density must return V = s³ and I = s⁵/6, and it does to+ float32 accessor precision. Open surfaces, flipped winding, node transforms and non-GLB input+ each have a case.+- [../../scripts/sim-readiness-probe.mjs](../../scripts/sim-readiness-probe.mjs) runs it against+ live production assets. No fixtures, no cache.++What the numbers proved beyond the assumption: the control group discriminates. A CC0 cleaner+bottle graded `simulation_ready` at 0.32 m tall, 2.98 kg at water density, convexity 0.898,+which is what that object physically is. The grader is measuring, not pattern matching.++## v1: the deliberately cut vertical slice++One complete user-visible slice, not all layers half-done.++**In:** grading every new Forge creation at write time and storing the report; a public free+`GET /api/sim-readiness?src=<glb>` that returns the report for any https GLB, matching the+existing free `GET /api/provenance?src=` shape; the verdict badge and the numbers on+`/m/:id` and the viewer; the `sim_readiness` field inside the provenance credential so the+grade is signed rather than merely asserted; one MCP tool (`grade_sim_readiness`, free) on the+3D Studio server so an agent can ask before it buys.++**Out of v1, on purpose:** automatic repair of open surfaces, scale inference from the prompt+or from a reference object, URDF/USD/MJCF export, collision decomposition beyond a single convex+hull, and any paid endpoint. Each is a later slice and each is worth more once the grade exists.+Repair is the obvious second slice: `needs_scale` is 3 of 10 of our output and the cheapest fix+on the board.++## What this compounds into++Every asset three.ws has ever generated gains a machine-readable physical description. That+upgrades the catalog quality gate (a physics grade is a harder quality signal than triangle+count), the provenance credential (signed physical claims, not just lineage), the x402 fabric+(a filterable, machine-buyable asset market), the Object Library, and any future robotics or+world-model surface. It is infrastructure, not a leaf.++---++## The candidate table (all scored, 1 to 5 per axis)++Pull = who wants it tomorrow. Window = why now and why nobody has. Fit = machinery reused.+Kernel = provable in one session. Compound = does it strengthen everything after it.++| # | Candidate (capability intersection) | Pull | Window | Fit | Kernel | Compound | Verdict |+|---|---|---|---|---|---|---|---|+| 1 | **Simulation-ready asset lane** (generative 3D × provenance × x402) | 5 | 5 | 4 | 5 | 5 | **CHOSEN** |+| 2 | Bidirectional 3D under the MCP Apps extension: click the model, it calls a tool back (Spatial MCP × MCP distribution) | 4 | 5 | 5 | 2 | 4 | runner-up 1 |+| 3 | Signed provenance on every MCP tool result, C2PA for agent output (provenance × MCP) | 4 | 4 | 4 | 4 | 5 | runner-up 2 |+| 4 | Living agent body inside Claude via MCP Apps (embodiment × MCP), today ChatGPT only | 3 | 4 | 5 | 2 | 2 | port, not a bet |+| 5 | Asset-level x402 fabric: every catalog asset its own paid endpoint (catalog × datapoint fabric) | 3 | 3 | 5 | 4 | 3 | folds into 1 |+| 6 | Sign to your agent and it signs back (ASL recognition × gesture vocabulary × embodiment) | 3 | 3 | 5 | 3 | 2 | leaf, delightful |+| 7 | Buy a garment from inside an assistant (Fits × x402 × MCP) | 3 | 3 | 4 | 2 | 3 | spend-gated kernel |+| 8 | Rig Doctor as an interactive in-assistant repair loop (Rig Doctor × MCP Apps) | 3 | 4 | 5 | 2 | 2 | narrow |+| 9 | Shared AR scene as a multi-agent workspace (AR Studio rooms × agent shell) | 2 | 3 | 4 | 3 | 3 | no clear buyer |+| 10 | Choreographer exposed as an MCP motion tool (motion library × MCP) | 2 | 2 | 5 | 4 | 2 | leaf |+| 11 | Economy sonification as a live paid feed (Agent Symphony × datapoint fabric) | 2 | 2 | 4 | 4 | 1 | leaf |+| 12 | Robot policy playground inside world.three.ws (multiplayer world × 1) | 4 | 4 | 2 | 1 | 4 | needs 1 to exist first |++Killed on the stated rules: none required a new paid external API, none breaches a CLAUDE.md+gate, and none duplicates [../backlog/](../backlog/) or [../roadmap/](../roadmap/), both of+which were swept (the backlog is entirely money-rail and hosting durability; the roadmap is+generation suite, creation consolidation, parametric avatar editor, developer resources and the+pump.fun trading track). Candidate 12 was demoted for kernel provability, not ambition.++## Runners-up and their trigger conditions++- **Candidate 2 (bidirectional 3D under MCP Apps).** Becomes the right choice the moment a host+ we ship on renders MCP Apps resources for a server we control and we can observe the round+ trip. Our MCP servers currently advertise protocol `2025-06-18` and expose the widget only+ through the OpenAI Apps SDK path (`_meta["openai/outputTemplate"]`,+ `ui://widget/three-studio-model.html` in `api/_mcp-studio/component.js`). The official+ extension keys on `_meta.ui.resourceUri` with a JSON-RPC bridge over postMessage. Adopting it+ is a contained change and worth doing regardless of this bet; it was not chosen because the+ load-bearing uncertainty is host-side and cannot be settled from this repo in one session.+- **Candidate 3 (signed provenance on MCP tool results).** Becomes the right choice as soon as a+ second party asks how to verify a tool result we produced, or the first time a downstream+ agent is burned by a tampered artifact. It also becomes nearly free once this bet ships, since+ the grade is already being folded into the credential.++## Never blocked++| Blocker | Do this |+|---|---|+| The grader disagrees with a well-known asset | Trust the closed forms first: `tests/sim-readiness.test.js` pins the math. Add the asset as a case before changing any threshold. |+| An asset is Draco or meshopt compressed | Already handled; `draco3dgltf` and `meshoptimizer` are registered dependencies of the shared IO. A decode failure is a real finding, not a reason to skip the asset. |+| Real-world scale cannot be inferred | Report `needs_scale` and stop. Never fabricate a size. Scale inference is a later slice with its own evidence bar. |+| A skinned or animated mesh comes through | It is graded at bind pose and the report says so (`skinned_geometry_graded_at_bind_pose`). Do not silently grade a posed mesh as a rigid body. |+| The forge gallery is empty or the probe cannot reach production | Point the probe at a local server with `--base http://localhost:3000`, or grade a single asset with `--url`. |+| Someone proposes shipping a fabricated mass or a guessed density | Refuse. The report carries unit-density inertia so a caller multiplies by a density they choose; that is the whole point. |diff --git a/scripts/sim-readiness-probe.mjs b/scripts/sim-readiness-probe.mjsnew file mode 100644index 000000000..f6964a14d--- /dev/null+++ b/scripts/sim-readiness-probe.mjs@@ -0,0 +1,147 @@+#!/usr/bin/env node+// Grade real three.ws assets for simulation readiness.+//+// This is the measurement behind the simulation-ready lane: it pulls actual GLBs+// off the live site (our own generated output from /api/forge-gallery, and the+// CC0 human-authored Object Library as the control group), runs the deterministic+// grader in api/_lib/sim-readiness.js over each one, and prints the pass rate per+// source. Nothing is mocked and nothing is cached: every byte is fetched from+// production on each run, so the numbers are re-derivable by anyone.+//+// Usage:+// node scripts/sim-readiness-probe.mjs # 8 forged + 8 authored+// node scripts/sim-readiness-probe.mjs --limit 20 # per source+// node scripts/sim-readiness-probe.mjs --base http://localhost:3000+// node scripts/sim-readiness-probe.mjs --out tasks/sim-readiness/run.json+// node scripts/sim-readiness-probe.mjs --url https://…/thing.glb # one asset++import { writeFile, mkdir } from 'node:fs/promises';+import path from 'node:path';+import { gradeSimReadiness } from '../api/_lib/sim-readiness.js';++const args = process.argv.slice(2);+const flag = (name, fallback = null) => {+ const i = args.indexOf(`--${name}`);+ return i >= 0 && args[i + 1] && !args[i + 1].startsWith('--') ? args[i + 1] : fallback;+};++const BASE = (flag('base', 'https://three.ws') || '').replace(/\/$/, '');+const LIMIT = Math.max(1, Number(flag('limit', '8')) || 8);+const OUT = flag('out', null);+const SINGLE = flag('url', null);+const MAX_BYTES = 64 * 1024 * 1024;++async function getJson(url) {+ const res = await fetch(url, { headers: { accept: 'application/json' } });+ if (!res.ok) throw new Error(`${res.status} ${res.statusText} for ${url}`);+ return res.json();+}++async function getGlb(url) {+ const res = await fetch(url);+ if (!res.ok) throw new Error(`${res.status} ${res.statusText}`);+ const buf = Buffer.from(await res.arrayBuffer());+ if (buf.length > MAX_BYTES) throw new Error(`asset exceeds ${MAX_BYTES} bytes`);+ return buf;+}++async function collectTargets() {+ if (SINGLE) return [{ source: 'url', label: SINGLE.split('/').pop(), url: SINGLE }];+ const targets = [];++ const gallery = await getJson(`${BASE}/api/forge-gallery?limit=${LIMIT * 3}`).catch((err) => {+ console.error(`forge-gallery unavailable: ${err.message}`);+ return null;+ });+ for (const c of gallery?.creations ?? []) {+ if (targets.filter((t) => t.source === 'forge').length >= LIMIT) break;+ if (c.glb_url) targets.push({ source: 'forge', label: (c.prompt || c.id).slice(0, 44), url: c.glb_url, backend: c.backend ?? null });+ }++ const library = await getJson(`${BASE}/api/objects/library?limit=${LIMIT * 3}`).catch((err) => {+ console.error(`objects/library unavailable: ${err.message}`);+ return null;+ });+ for (const o of library?.objects ?? []) {+ if (targets.filter((t) => t.source === 'authored').length >= LIMIT) break;+ if (o.url) targets.push({ source: 'authored', label: o.label || o.name, url: o.url, backend: o.source ?? null });+ }++ return targets;+}++function fmt(n, digits = 4) {+ if (n == null || !Number.isFinite(n)) return '-';+ if (n !== 0 && Math.abs(n) < 1e-3) return n.toExponential(2);+ return n.toFixed(digits);+}++async function main() {+ const targets = await collectTargets();+ if (!targets.length) {+ console.error('No assets to grade. Is the base URL reachable?');+ process.exitCode = 1;+ return;+ }++ console.log(`Grading ${targets.length} real assets from ${SINGLE ? 'a direct URL' : BASE}\n`);+ const rows = [];++ for (const target of targets) {+ const started = Date.now();+ let report;+ let bytes = 0;+ try {+ const buf = await getGlb(target.url);+ bytes = buf.length;+ report = await gradeSimReadiness(buf);+ } catch (err) {+ report = { readable: false, verdict: 'fetch_failed', error: String(err.message || err), blockers: ['fetch_failed'] };+ }+ const ms = Date.now() - started;+ rows.push({ ...target, bytes, ms, report });++ const t = report.topology ?? {};+ console.log(`[${target.source}] ${target.label}`);+ console.log(` verdict ${report.verdict}${report.blockers?.length ? ` (${report.blockers.join(', ')})` : ''}`);+ if (report.readable && report.geometry) {+ console.log(` geometry ${report.geometry.triangles} tris, ${report.geometry.verticesWelded} welded verts (from ${report.geometry.verticesRaw}), ${(bytes / 1024).toFixed(0)} KB, ${ms} ms`);+ console.log(` topology watertight=${t.watertight} boundary=${t.boundaryEdges} nonManifold=${t.nonManifoldEdges} badWinding=${t.inconsistentWindingEdges} degenerate=${t.degenerateTriangles}`);+ console.log(` scale longest=${fmt(report.scale?.longestAxisMeters)} m normalized=${report.scale?.normalizedGuess} physicalWindow=${report.scale?.withinPhysicalWindow}`);+ console.log(` mass volume=${fmt(report.mass?.volumeM3)} m3 massAtWater=${fmt(report.mass?.massAtWaterDensityKg, 2)} kg Ixx=${fmt(report.mass?.inertiaUnitDensity?.[0])}`);+ if (report.collision) console.log(` collision hull ${report.collision.hullVertices} verts / ${report.collision.hullTriangles} tris, convexity=${fmt(report.collision.convexityRatio, 3)}`);+ if (report.warnings?.length) console.log(` warnings ${report.warnings.join(', ')}`);+ } else if (report.error) {+ console.log(` error ${report.error}`);+ }+ console.log('');+ }++ const summary = {};+ for (const row of rows) {+ const s = (summary[row.source] ??= { total: 0, verdicts: {}, blockers: {} });+ s.total += 1;+ s.verdicts[row.report.verdict] = (s.verdicts[row.report.verdict] ?? 0) + 1;+ for (const b of row.report.blockers ?? []) s.blockers[b] = (s.blockers[b] ?? 0) + 1;+ }++ console.log('Summary by source');+ for (const [source, s] of Object.entries(summary)) {+ const verdicts = Object.entries(s.verdicts).map(([k, v]) => `${k}=${v}`).join(' ');+ console.log(` ${source.padEnd(9)} n=${s.total} ${verdicts}`);+ const blockers = Object.entries(s.blockers).sort((a, b) => b[1] - a[1]).map(([k, v]) => `${k}×${v}`).join(' ');+ if (blockers) console.log(` ${' '.repeat(9)} blockers: ${blockers}`);+ }++ if (OUT) {+ const out = path.resolve(OUT);+ await mkdir(path.dirname(out), { recursive: true });+ await writeFile(out, `${JSON.stringify({ base: SINGLE ? null : BASE, gradedAt: new Date().toISOString(), summary, rows }, null, 2)}\n`);+ console.log(`\nWrote ${out}`);+ }+}++main().catch((err) => {+ console.error(err);+ process.exitCode = 1;+});diff --git a/tasks/README.md b/tasks/README.mdindex 100ba0baa..39384b9fb 100644--- a/tasks/README.md+++ b/tasks/README.md@@ -1,6 +1,6 @@# tasks/-Machine-written verification reports from x402 sweep scripts. Nothing here is hand-authored: every file is regenerated by rerunning the script that produced it. These are audit evidence for the paid-endpoint rails, not a product surface, and the server does not read this directory at runtime.+Machine-written verification reports from sweep scripts, mostly the x402 paid-endpoint rails plus the asset-grading probes. Nothing here is hand-authored: every file is regenerated by rerunning the script that produced it. These are audit evidence, not a product surface, and the server does not read this directory at runtime.## Contents@@ -9,6 +9,7 @@ Machine-written verification reports from x402 sweep scripts. Nothing here is ha| [x402-bazaar/](x402-bazaar/) | `settle-sweep-report.json` | [scripts/x402-bazaar-settle-sweep.mjs](../scripts/x402-bazaar-settle-sweep.mjs): pays each bazaar endpoint for real and records settlement results. || [x402-ring/](x402-ring/) | `COVERAGE.md`, `coverage-report.json` | [scripts/x402-ring-coverage-sweep.js](../scripts/x402-ring-coverage-sweep.js): verifies every ring endpoint (402 challenge, Solana accept, settle signature, response, business effect) and writes the human table plus the machine record. || [x402-ring/](x402-ring/) | `datapoint-seed-report.json` | [scripts/x402-seed-datapoints.mjs](../scripts/x402-seed-datapoints.mjs): seeds datapoints and records the outcome. |+| [sim-readiness/](sim-readiness/) | `probe-<date>.json` | [scripts/sim-readiness-probe.mjs](../scripts/sim-readiness-probe.mjs): pulls real GLBs off the live site and grades each one for simulation readiness (watertightness, metric scale, mass and inertia, convex proxy), recording the per-asset report and the pass rate per source. |## Adding a filediff --git a/tasks/sim-readiness/probe-2026-08-13.json b/tasks/sim-readiness/probe-2026-08-13.jsonnew file mode 100644index 000000000..b2797d7f9--- /dev/null+++ b/tasks/sim-readiness/probe-2026-08-13.json@@ -0,0 +1,2157 @@+{+ "base": "https://three.ws",+ "gradedAt": "2026-08-13T09:01:54.783Z",+ "summary": {+ "forge": {+ "total": 10,+ "verdicts": {+ "needs_repair": 7,+ "needs_scale": 3+ },+ "blockers": {+ "non_manifold_edges": 2,+ "inconsistent_winding": 6,+ "scale_normalized": 8,+ "open_surface": 5+ }+ },+ "authored": {+ "total": 10,+ "verdicts": {+ "needs_repair": 8,+ "simulation_ready": 2+ },+ "blockers": {+ "open_surface": 7,+ "non_manifold_edges": 1,+ "inconsistent_winding": 3+ }+ }+ },+ "rows": [+ {+ "source": "forge",+ "label": "auto-rig",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/69c2fbc9-9cd2-4909-bb37-d067807e0cf0.glb",+ "backend": null,+ "bytes": 23318520,+ "ms": 4840,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "non_manifold_edges",+ "inconsistent_winding",+ "scale_normalized"+ ],+ "warnings": [+ "skinned_geometry_graded_at_bind_pose"+ ],+ "geometry": {+ "triangles": 38134,+ "verticesRaw": 27065,+ "verticesWelded": 19069,+ "weldToleranceMeters": 0.0000157130055821692,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 1,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 38134,+ "degenerateTriangles": 0,+ "edges": 57199,+ "boundaryEdges": 0,+ "nonManifoldEdges": 2,+ "inconsistentWindingEdges": 4,+ "edgeManifold": false,+ "windingConsistent": false,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 0.9989383518695831,+ "sizeMeters": [+ 0.9176996052265167,+ 0.9989383518695831,+ 0.7930542528629303+ ],+ "centerOffsetMeters": [+ 0.03964121639728546,+ -0.0003844648599624634,+ 0.003163471817970276+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": true+ },+ "mass": {+ "volumeM3": 0.06530379648802655,+ "surfaceAreaM2": 2.4067578768651017,+ "centroid": [+ 0.0482520205801845,+ -0.09207336834191167,+ 0.05361548395084601+ ],+ "inertiaUnitDensity": [+ 0.004921199238125993,+ 0.0010275632089552004,+ 0.001338474750589509,+ 0.0010275632089552004,+ 0.0043162222690072095,+ -0.0011636063430495642,+ 0.0013384747505895093,+ -0.0011636063430495642,+ 0.0056514176853901844+ ],+ "massAtWaterDensityKg": 65.30379648802655+ },+ "collision": {+ "sampledPoints": 19069,+ "hullVertices": 207,+ "hullFaces": 410,+ "hullTriangles": 410,+ "hullVolumeM3": 0.3367118977004541,+ "convexityRatio": 0.19394561621972192,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.4192085862159729,+ -0.49985364079475403,+ -0.3933636546134949+ ],+ "max": [+ 0.4984910190105438,+ 0.4990847110748291,+ 0.3996905982494354+ ],+ "size": [+ 0.9176996052265167,+ 0.9989383518695831,+ 0.7930542528629303+ ],+ "diagonal": 1.57130055821692,+ "longestAxisMeters": 0.9989383518695831,+ "center": [+ 0.03964121639728546,+ -0.0003844648599624634,+ 0.003163471817970276+ ]+ }+ }+ },+ {+ "source": "forge",+ "label": "a low-poly treasure chest, iron-banded wood",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/7520dae7-e40e-4020-a2ad-1d88719de59a.glb",+ "backend": "nvidia",+ "bytes": 2301728,+ "ms": 1963,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "open_surface",+ "inconsistent_winding",+ "scale_normalized"+ ],+ "warnings": [],+ "geometry": {+ "triangles": 59056,+ "verticesRaw": 42166,+ "verticesWelded": 29482,+ "weldToleranceMeters": 0.000016855089025346408,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 59056,+ "degenerateTriangles": 0,+ "edges": 88638,+ "boundaryEdges": 111,+ "nonManifoldEdges": 2,+ "inconsistentWindingEdges": 3,+ "edgeManifold": false,+ "windingConsistent": false,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 0.9987725019454956,+ "sizeMeters": [+ 0.9938066303730011,+ 0.9987725019454956,+ 0.9250633120536804+ ],+ "centerOffsetMeters": [+ 0.0027960091829299927,+ -0.0010096430778503418,+ -0.0034688711166381836+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": true+ },+ "mass": {+ "volumeM3": 0.054774978748297266,+ "surfaceAreaM2": 10.16966303841997,+ "centroid": [+ -0.007033500374154008,+ -0.06603892345019426,+ -0.008890425587900166+ ],+ "inertiaUnitDensity": [+ 0.009257473165945593,+ -0.00007217247627731567,+ 0.000019798741421673207,+ -0.00007217247627731534,+ 0.009723442042985607,+ -0.000019616792064415883,+ 0.000019798741421674092,+ -0.000019616792064415883,+ 0.010532628073893581+ ],+ "massAtWaterDensityKg": 54.774978748297265+ },+ "collision": {+ "sampledPoints": 14741,+ "hullVertices": 121,+ "hullFaces": 238,+ "hullTriangles": 238,+ "hullVolumeM3": 0.6911268105511625,+ "convexityRatio": 0.07925459975227281,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.49410730600357056,+ -0.5003958940505981,+ -0.4660005271434784+ ],+ "max": [+ 0.49969932436943054,+ 0.49837660789489746,+ 0.459062784910202+ ],+ "size": [+ 0.9938066303730011,+ 0.9987725019454956,+ 0.9250633120536804+ ],+ "diagonal": 1.6855089025346408,+ "longestAxisMeters": 0.9987725019454956,+ "center": [+ 0.0027960091829299927,+ -0.0010096430778503418,+ -0.0034688711166381836+ ]+ }+ }+ },+ {+ "source": "forge",+ "label": "a glazed ceramic teapot",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/9a226ae7-8b4e-4ac0-ba73-b97be55782ba.glb",+ "backend": "nvidia",+ "bytes": 1539880,+ "ms": 2554,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "open_surface",+ "scale_normalized"+ ],+ "warnings": [],+ "geometry": {+ "triangles": 17182,+ "verticesRaw": 10587,+ "verticesWelded": 8616,+ "weldToleranceMeters": 0.000012493362069697067,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 17182,+ "degenerateTriangles": 0,+ "edges": 25801,+ "boundaryEdges": 56,+ "nonManifoldEdges": 0,+ "inconsistentWindingEdges": 0,+ "edgeManifold": false,+ "windingConsistent": true,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 0.9929256439208984,+ "sizeMeters": [+ 0.9929256439208984,+ 0.4782698303461075,+ 0.5883855819702148+ ],+ "centerOffsetMeters": [+ -0.003628253936767578,+ 0.0015883669257164001,+ 0.00009313225746154785+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": true+ },+ "mass": {+ "volumeM3": 0.009425545288354407,+ "surfaceAreaM2": 2.0213318790934003,+ "centroid": [+ 0.002532013242446123,+ -0.027652705303965547,+ -0.00047148370657946006+ ],+ "inertiaUnitDensity": [+ 0.00032814181983392406,+ 0.000004442587462931478,+ 5.020214003527143e-7,+ 0.000004442587462931527,+ 0.0006727526132071133,+ 7.726473637605867e-7,+ 5.020214003526544e-7,+ 7.726473637605977e-7,+ 0.0006486998636742155+ ],+ "massAtWaterDensityKg": 9.425545288354407+ },+ "collision": {+ "sampledPoints": 8616,+ "hullVertices": 697,+ "hullFaces": 1390,+ "hullTriangles": 1390,+ "hullVolumeM3": 0.10928014831825555,+ "convexityRatio": 0.08625121244257904,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.5000910758972168,+ -0.23754654824733734,+ -0.2940996587276459+ ],+ "max": [+ 0.49283456802368164,+ 0.24072328209877014,+ 0.29428592324256897+ ],+ "size": [+ 0.9929256439208984,+ 0.4782698303461075,+ 0.5883855819702148+ ],+ "diagonal": 1.2493362069697065,+ "longestAxisMeters": 0.9929256439208984,+ "center": [+ -0.003628253936767578,+ 0.0015883669257164001,+ 0.00009313225746154785+ ]+ }+ }+ },+ {+ "source": "forge",+ "label": "a weathered brass diving helmet",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/a3dcf437-e132-4a32-ba83-e3d0ee917795.glb",+ "backend": "nvidia",+ "bytes": 2189336,+ "ms": 4404,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "open_surface",+ "inconsistent_winding",+ "scale_normalized"+ ],+ "warnings": [],+ "geometry": {+ "triangles": 38133,+ "verticesRaw": 29677,+ "verticesWelded": 19037,+ "weldToleranceMeters": 0.000015469116969786396,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 38133,+ "degenerateTriangles": 0,+ "edges": 57207,+ "boundaryEdges": 22,+ "nonManifoldEdges": 4,+ "inconsistentWindingEdges": 7,+ "edgeManifold": false,+ "windingConsistent": false,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 0.9999399781227112,+ "sizeMeters": [+ 0.8233436942100525,+ 0.9999399781227112,+ 0.8456719219684601+ ],+ "centerOffsetMeters": [+ -0.00036638975143432617,+ -0.0007615387439727783,+ 0.00004579126834869385+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": true+ },+ "mass": {+ "volumeM3": 0.03863040382802803,+ "surfaceAreaM2": 5.765442168765199,+ "centroid": [+ -0.0006198508988838189,+ -0.032289578589066247,+ 0.04391022655243138+ ],+ "inertiaUnitDensity": [+ 0.004360111015980752,+ -0.0000013656124904180712,+ -0.000020050847423151467,+ -0.0000013656124904182474,+ 0.0037234174467036534,+ -0.0002643795645476588,+ -0.000020050847423151643,+ -0.0002643795645476591,+ 0.004296544987016431+ ],+ "massAtWaterDensityKg": 38.63040382802803+ },+ "collision": {+ "sampledPoints": 19037,+ "hullVertices": 533,+ "hullFaces": 1062,+ "hullTriangles": 1062,+ "hullVolumeM3": 0.41342871361903366,+ "convexityRatio": 0.0934390925339191,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.41203823685646057,+ -0.5007315278053284,+ -0.42279016971588135+ ],+ "max": [+ 0.4113054573535919,+ 0.4992084503173828,+ 0.42288175225257874+ ],+ "size": [+ 0.8233436942100525,+ 0.9999399781227112,+ 0.8456719219684601+ ],+ "diagonal": 1.5469116969786394,+ "longestAxisMeters": 0.9999399781227112,+ "center": [+ -0.00036638975143432617,+ -0.0007615387439727783,+ 0.00004579126834869385+ ]+ }+ }+ },+ {+ "source": "forge",+ "label": "auto-rig",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/11491fd4-fb55-49ed-824d-2aabe2105a66.glb",+ "backend": null,+ "bytes": 14853380,+ "ms": 3588,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "non_manifold_edges",+ "inconsistent_winding",+ "scale_normalized"+ ],+ "warnings": [+ "skinned_geometry_graded_at_bind_pose"+ ],+ "geometry": {+ "triangles": 21702,+ "verticesRaw": 15622,+ "verticesWelded": 10853,+ "weldToleranceMeters": 0.000014236421643651894,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 1,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 21702,+ "degenerateTriangles": 0,+ "edges": 32552,+ "boundaryEdges": 0,+ "nonManifoldEdges": 1,+ "inconsistentWindingEdges": 2,+ "edgeManifold": false,+ "windingConsistent": false,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 1.0004511773586273,+ "sizeMeters": [+ 0.39288710057735443,+ 0.9335385262966156,+ 1.0004511773586273+ ],+ "centerOffsetMeters": [+ -0.0005507543683052063,+ 0.0017957240343093872,+ -0.0005742460489273071+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": true+ },+ "mass": {+ "volumeM3": 0.04009071389337194,+ "surfaceAreaM2": 1.3152618753331777,+ "centroid": [+ -0.00015137312799891423,+ -0.09520671134046559,+ 0.21793922423657253+ ],+ "inertiaUnitDensity": [+ 0.0024179727768274184,+ 6.036728339097452e-8,+ 2.1311135084907663e-7,+ 6.036728339098829e-8,+ 0.0011140679892760164,+ -0.0006507538943265968,+ 2.1311135084908976e-7,+ -0.0006507538943265969,+ 0.0017590717272757592+ ],+ "massAtWaterDensityKg": 40.09071389337194+ },+ "collision": {+ "sampledPoints": 10853,+ "hullVertices": 271,+ "hullFaces": 538,+ "hullTriangles": 538,+ "hullVolumeM3": 0.14835916767913426,+ "convexityRatio": 0.27022741176385306,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.19699430465698242,+ -0.4649735391139984,+ -0.500799834728241+ ],+ "max": [+ 0.195892795920372,+ 0.4685649871826172,+ 0.49965134263038635+ ],+ "size": [+ 0.39288710057735443,+ 0.9335385262966156,+ 1.0004511773586273+ ],+ "diagonal": 1.4236421643651893,+ "longestAxisMeters": 1.0004511773586273,+ "center": [+ -0.0005507543683052063,+ 0.0017957240343093872,+ -0.0005742460489273071+ ]+ }+ }+ },+ {+ "source": "forge",+ "label": "a realistic humanoid character in T-pose wea",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/ce919344-b5ce-49fd-ab0e-16113a061b81.glb",+ "backend": "hunyuan3d",+ "bytes": 4172344,+ "ms": 1603,+ "report": {+ "readable": true,+ "verdict": "needs_scale",+ "blockers": [+ "scale_normalized"+ ],+ "warnings": [],+ "geometry": {+ "triangles": 30000,+ "verticesRaw": 19438,+ "verticesWelded": 14996,+ "weldToleranceMeters": 0.000028007575486072043,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 30000,+ "degenerateTriangles": 0,+ "edges": 45000,+ "boundaryEdges": 0,+ "nonManifoldEdges": 0,+ "inconsistentWindingEdges": 0,+ "edgeManifold": true,+ "windingConsistent": true,+ "watertight": true+ },+ "scale": {+ "longestAxisMeters": 1.9916160106658936,+ "sizeMeters": [+ 1.9205259680747986,+ 1.9916160106658936,+ 0.43507300317287445+ ],+ "centerOffsetMeters": [+ -0.0018750131130218506,+ -0.0037890076637268066,+ -0.005814500153064728+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": true+ },+ "mass": {+ "volumeM3": 0.20323616926597418,+ "surfaceAreaM2": 3.45995334890176,+ "centroid": [+ -0.00441303372749844,+ 0.12434704508300191,+ -0.012971119231210786+ ],+ "inertiaUnitDensity": [+ 0.046050207824647964,+ -0.000047053416718305084,+ -0.000006729367647301614,+ -0.000047053416718305775,+ 0.010146149735602433,+ 0.0002117763456290641,+ -0.000006729367647301611,+ 0.00021177634562906405,+ 0.053349301238037+ ],+ "massAtWaterDensityKg": 203.23616926597418+ },+ "collision": {+ "sampledPoints": 14996,+ "hullVertices": 474,+ "hullFaces": 944,+ "hullTriangles": 944,+ "hullVolumeM3": 0.6853410087948905,+ "convexityRatio": 0.2965475094265064,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.9621379971504211,+ -0.9995970129966736,+ -0.22335100173950195+ ],+ "max": [+ 0.9583879709243774,+ 0.99201899766922,+ 0.2117220014333725+ ],+ "size": [+ 1.9205259680747986,+ 1.9916160106658936,+ 0.43507300317287445+ ],+ "diagonal": 2.800757548607204,+ "longestAxisMeters": 1.9916160106658936,+ "center": [+ -0.0018750131130218506,+ -0.0037890076637268066,+ -0.005814500153064728+ ]+ }+ }+ },+ {+ "source": "forge",+ "label": "a realistic humanoid character in T-pose wea",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/04c2b2ef-7a0e-4e72-967e-e6f7c1ea0053.glb",+ "backend": "trellis_selfhost",+ "bytes": 3510636,+ "ms": 1230,+ "report": {+ "readable": true,+ "verdict": "needs_scale",+ "blockers": [+ "scale_normalized"+ ],+ "warnings": [],+ "geometry": {+ "triangles": 16134,+ "verticesRaw": 10966,+ "verticesWelded": 8065,+ "weldToleranceMeters": 0.000014083849541711883,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 16134,+ "degenerateTriangles": 0,+ "edges": 24201,+ "boundaryEdges": 0,+ "nonManifoldEdges": 0,+ "inconsistentWindingEdges": 0,+ "edgeManifold": true,+ "windingConsistent": true,+ "watertight": true+ },+ "scale": {+ "longestAxisMeters": 0.9985482096672058,+ "sizeMeters": [+ 0.9723859429359436,+ 0.9985482096672058,+ 0.2022751346230507+ ],+ "centerOffsetMeters": [+ -0.0003787875175476074,+ 0.0006689727306365967,+ 0.0011272914707660675+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": true+ },+ "mass": {+ "volumeM3": 0.022063633862363475,+ "surfaceAreaM2": 0.8015544610225089,+ "centroid": [+ -0.00007160916837903257,+ 0.07338051354976195,+ -0.007959014775367474+ ],+ "inertiaUnitDensity": [+ 0.0012834373702766716,+ -0.00000174668984139184,+ -2.3213357176872737e-8,+ -0.0000017466898413918858,+ 0.00025080168412934404,+ -0.000007386629315822466,+ -2.3213357176874325e-8,+ -0.000007386629315822457,+ 0.0014657461625973785+ ],+ "massAtWaterDensityKg": 22.063633862363474+ },+ "collision": {+ "sampledPoints": 8065,+ "hullVertices": 317,+ "hullFaces": 630,+ "hullTriangles": 630,+ "hullVolumeM3": 0.08208575909888649,+ "convexityRatio": 0.2687875961015846,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.4865717589855194,+ -0.4986051321029663,+ -0.10001027584075928+ ],+ "max": [+ 0.4858141839504242,+ 0.4999430775642395,+ 0.10226485878229141+ ],+ "size": [+ 0.9723859429359436,+ 0.9985482096672058,+ 0.2022751346230507+ ],+ "diagonal": 1.4083849541711881,+ "longestAxisMeters": 0.9985482096672058,+ "center": [+ -0.0003787875175476074,+ 0.0006689727306365967,+ 0.0011272914707660675+ ]+ }+ }+ },+ {+ "source": "forge",+ "label": "a realistic humanoid character in T-pose wea",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/80be4125-1812-43ac-b4b0-b32c185822e0.glb",+ "backend": "trellis_selfhost",+ "bytes": 3656964,+ "ms": 1131,+ "report": {+ "readable": true,+ "verdict": "needs_scale",+ "blockers": [+ "scale_normalized"+ ],+ "warnings": [],+ "geometry": {+ "triangles": 17760,+ "verticesRaw": 12006,+ "verticesWelded": 8878,+ "weldToleranceMeters": 0.000013217812269441045,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 17760,+ "degenerateTriangles": 0,+ "edges": 26640,+ "boundaryEdges": 0,+ "nonManifoldEdges": 0,+ "inconsistentWindingEdges": 0,+ "edgeManifold": true,+ "windingConsistent": true,+ "watertight": true+ },+ "scale": {+ "longestAxisMeters": 0.9993968307971954,+ "sizeMeters": [+ 0.7947954833507538,+ 0.9993968307971954,+ 0.34148459136486053+ ],+ "centerOffsetMeters": [+ -0.004462108016014099,+ 0.0001058727502822876,+ -0.011106587946414948+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": true+ },+ "mass": {+ "volumeM3": 0.02169833665441754,+ "surfaceAreaM2": 0.827028932853354,+ "centroid": [+ 0.04943565813345357,+ 0.07065567018029931,+ -0.07503791909275263+ ],+ "inertiaUnitDensity": [+ 0.0013187536779258767,+ 0.000042647365755323164,+ 0.00002028906627400795,+ 0.00004264736575532314,+ 0.00023992170701607344,+ -0.0000505170955896378,+ 0.00002028906627400795,+ -0.00005051709558963781,+ 0.0014698172600707596+ ],+ "massAtWaterDensityKg": 21.69833665441754+ },+ "collision": {+ "sampledPoints": 8878,+ "hullVertices": 317,+ "hullFaces": 630,+ "hullTriangles": 630,+ "hullVolumeM3": 0.103273648560811,+ "convexityRatio": 0.2101052587644449,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.401859849691391,+ -0.49959254264831543,+ -0.18184888362884521+ ],+ "max": [+ 0.3929356336593628,+ 0.49980428814888,+ 0.15963570773601532+ ],+ "size": [+ 0.7947954833507538,+ 0.9993968307971954,+ 0.34148459136486053+ ],+ "diagonal": 1.3217812269441045,+ "longestAxisMeters": 0.9993968307971954,+ "center": [+ -0.004462108016014099,+ 0.0001058727502822876,+ -0.011106587946414948+ ]+ }+ }+ },+ {+ "source": "forge",+ "label": "a realistic humanoid character in T-pose wea",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/2aef00ab-aa93-4d5d-8fa4-3aa36c1a832b.glb",+ "backend": "huggingface",+ "bytes": 1202684,+ "ms": 3015,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "open_surface",+ "inconsistent_winding"+ ],+ "warnings": [+ "degenerate_triangles"+ ],+ "geometry": {+ "triangles": 85718,+ "verticesRaw": 42957,+ "verticesWelded": 42863,+ "weldToleranceMeters": 0.000014355400638204238,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 85718,+ "degenerateTriangles": 24,+ "edges": 128580,+ "boundaryEdges": 12,+ "nonManifoldEdges": 3,+ "inconsistentWindingEdges": 6,+ "edgeManifold": false,+ "windingConsistent": false,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 1.01720130443573,+ "sizeMeters": [+ 1.01720130443573,+ 0.9941473007202148,+ 0.1942882537841797+ ],+ "centerOffsetMeters": [+ 0.002727687358856201,+ -0.010780572891235352,+ -0.10786545276641846+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": false+ },+ "mass": {+ "volumeM3": 0.04844610599622415,+ "surfaceAreaM2": 2.089185606313575,+ "centroid": [+ -0.002276891291288959,+ -0.025003775185755594,+ -0.11107716484417651+ ],+ "inertiaUnitDensity": [+ 0.003266852022710362,+ 0.000044430700153494616,+ -0.00011759765714052143,+ 0.00004443070015349462,+ 0.003316359265041771,+ 0.0001405819609268985,+ -0.00011759765714052152,+ 0.00014058196092689846,+ 0.0065160278577944646+ ],+ "massAtWaterDensityKg": 48.44610599622415+ },+ "collision": {+ "sampledPoints": 14288,+ "hullVertices": 593,+ "hullFaces": 1182,+ "hullTriangles": 1182,+ "hullVolumeM3": 0.08704576825048121,+ "convexityRatio": 0.5565590030386839,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.5058729648590088,+ -0.5078542232513428,+ -0.2050095796585083+ ],+ "max": [+ 0.5113283395767212,+ 0.48629307746887207,+ -0.010721325874328613+ ],+ "size": [+ 1.01720130443573,+ 0.9941473007202148,+ 0.1942882537841797+ ],+ "diagonal": 1.4355400638204237,+ "longestAxisMeters": 1.01720130443573,+ "center": [+ 0.002727687358856201,+ -0.010780572891235352,+ -0.10786545276641846+ ]+ }+ }+ },+ {+ "source": "forge",+ "label": "a realistic humanoid character in T-pose wea",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/e36ff16e-4143-4038-be25-2fe4405cacec.glb",+ "backend": "huggingface",+ "bytes": 1202684,+ "ms": 3548,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "open_surface",+ "inconsistent_winding"+ ],+ "warnings": [+ "degenerate_triangles"+ ],+ "geometry": {+ "triangles": 85718,+ "verticesRaw": 42957,+ "verticesWelded": 42863,+ "weldToleranceMeters": 0.000014355400638204238,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 85718,+ "degenerateTriangles": 24,+ "edges": 128580,+ "boundaryEdges": 12,+ "nonManifoldEdges": 3,+ "inconsistentWindingEdges": 6,+ "edgeManifold": false,+ "windingConsistent": false,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 1.01720130443573,+ "sizeMeters": [+ 1.01720130443573,+ 0.9941473007202148,+ 0.1942882537841797+ ],+ "centerOffsetMeters": [+ 0.002727687358856201,+ -0.010780572891235352,+ -0.10786545276641846+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": false+ },+ "mass": {+ "volumeM3": 0.04844610599622415,+ "surfaceAreaM2": 2.089185606313575,+ "centroid": [+ -0.002276891291288959,+ -0.025003775185755594,+ -0.11107716484417651+ ],+ "inertiaUnitDensity": [+ 0.003266852022710362,+ 0.000044430700153494616,+ -0.00011759765714052143,+ 0.00004443070015349462,+ 0.003316359265041771,+ 0.0001405819609268985,+ -0.00011759765714052152,+ 0.00014058196092689846,+ 0.0065160278577944646+ ],+ "massAtWaterDensityKg": 48.44610599622415+ },+ "collision": {+ "sampledPoints": 14288,+ "hullVertices": 593,+ "hullFaces": 1182,+ "hullTriangles": 1182,+ "hullVolumeM3": 0.08704576825048121,+ "convexityRatio": 0.5565590030386839,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.5058729648590088,+ -0.5078542232513428,+ -0.2050095796585083+ ],+ "max": [+ 0.5113283395767212,+ 0.48629307746887207,+ -0.010721325874328613+ ],+ "size": [+ 1.01720130443573,+ 0.9941473007202148,+ 0.1942882537841797+ ],+ "diagonal": 1.4355400638204237,+ "longestAxisMeters": 1.01720130443573,+ "center": [+ 0.002727687358856201,+ -0.010780572891235352,+ -0.10786545276641846+ ]+ }+ }+ },+ {+ "source": "authored",+ "label": "Adjustable Wrench",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/objects/polyhaven/glb/adjustable_wrench.glb",+ "backend": "polyhaven",+ "bytes": 2639744,+ "ms": 590,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "open_surface"+ ],+ "warnings": [+ "degenerate_triangles"+ ],+ "geometry": {+ "triangles": 5388,+ "verticesRaw": 4913,+ "verticesWelded": 2868,+ "weldToleranceMeters": 0.0000026493189339955324,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 5388,+ "degenerateTriangles": 2,+ "edges": 8246,+ "boundaryEdges": 328,+ "nonManifoldEdges": 0,+ "inconsistentWindingEdges": 0,+ "edgeManifold": false,+ "windingConsistent": true,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 0.2541303038597107,+ "sizeMeters": [+ 0.06834418512880802,+ 0.2541303038597107,+ 0.030590344220399857+ ],+ "centerOffsetMeters": [+ -0.018500215373933315,+ 0.07839477062225342,+ -9.145587682723999e-7+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": false+ },+ "mass": {+ "volumeM3": 0.0001474978037720523,+ "surfaceAreaM2": 0.04421047251354452,+ "centroid": [+ -0.010281823474384433,+ 0.09066107565692319,+ 0.00000112213508821256+ ],+ "inertiaUnitDensity": [+ 7.907855176986404e-7,+ 9.154672498855153e-8,+ -1.7344197798257374e-11,+ 9.154672498855148e-8,+ 4.223406628236289e-8,+ 1.3531522335585428e-10,+ -1.734419779825709e-11,+ 1.3531522335585588e-10,+ 8.239797389812047e-7+ ],+ "massAtWaterDensityKg": 0.1474978037720523+ },+ "collision": {+ "sampledPoints": 2868,+ "hullVertices": 369,+ "hullFaces": 734,+ "hullTriangles": 734,+ "hullVolumeM3": 0.00028133919833095135,+ "convexityRatio": 0.5242703634867982,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.052672307938337326,+ -0.04867038130760193,+ -0.0152960866689682+ ],+ "max": [+ 0.015671877190470695,+ 0.20545992255210876,+ 0.015294257551431656+ ],+ "size": [+ 0.06834418512880802,+ 0.2541303038597107,+ 0.030590344220399857+ ],+ "diagonal": 0.2649318933995532,+ "longestAxisMeters": 0.2541303038597107,+ "center": [+ -0.018500215373933315,+ 0.07839477062225342,+ -9.145587682723999e-7+ ]+ }+ }+ },+ {+ "source": "authored",+ "label": "Alarm Clock 01",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/objects/polyhaven/glb/alarm_clock_01.glb",+ "backend": "polyhaven",+ "bytes": 3016476,+ "ms": 646,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "open_surface"+ ],+ "warnings": [],+ "geometry": {+ "triangles": 8985,+ "verticesRaw": 7203,+ "verticesWelded": 4957,+ "weldToleranceMeters": 0.0000022829222746850547,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 8985,+ "degenerateTriangles": 0,+ "edges": 13919,+ "boundaryEdges": 883,+ "nonManifoldEdges": 0,+ "inconsistentWindingEdges": 0,+ "edgeManifold": false,+ "windingConsistent": true,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 0.17415538430213928,+ "sizeMeters": [+ 0.13165056705474854,+ 0.17415538430213928,+ 0.06674856878817081+ ],+ "centerOffsetMeters": [+ 0,+ 0.08584989607334137,+ 0.009131590835750103+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": false+ },+ "mass": {+ "volumeM3": 0.0008071186822375233,+ "surfaceAreaM2": 0.10107866065020331,+ "centroid": [+ -0.000012574905959430622,+ 0.06326209821941903,+ 0.010388194012389287+ ],+ "inertiaUnitDensity": [+ 0.0000010919395085807036,+ 2.1901995553991148e-10,+ 7.855739493702245e-11,+ 2.1901995553992171e-10,+ 9.73241730165423e-7,+ 2.0262414369891737e-8,+ 7.855739493702021e-11,+ 2.026241436989163e-8,+ 0.0000016455492648646683+ ],+ "massAtWaterDensityKg": 0.8071186822375234+ },+ "collision": {+ "sampledPoints": 4957,+ "hullVertices": 538,+ "hullFaces": 1072,+ "hullTriangles": 1072,+ "hullVolumeM3": 0.0010457479524025634,+ "convexityRatio": 0.7718099570582003,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.06582528352737427,+ -0.0012277960777282715,+ -0.024242693558335304+ ],+ "max": [+ 0.06582528352737427,+ 0.172927588224411,+ 0.04250587522983551+ ],+ "size": [+ 0.13165056705474854,+ 0.17415538430213928,+ 0.06674856878817081+ ],+ "diagonal": 0.22829222746850544,+ "longestAxisMeters": 0.17415538430213928,+ "center": [+ 0,+ 0.08584989607334137,+ 0.009131590835750103+ ]+ }+ }+ },+ {+ "source": "authored",+ "label": "All Purpose Cleaner",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/objects/polyhaven/glb/all_purpose_cleaner.glb",+ "backend": "polyhaven",+ "bytes": 1053708,+ "ms": 184,+ "report": {+ "readable": true,+ "verdict": "simulation_ready",+ "blockers": [],+ "warnings": [],+ "geometry": {+ "triangles": 4624,+ "verticesRaw": 2796,+ "verticesWelded": 2314,+ "weldToleranceMeters": 0.0000037497581776527586,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 4624,+ "degenerateTriangles": 0,+ "edges": 6936,+ "boundaryEdges": 0,+ "nonManifoldEdges": 0,+ "inconsistentWindingEdges": 0,+ "edgeManifold": true,+ "windingConsistent": true,+ "watertight": true+ },+ "scale": {+ "longestAxisMeters": 0.3197317017838941,+ "sizeMeters": [+ 0.1568227931857109,+ 0.3197317017838941,+ 0.11741002649068832+ ],+ "centerOffsetMeters": [+ 0.0028396882116794586,+ 0.15995094707977842,+ 3.725290298461914e-9+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": false+ },+ "mass": {+ "volumeM3": 0.0029824756256997794,+ "surfaceAreaM2": 0.1367133728830866,+ "centroid": [+ -0.007197116013625801,+ 0.12239169305464276,+ 0.0000106480444135792+ ],+ "inertiaUnitDensity": [+ 0.000019644932203776876,+ 0.0000017276616680829341,+ -1.1003202994900542e-9,+ 0.0000017276616680829341,+ 0.000006085132851961549,+ 9.94595804906218e-10,+ -1.1003202994900474e-9,+ 9.945958049062474e-10,+ 0.000021494090198781435+ ],+ "massAtWaterDensityKg": 2.9824756256997795+ },+ "collision": {+ "sampledPoints": 2314,+ "hullVertices": 680,+ "hullFaces": 1356,+ "hullTriangles": 1356,+ "hullVolumeM3": 0.0033202929339595537,+ "convexityRatio": 0.8982567758390774,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.075571708381176,+ 0.0000850961878313683,+ -0.058705009520053864+ ],+ "max": [+ 0.08125108480453491,+ 0.31981679797172546,+ 0.05870501697063446+ ],+ "size": [+ 0.1568227931857109,+ 0.3197317017838941,+ 0.11741002649068832+ ],+ "diagonal": 0.37497581776527583,+ "longestAxisMeters": 0.3197317017838941,+ "center": [+ 0.0028396882116794586,+ 0.15995094707977842,+ 3.725290298461914e-9+ ]+ }+ }+ },+ {+ "source": "authored",+ "label": "American Football",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/objects/polyhaven/glb/american_football.glb",+ "backend": "polyhaven",+ "bytes": 2669212,+ "ms": 320,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "non_manifold_edges",+ "inconsistent_winding"+ ],+ "warnings": [],+ "geometry": {+ "triangles": 4480,+ "verticesRaw": 3541,+ "verticesWelded": 2246,+ "weldToleranceMeters": 0.000005799638707696865,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 4480,+ "degenerateTriangles": 0,+ "edges": 6705,+ "boundaryEdges": 0,+ "nonManifoldEdges": 28,+ "inconsistentWindingEdges": 30,+ "edgeManifold": false,+ "windingConsistent": false,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 0.45326216518878937,+ "sizeMeters": [+ 0.45326216518878937,+ 0.25584322214126587,+ 0.2558432072401047+ ],+ "centerOffsetMeters": [+ 0.0008043423295021057,+ -0.0014834105968475342,+ -0.002032242715358734+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": false+ },+ "mass": {+ "volumeM3": 0.01369491932210008,+ "surfaceAreaM2": 0.3019525131079712,+ "centroid": [+ 0.0008045844503232618,+ -0.001418685622738239,+ -0.0019443302578142658+ ],+ "inertiaUnitDensity": [+ 0.00008617648067354636,+ 1.8344834403021347e-7,+ 1.8427765563272098e-7,+ 1.834483440302139e-7,+ 0.0001621184033732884,+ -8.701695445582742e-8,+ 1.8427765563272098e-7,+ -8.701695445582747e-8,+ 0.00016206439625681633+ ],+ "massAtWaterDensityKg": 13.69491932210008+ },+ "collision": {+ "sampledPoints": 2246,+ "hullVertices": 575,+ "hullFaces": 1146,+ "hullTriangles": 1146,+ "hullVolumeM3": 0.013720329181378785,+ "convexityRatio": 0.9981480138746823,+ "convexEnough": true+ },+ "bounds": {+ "min": [+ -0.22582674026489258,+ -0.12940502166748047,+ -0.12995384633541107+ ],+ "max": [+ 0.2274354249238968,+ 0.1264382004737854,+ 0.1258893609046936+ ],+ "size": [+ 0.45326216518878937,+ 0.25584322214126587,+ 0.2558432072401047+ ],+ "diagonal": 0.5799638707696865,+ "longestAxisMeters": 0.45326216518878937,+ "center": [+ 0.0008043423295021057,+ -0.0014834105968475342,+ -0.002032242715358734+ ]+ }+ }+ },+ {+ "source": "authored",+ "label": "Ammo Box",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/objects/polyhaven/glb/ammo_box.glb",+ "backend": "polyhaven",+ "bytes": 1468700,+ "ms": 313,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "open_surface"+ ],+ "warnings": [],+ "geometry": {+ "triangles": 4382,+ "verticesRaw": 3978,+ "verticesWelded": 2237,+ "weldToleranceMeters": 0.0000032479621112697173,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 4382,+ "degenerateTriangles": 0,+ "edges": 6613,+ "boundaryEdges": 80,+ "nonManifoldEdges": 0,+ "inconsistentWindingEdges": 0,+ "edgeManifold": false,+ "windingConsistent": true,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 0.2578783482313156,+ "sizeMeters": [+ 0.08656343817710876,+ 0.17747706174850464,+ 0.2578783482313156+ ],+ "centerOffsetMeters": [+ 3.725290298461914e-8,+ 0.08873853087425232,+ 0.00017645210027694702+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": false+ },+ "mass": {+ "volumeM3": 0.003218011603003347,+ "surfaceAreaM2": 0.23984456854799904,+ "centroid": [+ -1.020128095199531e-7,+ 0.08144851441727095,+ -0.0016743967800885923+ ],+ "inertiaUnitDensity": [+ 0.000022734517628128548,+ 3.7537634549836955e-11,+ 2.5208262160005938e-11,+ 3.753763454987997e-11,+ 0.00001787262411848991,+ 2.004882861876342e-7,+ 2.520826215972374e-11,+ 2.004882861876341e-7,+ 0.00000828736671007936+ ],+ "massAtWaterDensityKg": 3.218011603003347+ },+ "collision": {+ "sampledPoints": 2237,+ "hullVertices": 206,+ "hullFaces": 408,+ "hullTriangles": 408,+ "hullVolumeM3": 0.003396617183536071,+ "convexityRatio": 0.9474166292867937,+ "convexEnough": true+ },+ "bounds": {+ "min": [+ -0.0432816818356514,+ 0,+ -0.12876272201538086+ ],+ "max": [+ 0.04328175634145737,+ 0.17747706174850464,+ 0.12911562621593475+ ],+ "size": [+ 0.08656343817710876,+ 0.17747706174850464,+ 0.2578783482313156+ ],+ "diagonal": 0.3247962111269717,+ "longestAxisMeters": 0.2578783482313156,+ "center": [+ 3.725290298461914e-8,+ 0.08873853087425232,+ 0.00017645210027694702+ ]+ }+ }+ },+ {+ "source": "authored",+ "label": "Anthurium Botany 01",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/objects/polyhaven/glb/anthurium_botany_01.glb",+ "backend": "polyhaven",+ "bytes": 3235240,+ "ms": 1654,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "open_surface"+ ],+ "warnings": [+ "degenerate_triangles"+ ],+ "geometry": {+ "triangles": 67144,+ "verticesRaw": 41917,+ "verticesWelded": 36487,+ "weldToleranceMeters": 0.000033614874635504234,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 67144,+ "degenerateTriangles": 8,+ "edges": 103588,+ "boundaryEdges": 5744,+ "nonManifoldEdges": 0,+ "inconsistentWindingEdges": 0,+ "edgeManifold": false,+ "windingConsistent": true,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 2.7960692942142487,+ "sizeMeters": [+ 2.7960692942142487,+ 0.4996843384578824,+ 1.7977513819932938+ ],+ "centerOffsetMeters": [+ -0.0219527930021286,+ 0.23950317269191146,+ -0.24713466316461563+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": false+ },+ "mass": {+ "volumeM3": 0.07446771019727538,+ "surfaceAreaM2": 1.5030684110892987,+ "centroid": [+ -0.48864118094371944,+ 0.22481720671565833,+ -0.07574048327155496+ ],+ "inertiaUnitDensity": [+ 0.005807922984100718,+ 0.000011694742707403852,+ 0.00024106201069800607,+ 0.000011694742707407321,+ 0.015095745915900174,+ -0.00043223901505706145,+ 0.00024106201069800607,+ -0.000432239015057061,+ 0.011062985431285477+ ],+ "massAtWaterDensityKg": 74.46771019727538+ },+ "collision": {+ "sampledPoints": 18244,+ "hullVertices": 89,+ "hullFaces": 174,+ "hullTriangles": 174,+ "hullVolumeM3": 1.3082693869702702,+ "convexityRatio": 0.056920777126590084,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -1.419987440109253,+ -0.010338996537029743,+ -1.1460103541612625+ ],+ "max": [+ 1.3760818541049957,+ 0.48934534192085266,+ 0.6517410278320312+ ],+ "size": [+ 2.7960692942142487,+ 0.4996843384578824,+ 1.7977513819932938+ ],+ "diagonal": 3.3614874635504233,+ "longestAxisMeters": 2.7960692942142487,+ "center": [+ -0.0219527930021286,+ 0.23950317269191146,+ -0.24713466316461563+ ]+ }+ }+ },+ {+ "source": "authored",+ "label": "Antique Ceramic Vase 01",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/objects/polyhaven/glb/antique_ceramic_vase_01.glb",+ "backend": "polyhaven",+ "bytes": 524976,+ "ms": 1551,+ "report": {+ "readable": true,+ "verdict": "simulation_ready",+ "blockers": [],+ "warnings": [],+ "geometry": {+ "triangles": 9408,+ "verticesRaw": 5024,+ "verticesWelded": 4706,+ "weldToleranceMeters": 0.000005685837158480044,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 9408,+ "degenerateTriangles": 0,+ "edges": 14112,+ "boundaryEdges": 0,+ "nonManifoldEdges": 0,+ "inconsistentWindingEdges": 0,+ "edgeManifold": true,+ "windingConsistent": true,+ "watertight": true+ },+ "scale": {+ "longestAxisMeters": 0.439553053722193,+ "sizeMeters": [+ 0.25502996146678925,+ 0.439553053722193,+ 0.25502994656562805+ ],+ "centerOffsetMeters": [+ -7.450580596923828e-9,+ 0.2196584485245694,+ 0+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": false+ },+ "mass": {+ "volumeM3": 0.004077901788642884,+ "surfaceAreaM2": 0.6196940488177604,+ "centroid": [+ -8.699478013226986e-9,+ 0.2015676821766266,+ 1.8808628058899535e-8+ ],+ "inertiaUnitDensity": [+ 0.00007850484841153079,+ 2.852594761629978e-12,+ 8.362079951613312e-13,+ 2.8525947549529753e-12,+ 0.000044475202514095144,+ 1.3508285736518233e-11,+ 8.362079943126826e-13,+ 1.350828573670347e-11,+ 0.00007850484876278921+ ],+ "massAtWaterDensityKg": 4.077901788642884+ },+ "collision": {+ "sampledPoints": 4706,+ "hullVertices": 912,+ "hullFaces": 1820,+ "hullTriangles": 1820,+ "hullVolumeM3": 0.01797796761911845,+ "convexityRatio": 0.2268277413241244,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.12751498818397522,+ -0.00011807833652710542,+ -0.12751497328281403+ ],+ "max": [+ 0.12751497328281403,+ 0.4394349753856659,+ 0.12751497328281403+ ],+ "size": [+ 0.25502996146678925,+ 0.439553053722193,+ 0.25502994656562805+ ],+ "diagonal": 0.5685837158480044,+ "longestAxisMeters": 0.439553053722193,+ "center": [+ -7.450580596923828e-9,+ 0.2196584485245694,+ 0+ ]+ }+ }+ },+ {+ "source": "authored",+ "label": "Antique Estoc",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/objects/polyhaven/glb/antique_estoc.glb",+ "backend": "polyhaven",+ "bytes": 2527020,+ "ms": 919,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "open_surface"+ ],+ "warnings": [],+ "geometry": {+ "triangles": 8246,+ "verticesRaw": 5537,+ "verticesWelded": 4332,+ "weldToleranceMeters": 0.000015451386272770644,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 8246,+ "degenerateTriangles": 0,+ "edges": 12543,+ "boundaryEdges": 348,+ "nonManifoldEdges": 0,+ "inconsistentWindingEdges": 0,+ "edgeManifold": false,+ "windingConsistent": true,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 1.4923796574105361,+ "sizeMeters": [+ 0.3715190589427948,+ 1.4923796574105361,+ 0.14909703046379125+ ],+ "centerOffsetMeters": [+ -0.0000635981559753418,+ 0.5468716010748657,+ -0.0007292944590871972+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": false+ },+ "mass": {+ "volumeM3": 0.0009969741567205075,+ "surfaceAreaM2": 0.17343776723493148,+ "centroid": [+ 0.00020732124701777516,+ 0.2163727559438183,+ 0.0001327110918933918+ ],+ "inertiaUnitDensity": [+ 0.0001290195426160437,+ 6.659548619693372e-8,+ 5.629234147153942e-7,+ 6.659548619693267e-8,+ 0.0000026663364449176525,+ -3.1388714803006733e-7,+ 5.62923414715394e-7,+ -3.1388714803006733e-7,+ 0.00013120699484860866+ ],+ "massAtWaterDensityKg": 0.9969741567205075+ },+ "collision": {+ "sampledPoints": 4332,+ "hullVertices": 172,+ "hullFaces": 340,+ "hullTriangles": 340,+ "hullVolumeM3": 0.014472174999393416,+ "convexityRatio": 0.06888903407831197,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.18582312762737274,+ -0.19931822763040236,+ -0.07527780969098281+ ],+ "max": [+ 0.18569593131542206,+ 1.2930614297801337,+ 0.07381922077280842+ ],+ "size": [+ 0.3715190589427948,+ 1.4923796574105361,+ 0.14909703046379125+ ],+ "diagonal": 1.5451386272770642,+ "longestAxisMeters": 1.4923796574105361,+ "center": [+ -0.0000635981559753418,+ 0.5468716010748657,+ -0.0007292944590871972+ ]+ }+ }+ },+ {+ "source": "authored",+ "label": "Antique Katana 01",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/objects/polyhaven/glb/antique_katana_01.glb",+ "backend": "polyhaven",+ "bytes": 646112,+ "ms": 676,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "open_surface",+ "inconsistent_winding"+ ],+ "warnings": [],+ "geometry": {+ "triangles": 6670,+ "verticesRaw": 5685,+ "verticesWelded": 3550,+ "weldToleranceMeters": 0.000010115993148172234,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 6670,+ "degenerateTriangles": 0,+ "edges": 10259,+ "boundaryEdges": 664,+ "nonManifoldEdges": 156,+ "inconsistentWindingEdges": 156,+ "edgeManifold": false,+ "windingConsistent": false,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 1.0029437839984894,+ "sizeMeters": [+ 0.09337274730205536,+ 1.0029437839984894,+ 0.09337274730205536+ ],+ "centerOffsetMeters": [+ 0,+ 0.1948481649160385,+ 0+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": false+ },+ "mass": {+ "volumeM3": 0.00033756013647489105,+ "surfaceAreaM2": 0.10607014934602063,+ "centroid": [+ 0.0060009748033603184,+ -0.02927928944095236,+ 3.749287472122806e-9+ ],+ "inertiaUnitDensity": [+ 0.00001661915631380835,+ 1.0993567294212305e-8,+ -8.78229285549824e-14,+ 1.099356729421247e-8,+ 7.074622601915289e-8,+ -7.969562451604651e-14,+ -8.782292855462537e-14,+ -7.969562451253806e-14,+ 0.000016654893507383187+ ],+ "massAtWaterDensityKg": 0.337560136474891+ },+ "collision": {+ "sampledPoints": 3550,+ "hullVertices": 175,+ "hullFaces": 346,+ "hullTriangles": 346,+ "hullVolumeM3": 0.0027808421519321933,+ "convexityRatio": 0.12138773725087074,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.04668637365102768,+ -0.3066237270832062,+ -0.04668637365102768+ ],+ "max": [+ 0.04668637365102768,+ 0.6963200569152832,+ 0.04668637365102768+ ],+ "size": [+ 0.09337274730205536,+ 1.0029437839984894,+ 0.09337274730205536+ ],+ "diagonal": 1.0115993148172233,+ "longestAxisMeters": 1.0029437839984894,+ "center": [+ 0,+ 0.1948481649160385,+ 0+ ]+ }+ }+ },+ {+ "source": "authored",+ "label": "Arm Chair 01",+ "url": "https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/objects/polyhaven/glb/ArmChair_01.glb",+ "backend": "polyhaven",+ "bytes": 768216,+ "ms": 234,+ "report": {+ "readable": true,+ "verdict": "needs_repair",+ "blockers": [+ "open_surface",+ "inconsistent_winding"+ ],+ "warnings": [+ "degenerate_triangles"+ ],+ "geometry": {+ "triangles": 5625,+ "verticesRaw": 3758,+ "verticesWelded": 3087,+ "weldToleranceMeters": 0.000015622533280314053,+ "skippedPrimitives": 0,+ "skinnedPrimitives": 0,+ "generator": "glTF-Transform v4.4.0"+ },+ "topology": {+ "triangles": 5625,+ "degenerateTriangles": 1,+ "edges": 8719,+ "boundaryEdges": 564,+ "nonManifoldEdges": 1,+ "inconsistentWindingEdges": 1,+ "edgeManifold": false,+ "windingConsistent": false,+ "watertight": false+ },+ "scale": {+ "longestAxisMeters": 1.065087635157397,+ "sizeMeters": [+ 0.8484309017658234,+ 1.065087635157397,+ 0.7657602727413177+ ],+ "centerOffsetMeters": [+ 1.4901161193847656e-8,+ 0.5321123208414065,+ -0.03442646563053131+ ],+ "withinPhysicalWindow": true,+ "normalizedGuess": false+ },+ "mass": {+ "volumeM3": 0.2185980132934408,+ "surfaceAreaM2": 2.9829535244534875,+ "centroid": [+ 0.0021823004792611974,+ 0.3853672220468065,+ -0.057763831977067456+ ],+ "inertiaUnitDensity": [+ 0.0174508909087314,+ -0.000026871001402100882,+ -0.000002926109118668669,+ -0.000026871001402101018,+ 0.019685705166092554,+ 0.0038250735074752155,+ -0.000002926109118668808,+ 0.0038250735074752164,+ 0.018283426901990425+ ],+ "massAtWaterDensityKg": 218.5980132934408+ },+ "collision": {+ "sampledPoints": 3087,+ "hullVertices": 218,+ "hullFaces": 432,+ "hullTriangles": 432,+ "hullVolumeM3": 0.4527275519825416,+ "convexityRatio": 0.48284671948101476,+ "convexEnough": false+ },+ "bounds": {+ "min": [+ -0.4242154359817505,+ -0.0004314967372920364,+ -0.4173066020011902+ ],+ "max": [+ 0.4242154657840729,+ 1.064656138420105,+ 0.34845367074012756+ ],+ "size": [+ 0.8484309017658234,+ 1.065087635157397,+ 0.7657602727413177+ ],+ "diagonal": 1.5622533280314053,+ "longestAxisMeters": 1.065087635157397,+ "center": [+ 1.4901161193847656e-8,+ 0.5321123208414065,+ -0.03442646563053131+ ]+ }+ }+ }+ ]+}diff --git a/tests/sim-readiness.test.js b/tests/sim-readiness.test.jsnew file mode 100644index 000000000..4f3e17283--- /dev/null+++ b/tests/sim-readiness.test.js@@ -0,0 +1,115 @@+import { describe, it, expect } from 'vitest';+import { Document, NodeIO } from '@gltf-transform/core';+import { gradeSimReadiness } from '../api/_lib/sim-readiness.js';++// Solids with analytically known mass properties, authored in-process so the+// expected values are derived from the shape's closed form rather than from a+// previous run of this same code. A cube of side s at unit density has+// V = s³, m = s³, and I_xx = I_yy = I_zz = m·(s² + s²)/12 = s⁵/6.+function cubeMesh(size, { open = false, flipOneTriangle = false } = {}) {+ const h = size / 2;+ const positions = [+ -h, -h, -h, h, -h, -h, h, h, -h, -h, h, -h,+ -h, -h, h, h, -h, h, h, h, h, -h, h, h,+ ];+ const faces = [+ [0, 2, 1], [0, 3, 2], // -Z+ [4, 5, 6], [4, 6, 7], // +Z+ [0, 1, 5], [0, 5, 4], // -Y+ [3, 7, 6], [3, 6, 2], // +Y+ [0, 4, 7], [0, 7, 3], // -X+ [1, 2, 6], [1, 6, 5], // +X+ ];+ if (open) faces.splice(0, 2);+ const indices = faces.flat();+ if (flipOneTriangle) {+ const [a, b, c] = indices.slice(0, 3);+ indices.splice(0, 3, a, c, b);+ }+ return { positions, indices };+}++async function glbFrom({ positions, indices }, { scaleNode = null } = {}) {+ const doc = new Document();+ const buffer = doc.createBuffer();+ const position = doc.createAccessor()+ .setType('VEC3')+ .setArray(new Float32Array(positions))+ .setBuffer(buffer);+ const index = doc.createAccessor()+ .setType('SCALAR')+ .setArray(new Uint16Array(indices))+ .setBuffer(buffer);+ const prim = doc.createPrimitive().setAttribute('POSITION', position).setIndices(index);+ const mesh = doc.createMesh('solid').addPrimitive(prim);+ const node = doc.createNode('solid').setMesh(mesh);+ if (scaleNode) node.setScale(scaleNode);+ doc.createScene('scene').addChild(node);+ return Buffer.from(await new NodeIO().writeBinary(doc));+}++describe('gradeSimReadiness', () => {+ it('grades a closed cube as simulation ready with exact mass properties', async () => {+ const report = await gradeSimReadiness(await glbFrom(cubeMesh(0.4)));++ expect(report.readable).toBe(true);+ expect(report.verdict).toBe('simulation_ready');+ expect(report.blockers).toEqual([]);+ expect(report.topology.watertight).toBe(true);+ expect(report.topology.boundaryEdges).toBe(0);+ expect(report.topology.nonManifoldEdges).toBe(0);+ expect(report.topology.inconsistentWindingEdges).toBe(0);++ // V = 0.4³ = 0.064 m³, and I = s⁵/6 = 0.01024/6 at unit density. glTF+ // stores POSITION as float32, so the achievable agreement with the closed+ // form is ~1e-7 relative, which is what these assert.+ expect(report.mass.volumeM3 / 0.064 - 1).toBeCloseTo(0, 6);+ expect(report.mass.massAtWaterDensityKg / 64 - 1).toBeCloseTo(0, 6);+ expect(report.mass.centroid[0]).toBeCloseTo(0, 7);+ const [ixx, ixy, , , iyy] = report.mass.inertiaUnitDensity;+ expect(ixx / (0.4 ** 5 / 6) - 1).toBeCloseTo(0, 6);+ expect(iyy / (0.4 ** 5 / 6) - 1).toBeCloseTo(0, 6);+ expect(ixy).toBeCloseTo(0, 9);++ // A cube is its own convex hull.+ expect(report.collision.convexityRatio).toBeCloseTo(1, 3);+ expect(report.collision.convexEnough).toBe(true);+ });++ it('applies node transforms before measuring, so scale is world space', async () => {+ const report = await gradeSimReadiness(await glbFrom(cubeMesh(0.4), { scaleNode: [2, 2, 2] }));+ expect(report.scale.longestAxisMeters).toBeCloseTo(0.8, 6);+ expect(report.mass.volumeM3 / 0.8 ** 3 - 1).toBeCloseTo(0, 6);+ });++ it('reports an open surface rather than a fabricated volume', async () => {+ const report = await gradeSimReadiness(await glbFrom(cubeMesh(0.4, { open: true })));+ expect(report.verdict).toBe('needs_repair');+ expect(report.blockers).toContain('open_surface');+ expect(report.topology.watertight).toBe(false);+ expect(report.topology.boundaryEdges).toBeGreaterThan(0);+ });++ it('catches an inconsistently wound triangle', async () => {+ const report = await gradeSimReadiness(await glbFrom(cubeMesh(0.4, { flipOneTriangle: true })));+ expect(report.blockers).toContain('inconsistent_winding');+ expect(report.topology.inconsistentWindingEdges).toBeGreaterThan(0);+ expect(report.topology.windingConsistent).toBe(false);+ });++ it('flags a generator-normalized unit box as unscaled, not as ready', async () => {+ const report = await gradeSimReadiness(await glbFrom(cubeMesh(1)));+ expect(report.scale.normalizedGuess).toBe(true);+ expect(report.verdict).toBe('needs_scale');+ expect(report.blockers).toContain('scale_normalized');+ // The geometry itself is sound; only the units are unknown.+ expect(report.topology.watertight).toBe(true);+ });++ it('returns an honest verdict for a buffer that is not a GLB', async () => {+ const report = await gradeSimReadiness(Buffer.from('not a glb at all'));+ expect(report.readable).toBe(false);+ expect(report.verdict).toBe('unreadable');+ expect(report.blockers).toContain('unreadable_glb');+ });+});