From cfa3643505cb019f2314b251719d371e50bc6760 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 11 Jan 2021 00:29:39 +0000 Subject: [PATCH] otterlib: wip preview Signed-off-by: Ian Jackson --- src/bin/otterlib.rs | 4 ++++ 1 file changed, 4 insertions(+) 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)] -- 2.30.2