pub struct Spaceframe { /* private fields */ }
Implementations§
Source§impl Spaceframe
impl Spaceframe
Sourcepub fn show(&mut self, show: bool) -> &mut Self
pub fn show(&mut self, show: bool) -> &mut Self
Displays/hides tetrahedron shapes between minimum and maximum iso-values. Often useful when either caps or surfaces are disabled or filled with values less than 1.
default: false
Sourcepub fn fill(&mut self, fill: f64) -> &mut Self
pub fn fill(&mut self, fill: f64) -> &mut Self
Sets the fill ratio of the spaceframe
elements. The default fill value is 0.15 meaning that only 15% of the area of every faces of tetras would be shaded. Applying a greater fill
ratio would allow the creation of stronger elements or could be sued to have entirely closed areas (in case of using 1).
default: 0.15
Trait Implementations§
Source§impl Default for Spaceframe
impl Default for Spaceframe
Source§fn default() -> Spaceframe
fn default() -> Spaceframe
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for Spaceframe
impl RefUnwindSafe for Spaceframe
impl Send for Spaceframe
impl Sync for Spaceframe
impl Unpin for Spaceframe
impl UnwindSafe for Spaceframe
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