mirror of
https://codeberg.org/icewind/vbsp.git
synced 2026-06-03 18:54:05 +02:00
face normals
This commit is contained in:
parent
cdf52722f8
commit
7702ca17a6
3 changed files with 31 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue