pub struct SchemeOptions {
pub corner_rule: CornerRule,
pub crease_computation: CreaseComputationMethod,
pub boundary_interpolation: BoundaryInterpolation,
pub triangle_subdivision_rule: TriangleSubdivisionRule,
pub auto_corner: bool,
pub crease_normalize: bool,
pub corner_normalize: bool,
}Expand description
Scheme-level options that define subdivision behavior.
These are set once when creating a Refiner and
apply to all refinement calls on that refiner.
Fields§
§corner_rule: CornerRuleSharp-vertex rule selection.
crease_computation: CreaseComputationMethodCrease propagation mode.
boundary_interpolation: BoundaryInterpolationPositional boundary mode.
triangle_subdivision_rule: TriangleSubdivisionRuleTriangle handling mode (CC only).
auto_corner: boolWhether to promote vertices with 3+ sharp incident edges.
crease_normalize: boolWhether crease values are normalized per level.
corner_normalize: boolWhether corner values are normalized per level.
Trait Implementations§
Source§impl Clone for SchemeOptions
impl Clone for SchemeOptions
Source§fn clone(&self) -> SchemeOptions
fn clone(&self) -> SchemeOptions
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 SchemeOptions
Source§impl Debug for SchemeOptions
impl Debug for SchemeOptions
Source§impl Default for SchemeOptions
impl Default for SchemeOptions
Source§impl<'de> Deserialize<'de> for SchemeOptions
impl<'de> Deserialize<'de> for SchemeOptions
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
Source§impl PartialEq for SchemeOptions
impl PartialEq for SchemeOptions
Source§fn eq(&self, other: &SchemeOptions) -> bool
fn eq(&self, other: &SchemeOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SchemeOptions
impl Serialize for SchemeOptions
impl StructuralPartialEq for SchemeOptions
Auto Trait Implementations§
impl Freeze for SchemeOptions
impl RefUnwindSafe for SchemeOptions
impl Send for SchemeOptions
impl Sync for SchemeOptions
impl Unpin for SchemeOptions
impl UnsafeUnpin for SchemeOptions
impl UnwindSafe for SchemeOptions
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