MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / keep_cells

Method keep_cells

splashsurf_lib/src/mesh.rs:324–331  ·  view source on GitHub ↗

Returns a new mesh containing only the specified cells and removes all unreferenced vertices

(&self, cell_indices: &[usize], keep_vertices: bool)

Source from the content-addressed store, hash-verified

322
323 /// Returns a new mesh containing only the specified cells and removes all unreferenced vertices
324 fn keep_cells(&self, cell_indices: &[usize], keep_vertices: bool) -> Self {
325 if keep_vertices {
326 keep_cells_impl(self, cell_indices, &[])
327 } else {
328 let vertex_keep_table = vertex_keep_table(self, cell_indices);
329 keep_cells_impl(self, cell_indices, &vertex_keep_table)
330 }
331 }
332
333 /// Removes all cells from the mesh that are completely outside the given AABB and clamps the remaining cells to the boundary
334 fn par_clamp_with_aabb(

Callers

nothing calls this directly

Implementers 1

mesh.rssplashsurf_lib/src/mesh.rs

Calls 2

keep_cells_implFunction · 0.85
vertex_keep_tableFunction · 0.85

Tested by

no test coverage detected