pub struct HoleFillOptions {
pub refine: bool,
pub density: Scalar,
pub fairing: Option<FairOptions>,
pub max_boundary_vertices: usize,
pub max_new_vertices: usize,
}Expand description
Options of fill_hole.
Fields§
§refine: boolRefine the triangulation to the density of the surrounding mesh. Without refinement the patch uses only the boundary vertices and there is nothing to fair.
density: ScalarLiepa’s density factor alpha; larger gives smaller patch
triangles. Must be positive and finite. Default sqrt 2.
fairing: Option<FairOptions>Fair the new interior vertices; None leaves them where refinement
put them (on the flat initial triangulation).
max_boundary_vertices: usizeLargest hole accepted, in boundary vertices. The triangulation costs
O(n^4) time and O(n^3) memory: about 30 MB at the default 200.
max_new_vertices: usizeLargest number of new vertices refinement may add.
Trait Implementations§
Source§impl Clone for HoleFillOptions
impl Clone for HoleFillOptions
Source§fn clone(&self) -> HoleFillOptions
fn clone(&self) -> HoleFillOptions
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 HoleFillOptions
Source§impl Debug for HoleFillOptions
impl Debug for HoleFillOptions
Source§impl Default for HoleFillOptions
impl Default for HoleFillOptions
Source§impl PartialEq for HoleFillOptions
impl PartialEq for HoleFillOptions
impl StructuralPartialEq for HoleFillOptions
Auto Trait Implementations§
impl Freeze for HoleFillOptions
impl RefUnwindSafe for HoleFillOptions
impl Send for HoleFillOptions
impl Sync for HoleFillOptions
impl Unpin for HoleFillOptions
impl UnsafeUnpin for HoleFillOptions
impl UnwindSafe for HoleFillOptions
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