pointer suffices

This commit is contained in:
randogoth 2024-04-01 14:17:14 +03:00
parent 7e8b5f217e
commit 17b784cb41

View file

@ -426,7 +426,7 @@ impl Xenobalanus {
} }
/// Calculates the concave hull for a subset of vertices indicated by their indices, based on the alpha parameter. /// 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<usize>, alpha: f32) -> Result<Vec<usize>, &'static str> { pub fn concave_hull(&self, vertex_indices: &Vec<usize>, alpha: f32) -> Result<Vec<usize>, &'static str> {
// Perform Delaunay triangulation on the subset of vertices. // Perform Delaunay triangulation on the subset of vertices.
let triangulation_indices = self.delaunay_sub(vertex_indices.clone()); let triangulation_indices = self.delaunay_sub(vertex_indices.clone());