From: Ian Jackson Date: Mon, 11 Jan 2021 00:29:39 +0000 (+0000) Subject: otterlib: wip preview X-Git-Tag: otter-0.3.0~88 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cfa3643505cb019f2314b251719d371e50bc6760;p=otter.git otterlib: wip preview Signed-off-by: Ian Jackson --- diff --git a/src/bin/otterlib.rs b/src/bin/otterlib.rs index cf1370a0..655e7d51 100644 --- a/src/bin/otterlib.rs +++ b/src/bin/otterlib.rs @@ -41,7 +41,11 @@ fn preview(items: Vec) { Ok::<_,AE>((pc, uos)) })().with_context(|| format!("{:?}", &spec)) }).collect::,_>>()?; + + let max_faces = pieces.iter().map(|(p,_)| p.nfaces()).max().unwrap_or(1); + let max_uos = pieces.iter().map(|(_,uos)| uos.len()).max().unwrap_or(0); dbg!(&pieces); + dbg!(&max_faces, &max_uos); } #[throws(anyhow::Error)]