pub struct Mesh {
pub origin: [f64; 2],
pub lines: Vec<LineInstance>,
pub fill_vertices: Vec<FillVertex>,
pub fill_indices: Vec<u32>,
pub glyphs: Vec<GlyphInstance>,
}Expand description
Tessellated geometry of one item or overlay.
Fields§
§origin: [f64; 2]World origin of the local coordinates.
lines: Vec<LineInstance>Line instances.
fill_vertices: Vec<FillVertex>Fill vertices.
fill_indices: Vec<u32>Fill triangle indices.
glyphs: Vec<GlyphInstance>Glyph instances.
Implementations§
Source§impl Mesh
impl Mesh
Sourcepub fn polyline(
&mut self,
points: &[Point],
closed: bool,
color: u32,
width: f32,
dash: [f32; 4],
)
pub fn polyline( &mut self, points: &[Point], closed: bool, color: u32, width: f32, dash: [f32; 4], )
Append a stroked polyline (closed adds the closing segment).
Sourcepub fn fill_rings(&mut self, rings: &[Vec<Point>], color: u32)
pub fn fill_rings(&mut self, rings: &[Vec<Point>], color: u32)
Append filled rings (even-odd rule; holes are rings inside rings).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mesh
impl RefUnwindSafe for Mesh
impl Send for Mesh
impl Sync for Mesh
impl Unpin for Mesh
impl UnsafeUnpin for Mesh
impl UnwindSafe for Mesh
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