pub struct Brush {
pub center: [f32; 3],
pub radius: f32,
pub falloff: Falloff,
pub strength: f32,
}Expand description
A deform brush: a sphere of influence with a falloff and a strength.
Fields§
§center: [f32; 3]Center of the brush in local coordinates.
radius: f32Radius of influence in local units; vertices at or past it are untouched. Must be positive and finite.
falloff: FalloffHow the effect fades with distance from the center.
strength: f32Displacement scale in local units; negative pulls instead of pushing. Must be finite.
Trait Implementations§
impl Copy for Brush
impl StructuralPartialEq for Brush
Auto Trait Implementations§
impl Freeze for Brush
impl RefUnwindSafe for Brush
impl Send for Brush
impl Sync for Brush
impl Unpin for Brush
impl UnsafeUnpin for Brush
impl UnwindSafe for Brush
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