1
0
Fork 0
mirror of https://codeberg.org/icewind/vbsp.git synced 2026-06-03 18:54:05 +02:00

face normals

This commit is contained in:
Robin Appelman 2023-12-21 16:25:13 +01:00
commit 7702ca17a6
3 changed files with 31 additions and 0 deletions

View file

@ -87,4 +87,8 @@ impl<'a> Handle<'a, Face> {
.map(Either::Left)
.unwrap_or_else(|| Either::Right(self.triangulate().flatten()))
}
pub fn normal(&self) -> Vector {
self.bsp.plane(self.plane_num as usize).unwrap().normal
}
}