Returns a slice of all triangles of the mesh as `TriangleCell`s
(&self)
| 745 | impl<R: Real> TriMesh3d<R> { |
| 746 | /// Returns a slice of all triangles of the mesh as `TriangleCell`s |
| 747 | pub fn triangle_cells(&self) -> &[TriangleCell] { |
| 748 | bytemuck::cast_slice::<[usize; 3], TriangleCell>(self.triangles.as_slice()) |
| 749 | } |
| 750 | |
| 751 | /// Clears the vertex and triangle storage, preserves allocated memory |
| 752 | pub fn clear(&mut self) { |
no outgoing calls
no test coverage detected