pub struct VertexPrecisionMode(pub FloatType);Expand description
Setting dictating how much the length of any edge can change because of vertex precision loss during saving. This is expressed as a fraction of the length of the shortest edge.
// No edge will deviate by more than 0.1(10%) of the shortest edge in the model,
// eg. for edges 10, 234, and 1, their length will not change by more than 1*0.1 = 0.1
let ten_percent = VertexPrecisionMode(0.1);
// No edge will deviate by more than 0.025(2.5%) of the shortest edge in the model,
// eg. for edges 10, 234, and 1, their length will not change by more than 1*0.025 = 0.025
let two_and_half_percent = VertexPrecisionMode(0.025);Tuple Fields§
§0: FloatTypeTrait Implementations§
Source§impl Clone for VertexPrecisionMode
impl Clone for VertexPrecisionMode
Source§fn clone(&self) -> VertexPrecisionMode
fn clone(&self) -> VertexPrecisionMode
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 Default for VertexPrecisionMode
impl Default for VertexPrecisionMode
Source§impl PartialEq for VertexPrecisionMode
impl PartialEq for VertexPrecisionMode
impl Copy for VertexPrecisionMode
impl StructuralPartialEq for VertexPrecisionMode
Auto Trait Implementations§
impl Freeze for VertexPrecisionMode
impl RefUnwindSafe for VertexPrecisionMode
impl Send for VertexPrecisionMode
impl Sync for VertexPrecisionMode
impl Unpin for VertexPrecisionMode
impl UnwindSafe for VertexPrecisionMode
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