pub struct UniformRefine {
pub levels: NonZeroU8,
pub selected_faces: Option<Vec<bool>>,
pub selection_boundary_crease: f32,
pub edge_polylines: bool,
}Expand description
Per-call refinement parameters.
Fields§
§levels: NonZeroU8Number of uniform refinement levels. Must be at least 1.
selected_faces: Option<Vec<bool>>Optional face selection mask. When Some, only selected faces are refined.
selection_boundary_crease: f32Crease weight applied at selection boundaries.
edge_polylines: boolTrack the refined vertices lying along each input edge.
When enabled, the refinement result fills in its edge_polylines:
for every input edge, the refined vertex indices on it, in order.
Trait Implementations§
Source§impl Clone for UniformRefine
impl Clone for UniformRefine
Source§fn clone(&self) -> UniformRefine
fn clone(&self) -> UniformRefine
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 moreSource§impl Debug for UniformRefine
impl Debug for UniformRefine
Source§impl Default for UniformRefine
impl Default for UniformRefine
Source§impl<'de> Deserialize<'de> for UniformRefine
impl<'de> Deserialize<'de> for UniformRefine
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 UniformRefine
impl PartialEq for UniformRefine
Source§fn eq(&self, other: &UniformRefine) -> bool
fn eq(&self, other: &UniformRefine) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UniformRefine
impl Serialize for UniformRefine
impl StructuralPartialEq for UniformRefine
Auto Trait Implementations§
impl Freeze for UniformRefine
impl RefUnwindSafe for UniformRefine
impl Send for UniformRefine
impl Sync for UniformRefine
impl Unpin for UniformRefine
impl UnsafeUnpin for UniformRefine
impl UnwindSafe for UniformRefine
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