pub struct SolidOptions {
pub power: u32,
pub allow_frac: bool,
pub frac_promote: bool,
pub world_align: bool,
}
Fields§
§power: u32
Number of sides of a spikes base, number of layers and number of sides of those layers of a sphere, power of a displacement, etc.
allow_frac: bool
Allow vertexes to have a fractional part instead of rounding to an integer.
frac_promote: bool
Allow fractional vertexes if the shape is too small to accurately have as many sides as it has.
world_align: bool
Wether to align textures to the nearest axis instead of relative to the face.
Implementations§
Source§impl SolidOptions
impl SolidOptions
pub const fn new() -> Self
pub const fn sides(self, sides: u32) -> Self
pub const fn allow_frac(self) -> Self
pub const fn frac_promote(self) -> Self
pub const fn world_align(self) -> Self
pub const fn face_align(self) -> Self
Trait Implementations§
Source§impl Clone for SolidOptions
impl Clone for SolidOptions
Source§fn clone(&self) -> SolidOptions
fn clone(&self) -> SolidOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SolidOptions
impl Debug for SolidOptions
Source§impl Default for SolidOptions
impl Default for SolidOptions
Source§impl Hash for SolidOptions
impl Hash for SolidOptions
Source§impl Ord for SolidOptions
impl Ord for SolidOptions
Source§fn cmp(&self, other: &SolidOptions) -> Ordering
fn cmp(&self, other: &SolidOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SolidOptions
impl PartialEq for SolidOptions
Source§impl PartialOrd for SolidOptions
impl PartialOrd for SolidOptions
impl Eq for SolidOptions
impl StructuralPartialEq for SolidOptions
Auto Trait Implementations§
impl Freeze for SolidOptions
impl RefUnwindSafe for SolidOptions
impl Send for SolidOptions
impl Sync for SolidOptions
impl Unpin for SolidOptions
impl UnwindSafe for SolidOptions
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