pub struct DCEL {
pub vertices: Vec<Vertex>,
pub halfedges: Vec<HalfEdge>,
pub faces: Vec<Face>,
}
Expand description
Doubly Connected Edge List representation of a subdivision of the plane.
Fields§
§vertices: Vec<Vertex>
Vertices
halfedges: Vec<HalfEdge>
Halfedges
faces: Vec<Face>
Faces
Implementations§
Source§impl DCEL
impl DCEL
Sourcepub fn get_origin(&self, edge: usize) -> Point
pub fn get_origin(&self, edge: usize) -> Point
Get the origin of a halfedge by index
Sourcepub fn set_prev(&mut self)
pub fn set_prev(&mut self)
Set the previous edge of all halfedges Assumes that the DCEL is well-formed.
Sourcepub fn remove_vertex(&mut self, vertex: usize)
pub fn remove_vertex(&mut self, vertex: usize)
Remove a vertex and all attached halfedges. Does not affect faces!!
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DCEL
impl RefUnwindSafe for DCEL
impl Send for DCEL
impl Sync for DCEL
impl Unpin for DCEL
impl UnwindSafe for DCEL
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more