pub enum MeshControl {
Coarse,
Normal,
Fine,
VeryFine,
Custom(f64),
}Expand description
Mesh density control for automated sizing based on section bounding box.
Variants§
Coarse
Coarse mesh: target_size = max_dim / 4
Normal
Normal mesh: target_size = max_dim / 6 (default)
Fine
Fine mesh: target_size = max_dim / 10
VeryFine
Very fine mesh: target_size = max_dim / 20
Custom(f64)
Custom target size (absolute value, not relative to max_dim)
Implementations§
Source§impl MeshControl
impl MeshControl
Sourcepub fn compute_target_size(self, max_dim: f64) -> f64
pub fn compute_target_size(self, max_dim: f64) -> f64
Compute target_size from section bounding box diagonal.
Sourcepub fn compute_target_size_thin_walled(self, max_dim: f64, min_edge: f64) -> f64
pub fn compute_target_size_thin_walled(self, max_dim: f64, min_edge: f64) -> f64
Compute target_size with thin-walled adjustment.
Trait Implementations§
Source§impl Clone for MeshControl
impl Clone for MeshControl
impl Copy for MeshControl
Source§impl Debug for MeshControl
impl Debug for MeshControl
Source§impl Default for MeshControl
impl Default for MeshControl
Source§impl PartialEq for MeshControl
impl PartialEq for MeshControl
impl StructuralPartialEq for MeshControl
Auto Trait Implementations§
impl Forget for MeshControl
impl Freeze for MeshControl
impl Move for MeshControl
impl RefUnwindSafe for MeshControl
impl Send for MeshControl
impl Sync for MeshControl
impl Unpin for MeshControl
impl UnsafeUnpin for MeshControl
impl UnwindSafe for MeshControl
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