pub enum FaceVaryingInterpolation {
Linear,
SmoothWithLinearCorners,
SmoothWithLinearBoundaries,
Smooth,
}Expand description
Face-varying (per-corner, seam-capable) interpolation policy, mirroring
OpenSubdiv’s Sdc::Options::FVarLinearInterpolation spectrum from fully
linear to fully smooth.
Variants§
Linear
Linear interpolation everywhere (OSD FVAR_LINEAR_ALL); the old
RenderMan facevarying class.
SmoothWithLinearCorners
Smooth interior, linear only at face-varying corners
(OSD FVAR_LINEAR_CORNERS_ONLY).
SmoothWithLinearBoundaries
Smooth interior, linear along face-varying boundaries/seams
(OSD FVAR_LINEAR_BOUNDARIES). The common default for UV channels:
smooth within an island, pinned at island seams.
Smooth
Smooth subdivision rules everywhere, with seams as smooth boundary
curves (OSD FVAR_LINEAR_NONE); the old RenderMan facevertex class.
Trait Implementations§
Source§impl Clone for FaceVaryingInterpolation
impl Clone for FaceVaryingInterpolation
Source§fn clone(&self) -> FaceVaryingInterpolation
fn clone(&self) -> FaceVaryingInterpolation
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 FaceVaryingInterpolation
Source§impl Debug for FaceVaryingInterpolation
impl Debug for FaceVaryingInterpolation
Source§impl Default for FaceVaryingInterpolation
impl Default for FaceVaryingInterpolation
Source§fn default() -> FaceVaryingInterpolation
fn default() -> FaceVaryingInterpolation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FaceVaryingInterpolation
impl<'de> Deserialize<'de> for FaceVaryingInterpolation
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 Eq for FaceVaryingInterpolation
Source§impl Hash for FaceVaryingInterpolation
impl Hash for FaceVaryingInterpolation
Source§impl PartialEq for FaceVaryingInterpolation
impl PartialEq for FaceVaryingInterpolation
Source§fn eq(&self, other: &FaceVaryingInterpolation) -> bool
fn eq(&self, other: &FaceVaryingInterpolation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FaceVaryingInterpolation
impl Serialize for FaceVaryingInterpolation
impl StructuralPartialEq for FaceVaryingInterpolation
Auto Trait Implementations§
impl Freeze for FaceVaryingInterpolation
impl RefUnwindSafe for FaceVaryingInterpolation
impl Send for FaceVaryingInterpolation
impl Sync for FaceVaryingInterpolation
impl Unpin for FaceVaryingInterpolation
impl UnsafeUnpin for FaceVaryingInterpolation
impl UnwindSafe for FaceVaryingInterpolation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.