pub struct Crease {
pub edge: [u32; 2],
pub sharpness: f64,
}Expand description
An edge creased: kept sharp through the limit surface at a sharpness
of one, bent a little less than smooth below it.
Fields§
§edge: [u32; 2]Its two vertices, the smaller id first.
sharpness: f64In (0, 1]: one is sharp — a corner in the limit surface — and
below it the crease is soft: the cage is pulled to the edge by
that fraction in the first subdivision step and smooth after, so
the surface rounds off tighter there without a corner.
Trait Implementations§
impl Copy for Crease
Source§impl<'de> Deserialize<'de> for Crease
impl<'de> Deserialize<'de> for Crease
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Crease
Auto Trait Implementations§
impl Freeze for Crease
impl RefUnwindSafe for Crease
impl Send for Crease
impl Sync for Crease
impl Unpin for Crease
impl UnsafeUnpin for Crease
impl UnwindSafe for Crease
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