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§
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> 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