Skip to content

Commit

Permalink
Use the new Wire::from_unordered_edges() function for creating a wire…
Browse files Browse the repository at this point in the history
… out of a BoardLayer
  • Loading branch information
bschwind committed Sep 2, 2023
1 parent f94bd73 commit 42b3ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/kicad-parser/src/board.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use anyhow::{anyhow, Context, Result};
use opencascade::primitives::{Edge, Face, Wire};
use opencascade::primitives::{Edge, EdgeConnection, Face, Wire};
use sexp::{Atom, Sexp};
use std::path::Path;

Expand Down Expand Up @@ -193,7 +193,7 @@ impl KicadBoard {
}

pub fn layer_wire(&self, layer: BoardLayer) -> Wire {
Wire::from_edges(&self.layer_edges(layer))
Wire::from_unordered_edges(&self.layer_edges(layer), EdgeConnection::default())
}

pub fn layer_face(&self, layer: BoardLayer) -> Face {
Expand Down

0 comments on commit 42b3ed8

Please sign in to comment.