diff --git a/src/lib.rs b/src/lib.rs index 5bc7656..c466a26 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -426,7 +426,7 @@ impl Xenobalanus { } /// Calculates the concave hull for a subset of vertices indicated by their indices, based on the alpha parameter. - pub fn concave_hull(&self, vertex_indices: Vec, alpha: f32) -> Result, &'static str> { + pub fn concave_hull(&self, vertex_indices: &Vec, alpha: f32) -> Result, &'static str> { // Perform Delaunay triangulation on the subset of vertices. let triangulation_indices = self.delaunay_sub(vertex_indices.clone());