Skip to content

Commit

Permalink
accept reference to edges
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Aug 23, 2023
1 parent a8c9b98 commit 5c86486
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input/triangulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub struct Triangulation {

impl Triangulation {
/// Create a new triangulation from a the list of points on its outer edges.
pub fn from_outer_edges(edges: Vec<Vec2>) -> Triangulation {
pub fn from_outer_edges(edges: &Vec<Vec2>) -> Triangulation {
Self {
inner: GeoPolygon::new(
LineString::from(edges.iter().map(|v| (v.x, v.y)).collect::<Vec<_>>()),
Expand Down

0 comments on commit 5c86486

Please sign in to comment.