From e5829d929a277db1ff4e55ecaa3a5b19e6de0224 Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Sat, 8 Jun 2024 23:07:28 +0200 Subject: [PATCH] dsn: don't divide widths and clearances by 100 --- src/dsn/mesadata.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dsn/mesadata.rs b/src/dsn/mesadata.rs index 253b901..8f55ee6 100644 --- a/src/dsn/mesadata.rs +++ b/src/dsn/mesadata.rs @@ -17,8 +17,8 @@ pub struct DsnRule { impl DsnRule { fn from_dsn(rule: &super::structure::Rule) -> Self { Self { - width: rule.width as f64 / 100.0, - clearance: rule.clearance_vec[0].value as f64 / 100.0, // picks the generic clearance only for now + width: rule.width as f64, + clearance: rule.clearance_vec[0].value as f64, // picks the generic clearance only for now } } }