mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 02:18:28 +00:00
Update name of function
This commit is contained in:
parent
95c8881d5b
commit
ac47bd5798
@ -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();
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user