pub fn run_job(
format: &str,
input: &Path,
output: Option<&Path>,
signature: Option<&Path>,
mass: Option<&Path>,
max_input_bytes: u64,
) -> Result<Mesh>Expand description
One job of the preview process (teamcraft preview-mesh): converts
input into the preview mesh at output and/or writes the shape
signature (a shape::Outcome as JSON) to signature. With
CACHED_MESH as format, input is a cached preview mesh. A failed
signature does not fail the conversion – the outcome records why. The
mass properties (a massprops::Outcome as JSON) go to mass the same
way. Returns the mesh (the CLI prints its size).