#[non_exhaustive]pub struct RemeshOptions {
pub target_edge_length: Scalar,
pub iterations: u32,
pub feature_angle: Option<Scalar>,
}Expand description
What to remesh towards.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.target_edge_length: ScalarTarget edge length L, in model units.
iterations: u32Split-collapse-flip-relax iterations.
feature_angle: Option<Scalar>Dihedral angle, in radians, above which an interior edge is a sharp
feature and protected like a boundary edge. None protects only the
boundary.
Implementations§
Source§impl RemeshOptions
impl RemeshOptions
Sourcepub const DEFAULT_ITERATIONS: u32 = 5
pub const DEFAULT_ITERATIONS: u32 = 5
Iterations run by default, as in Botsch and Kobbelt’s paper.
Sourcepub const DEFAULT_FEATURE_ANGLE: Scalar = core::f64::consts::FRAC_PI_3
pub const DEFAULT_FEATURE_ANGLE: Scalar = core::f64::consts::FRAC_PI_3
Default feature angle: 60 degrees between face normals.
Sourcepub fn new(target_edge_length: Scalar) -> Self
pub fn new(target_edge_length: Scalar) -> Self
Remesh towards target_edge_length with the default iterations and
feature angle.
Sourcepub fn with_iterations(self, iterations: u32) -> Self
pub fn with_iterations(self, iterations: u32) -> Self
The same options with another iteration count.
Sourcepub fn with_feature_angle(self, feature_angle: Option<Scalar>) -> Self
pub fn with_feature_angle(self, feature_angle: Option<Scalar>) -> Self
The same options with another feature angle; None protects only
the boundary.
Trait Implementations§
Source§impl Clone for RemeshOptions
impl Clone for RemeshOptions
Source§fn clone(&self) -> RemeshOptions
fn clone(&self) -> RemeshOptions
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 RemeshOptions
Source§impl Debug for RemeshOptions
impl Debug for RemeshOptions
Source§impl PartialEq for RemeshOptions
impl PartialEq for RemeshOptions
impl StructuralPartialEq for RemeshOptions
Auto Trait Implementations§
impl Freeze for RemeshOptions
impl RefUnwindSafe for RemeshOptions
impl Send for RemeshOptions
impl Sync for RemeshOptions
impl Unpin for RemeshOptions
impl UnsafeUnpin for RemeshOptions
impl UnwindSafe for RemeshOptions
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