pub struct StretchOptions {
pub region: Region,
pub limit: f32,
pub max_splits: u32,
pub smooth: bool,
}Expand description
Options for split_stretched.
Fields§
§region: RegionVertices inside this region have their edges checked. Edges with no endpoint inside are left alone.
limit: f32An edge splits past this multiple of the smaller rest size of its endpoints. Must be finite and above 1: at 1 or below, an edge that did not stretch could split.
max_splits: u32Most interior splits in one call; the longest go first and
StretchReport::remaining counts the rest, for a later call.
Boundary edges do not count, see the module docs.
smooth: boolNew interior vertices follow the surface’s curvature. false puts
every new vertex at its edge’s midpoint.
Trait Implementations§
Source§impl Clone for StretchOptions
impl Clone for StretchOptions
Source§fn clone(&self) -> StretchOptions
fn clone(&self) -> StretchOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StretchOptions
Source§impl Debug for StretchOptions
impl Debug for StretchOptions
Source§impl Default for StretchOptions
impl Default for StretchOptions
Source§impl PartialEq for StretchOptions
impl PartialEq for StretchOptions
impl StructuralPartialEq for StretchOptions
Auto Trait Implementations§
impl Freeze for StretchOptions
impl RefUnwindSafe for StretchOptions
impl Send for StretchOptions
impl Sync for StretchOptions
impl Unpin for StretchOptions
impl UnsafeUnpin for StretchOptions
impl UnwindSafe for StretchOptions
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