pub struct EdgeIndices {
pub west: Vec<u32>,
pub south: Vec<u32>,
pub east: Vec<u32>,
pub north: Vec<u32>,
}Expand description
Edge indices for skirt generation.
Contains indices of vertices on each edge of the tile, sorted by their position along the edge.
Fields§
§west: Vec<u32>Indices of vertices on the west edge (sorted by v, ascending)
south: Vec<u32>Indices of vertices on the south edge (sorted by u, ascending)
east: Vec<u32>Indices of vertices on the east edge (sorted by v, ascending)
north: Vec<u32>Indices of vertices on the north edge (sorted by u, ascending)
Implementations§
Source§impl EdgeIndices
impl EdgeIndices
Sourcepub fn from_vertices(vertices: &QuantizedVertices) -> Self
pub fn from_vertices(vertices: &QuantizedVertices) -> Self
Extract edge indices from vertex data.
Identifies vertices on tile boundaries (u=0, u=32767, v=0, v=32767) and sorts them appropriately.
Trait Implementations§
Source§impl Clone for EdgeIndices
impl Clone for EdgeIndices
Source§fn clone(&self) -> EdgeIndices
fn clone(&self) -> EdgeIndices
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EdgeIndices
impl Debug for EdgeIndices
Source§impl Default for EdgeIndices
impl Default for EdgeIndices
Source§fn default() -> EdgeIndices
fn default() -> EdgeIndices
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EdgeIndices
impl RefUnwindSafe for EdgeIndices
impl Send for EdgeIndices
impl Sync for EdgeIndices
impl Unpin for EdgeIndices
impl UnsafeUnpin for EdgeIndices
impl UnwindSafe for EdgeIndices
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