Update name of function

This commit is contained in:
Hanno Braun 2025-03-21 20:06:20 +01:00
parent 95c8881d5b
commit ac47bd5798
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,7 @@ impl Vertices {
}
}
pub fn from_mesh(tri_mesh: &TriMesh) -> Self {
pub fn from_tri_mesh(tri_mesh: &TriMesh) -> Self {
let mut vertices = Vec::new();
let mut indices = Vec::new();
let mut indices_by_vertex = BTreeMap::new();

View File

@ -58,7 +58,8 @@ impl Viewer {
/// Handle the model being updated
pub fn handle_model_update(&mut self, mesh: TriMesh) {
self.renderer.update_geometry(Vertices::from_mesh(&mesh));
self.renderer
.update_geometry(Vertices::from_tri_mesh(&mesh));
let aabb = mesh.aabb();
if self.model.replace((mesh, aabb)).is_none() {