pub struct MeshPlot { /* private fields */ }Implementations§
Source§impl MeshPlot
impl MeshPlot
pub fn new( vertices: Vec<Vec3>, triangles: Vec<[u32; 3]>, ) -> Result<Self, String>
pub fn mesh_id(&self) -> Option<&str>
pub fn vertices(&self) -> &[Vec3]
pub fn triangles(&self) -> &[[u32; 3]]
pub fn face_color(&self) -> Vec4
pub fn edge_color(&self) -> Vec4
pub fn face_alpha(&self) -> f32
pub fn edge_alpha(&self) -> f32
pub fn edge_width(&self) -> f32
pub fn edge_mode(&self) -> MeshEdgeMode
pub fn feature_edge_groups(&self) -> Option<&[u64]>
pub fn triangle_colors(&self) -> Option<&[Vec4]>
pub fn vertex_colors(&self) -> Option<&[Vec4]>
pub fn label(&self) -> Option<&str>
pub fn regions(&self) -> &[MeshRegion]
pub fn highlighted_region_id(&self) -> Option<&str>
pub fn highlight_color(&self) -> Vec4
pub fn scalar_field(&self) -> Option<&MeshScalarField>
pub fn vector_field(&self) -> Option<&MeshVectorField>
pub fn deformation(&self) -> Option<&MeshDeformation>
pub fn is_visible(&self) -> bool
pub fn set_mesh_id(&mut self, mesh_id: Option<String>)
pub fn set_vertices(&mut self, vertices: Vec<Vec3>) -> Result<(), String>
pub fn set_triangles(&mut self, triangles: Vec<[u32; 3]>) -> Result<(), String>
pub fn set_face_color(&mut self, color: Vec4)
pub fn set_edge_color(&mut self, color: Vec4)
pub fn set_face_alpha(&mut self, alpha: f32)
pub fn set_edge_alpha(&mut self, alpha: f32)
pub fn set_edge_width(&mut self, edge_width: f32)
pub fn set_edge_mode(&mut self, edge_mode: MeshEdgeMode)
pub fn set_feature_edge_groups( &mut self, groups: Option<Vec<u64>>, ) -> Result<(), String>
pub fn set_vertex_colors( &mut self, colors: Option<Vec<Vec4>>, ) -> Result<(), String>
pub fn set_triangle_colors( &mut self, colors: Option<Vec<Vec4>>, ) -> Result<(), String>
pub fn set_label(&mut self, label: Option<String>)
pub fn set_regions(&mut self, regions: Vec<MeshRegion>)
pub fn set_highlighted_region_id(&mut self, region_id: Option<String>)
pub fn set_highlight_color(&mut self, color: Vec4)
pub fn set_scalar_field( &mut self, field: Option<MeshScalarField>, ) -> Result<(), String>
pub fn set_vector_field( &mut self, field: Option<MeshVectorField>, ) -> Result<(), String>
pub fn set_deformation( &mut self, deformation: Option<MeshDeformation>, ) -> Result<(), String>
pub fn region_for_triangle(&self, triangle_index: u32) -> Option<&MeshRegion>
pub fn set_visible(&mut self, visible: bool)
pub fn mark_dirty(&mut self)
pub fn effective_face_color(&self) -> Vec4
pub fn effective_edge_color(&self) -> Vec4
pub fn bounds(&mut self) -> BoundingBox
pub fn render_data(&mut self) -> RenderData
pub fn edge_render_data(&mut self) -> Option<RenderData>
pub fn vector_render_data(&mut self) -> Option<RenderData>
pub fn estimated_memory_usage(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MeshPlot
impl RefUnwindSafe for MeshPlot
impl Send for MeshPlot
impl Sync for MeshPlot
impl Unpin for MeshPlot
impl UnsafeUnpin for MeshPlot
impl UnwindSafe for MeshPlot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more