pub fn stats(path: PathBuf, format: OutputFormat) -> Result<()>Expand description
Generate statistics and metadata for a 3MF file.
Computes and reports key metrics including unit of measurement, geometry counts, material groups, metadata, and system information.
§Arguments
path- Path to the 3MF file or supported format (STL, OBJ)format- Output format (Text, Json, or Tree visualization)
§Errors
Returns an error if the file cannot be opened, parsed, or if statistics computation fails.
§Example
use lib3mf_cli::commands::{stats, OutputFormat};
use std::path::PathBuf;
stats(PathBuf::from("model.3mf"), OutputFormat::Text)?;