This commit is contained in:
Quaternions 2024-09-26 16:39:09 -07:00
parent 84b364313b
commit 682fa44741

View File

@ -487,7 +487,7 @@ impl TransformedMesh<'_>{
SubmeshVertId::new(
self.view.topology.verts.iter()
.enumerate()
.min_by_key(|(_,vert_id)|
.max_by_key(|(_,&vert_id)|
dir.dot(self.transform.vertex.transform_point3(self.view.data.verts[vert_id.get() as usize].0))
)
//assume there is more than zero vertices.