mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-15 21:00:20 +00:00
Add methods to access single HalfEdge
vertices
This commit is contained in:
parent
045a2bc8f3
commit
6c3abd8e83
@ -79,6 +79,18 @@ impl HalfEdge {
|
||||
&self.vertices
|
||||
}
|
||||
|
||||
/// Access the vertex at the back of the half-edge
|
||||
pub fn back(&self) -> &Vertex {
|
||||
let [back, _] = self.vertices();
|
||||
back
|
||||
}
|
||||
|
||||
/// Access the vertex at the front of the half-edge
|
||||
pub fn front(&self) -> &Vertex {
|
||||
let [_, front] = self.vertices();
|
||||
front
|
||||
}
|
||||
|
||||
/// Access the global form of this half-edge
|
||||
pub fn global_form(&self) -> &GlobalEdge {
|
||||
&self.global_form
|
||||
|
Loading…
Reference in New Issue
Block a user