pub struct SimplificationConfig {
pub reduction_ratio: f32,
pub max_error: f32,
pub preserve_boundaries: bool,
pub preserve_topology: bool,
pub min_triangle_area: f32,
pub vertex_weld_threshold: f32,
}Expand description
Configuration for mesh simplification operations
Fields§
§reduction_ratio: f32Target reduction ratio (0.0 = no reduction, 1.0 = remove everything)
max_error: f32Maximum allowed error tolerance for simplification
preserve_boundaries: boolWhether to preserve mesh boundaries during simplification
preserve_topology: boolWhether to preserve topology (no holes created)
min_triangle_area: f32Minimum triangle area threshold (smaller triangles removed)
vertex_weld_threshold: f32Vertex welding threshold for duplicate removal
Trait Implementations§
Source§impl Clone for SimplificationConfig
impl Clone for SimplificationConfig
Source§fn clone(&self) -> SimplificationConfig
fn clone(&self) -> SimplificationConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SimplificationConfig
impl Debug for SimplificationConfig
Auto Trait Implementations§
impl Freeze for SimplificationConfig
impl RefUnwindSafe for SimplificationConfig
impl Send for SimplificationConfig
impl Sync for SimplificationConfig
impl Unpin for SimplificationConfig
impl UnsafeUnpin for SimplificationConfig
impl UnwindSafe for SimplificationConfig
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