makepad/libs/flow/recipes/templates/image-to-mesh-basic.splash
Arena Agent d8d5ea8b6a Repair integration manifests and port nigig exports onto upstream widget families
Restore missing required asset/flow packages from the pinned nigig revision; retain upstream script isolation, X11 hover, and widget-core fixes. Validated makepad-widgets data feature with Rust 1.97.1.
2026-10-26 11:23:26 +00:00

23 lines
757 B
Text

use mod.flow.*
/** The isolated object image to reconstruct. */
let image = Input{ type: @image }
/** Optional trace text for the reconstruction. */
let prompt = Input{ type: @text default: "reconstruct the isolated object" }
let mesh = Mesh{
prompt: prompt.text()
image: image.image()
remesh_resolution: 512
texture: true
decimation_target: 12000
texture_size: 1024
model: "trellis-2"
}
/** Publish the reconstructed GLB into the flow asset library. */
let published = Publish{ value: mesh.mesh() namespace: "flows" tags: ["flow", "mesh"] }
Flow{
label: "Image to basic mesh"
brief: "Reconstructs a supplied object image as a textured TRELLIS mesh without a separate paint stage."
prompt, image, mesh, published
}