pub struct Triangles3D<'a> {
pub label: &'a str,
pub xs_f32: Option<&'a [f32]>,
pub ys_f32: Option<&'a [f32]>,
pub zs_f32: Option<&'a [f32]>,
pub xs_f64: Option<&'a [f64]>,
pub ys_f64: Option<&'a [f64]>,
pub zs_f64: Option<&'a [f64]>,
pub flags: Triangle3DFlags,
pub offset: i32,
pub stride: i32,
pub points_f32: Option<&'a [[f32; 3]]>,
pub points_f64: Option<&'a [[f64; 3]]>,
}Fields§
§label: &'a str§xs_f32: Option<&'a [f32]>§ys_f32: Option<&'a [f32]>§zs_f32: Option<&'a [f32]>§xs_f64: Option<&'a [f64]>§ys_f64: Option<&'a [f64]>§zs_f64: Option<&'a [f64]>§flags: Triangle3DFlags§offset: i32§stride: i32§points_f32: Option<&'a [[f32; 3]]>§points_f64: Option<&'a [[f64; 3]]>Implementations§
Source§impl<'a> Triangles3D<'a>
impl<'a> Triangles3D<'a>
pub fn f32(label: &'a str, xs: &'a [f32], ys: &'a [f32], zs: &'a [f32]) -> Self
pub fn f64(label: &'a str, xs: &'a [f64], ys: &'a [f64], zs: &'a [f64]) -> Self
pub fn points_f32(label: &'a str, pts: &'a [[f32; 3]]) -> Self
pub fn points_f64(label: &'a str, pts: &'a [[f64; 3]]) -> Self
pub fn flags(self, flags: Triangle3DFlags) -> Self
pub fn offset(self, o: i32) -> Self
pub fn stride(self, s: i32) -> Self
Trait Implementations§
Source§impl<'a> Plot3D for Triangles3D<'a>
impl<'a> Plot3D for Triangles3D<'a>
Source§impl Plot3DItemFlagged for Triangles3D<'_>
impl Plot3DItemFlagged for Triangles3D<'_>
Source§type Output = StyledPlot3D<Triangles3D<'_>>
type Output = StyledPlot3D<Triangles3D<'_>>
The output type returned by item-flag building methods.
fn map_item_flags<F>(self, f: F) -> Self::Outputwhere
F: FnOnce(&mut Item3DFlags),
Source§fn with_item_flags(self, flags: Item3DFlags) -> Self::Output
fn with_item_flags(self, flags: Item3DFlags) -> Self::Output
Set common item flags such as
NO_LEGEND / NO_FIT.Source§impl Plot3DItemStyled for Triangles3D<'_>
impl Plot3DItemStyled for Triangles3D<'_>
Source§type Output = StyledPlot3D<Triangles3D<'_>>
type Output = StyledPlot3D<Triangles3D<'_>>
The output type returned by style-building methods.
fn map_style<F>(self, f: F) -> Self::Outputwhere
F: FnOnce(&mut Plot3DItemStyle),
Source§fn with_style(self, style: Plot3DItemStyle) -> Self::Output
fn with_style(self, style: Plot3DItemStyle) -> Self::Output
Replace the entire item style override for this plot.
Source§fn with_line_weight(self, weight: f32) -> Self::Output
fn with_line_weight(self, weight: f32) -> Self::Output
Set the line width in pixels.
Source§fn with_fill_alpha(self, alpha: f32) -> Self::Output
fn with_fill_alpha(self, alpha: f32) -> Self::Output
Set the fill alpha multiplier used for fills and marker faces.
Source§fn with_marker(self, marker: Marker3D) -> Self::Output
fn with_marker(self, marker: Marker3D) -> Self::Output
Set the marker type.
Source§fn with_marker_size(self, size: f32) -> Self::Output
fn with_marker_size(self, size: f32) -> Self::Output
Set the marker size in pixels.
Auto Trait Implementations§
impl<'a> Freeze for Triangles3D<'a>
impl<'a> RefUnwindSafe for Triangles3D<'a>
impl<'a> Send for Triangles3D<'a>
impl<'a> Sync for Triangles3D<'a>
impl<'a> Unpin for Triangles3D<'a>
impl<'a> UnsafeUnpin for Triangles3D<'a>
impl<'a> UnwindSafe for Triangles3D<'a>
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