pub struct LineBuffer {
pub anchor: Vec3,
pub positions: Vec<[f32; 3]>,
pub indices: Vec<u32>,
}Expand description
Shared line segments, from the linear curves of
usd::usdgeom::basiscurves.
Fields§
§anchor: Vec3See MeshBuffer::anchor.
positions: Vec<[f32; 3]>Vertex positions relative to anchor, every polyline in order.
indices: Vec<u32>Two indices per segment. A closed polyline adds a segment from its last vertex back to its first.
Implementations§
Source§impl LineBuffer
impl LineBuffer
Sourcepub fn segment_count(&self) -> usize
pub fn segment_count(&self) -> usize
Number of line segments.
Trait Implementations§
Source§impl Clone for LineBuffer
impl Clone for LineBuffer
Source§fn clone(&self) -> LineBuffer
fn clone(&self) -> LineBuffer
Returns a copy of the value. Read more
1.0.0 · 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 LineBuffer
impl Debug for LineBuffer
Source§impl PartialEq for LineBuffer
impl PartialEq for LineBuffer
impl StructuralPartialEq for LineBuffer
Auto Trait Implementations§
impl Freeze for LineBuffer
impl RefUnwindSafe for LineBuffer
impl Send for LineBuffer
impl Sync for LineBuffer
impl Unpin for LineBuffer
impl UnwindSafe for LineBuffer
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