mirror of
https://codeberg.org/LibrEDA/libreda-python
synced 2026-06-03 00:08:00 +08:00
Normalize polygon on conversion.
This commit is contained in:
@@ -182,6 +182,7 @@ impl Into<db::Polygon<i32>> for &Polygon {
|
||||
exterior: (&self.exterior).into(),
|
||||
interiors: self.interiors.iter().map(|p| p.into()).collect(),
|
||||
}
|
||||
.normalized()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user