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

Method triangle_cells

splashsurf_lib/src/mesh.rs:747–749  ·  view source on GitHub ↗

Returns a slice of all triangles of the mesh as `TriangleCell`s

(&self)

Source from the content-addressed store, hash-verified

745impl<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) {

Callers 2

cellsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected