pub struct NormalPrecisionMode(/* private fields */);
Expand description
Setting dictating how much can any normal in a model deviate, expressed as an angle.
Implementations§
Source§impl NormalPrecisionMode
impl NormalPrecisionMode
Sourcepub fn from_deg_dev(deg: FloatType) -> Self
pub fn from_deg_dev(deg: FloatType) -> Self
Creates NormalPrecisionMode
from maximal allowed deviation angle in degrees, for radians use Self::from_rad_dev
// Maximal angle between compressed and original normal will be 1.0 degrees.
let dev_1_deg = NormalPrecisionMode::from_deg_dev(1.0);
// Maximal angle between compressed and original normal will be 0.01 degrees.
let dev_0_point_01_deg = NormalPrecisionMode::from_deg_dev(0.01);
// Maximal angle between compressed and original normal will be 5.0 degrees.
let dev_5_deg = NormalPrecisionMode::from_deg_dev(5.0);
Sourcepub fn from_rad_dev(rad: FloatType) -> Self
pub fn from_rad_dev(rad: FloatType) -> Self
Creates NormalPrecisionMode from maximal allowed deviation angle in radians, for degrees use Self::from_deg_dev
// Maximal angle between compressed and original normal will be 0.01 radians
let dev_0_point_01_rad = NormalPrecisionMode::from_rad_dev(0.01);
// Maximal angle between compressed and original normal will be 0.05 radians
let dev_0_point_05_rad = NormalPrecisionMode::from_rad_dev(0.05);
Trait Implementations§
Source§impl Clone for NormalPrecisionMode
impl Clone for NormalPrecisionMode
Source§fn clone(&self) -> NormalPrecisionMode
fn clone(&self) -> NormalPrecisionMode
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 NormalPrecisionMode
impl Default for NormalPrecisionMode
Source§impl PartialEq for NormalPrecisionMode
impl PartialEq for NormalPrecisionMode
impl Copy for NormalPrecisionMode
impl StructuralPartialEq for NormalPrecisionMode
Auto Trait Implementations§
impl Freeze for NormalPrecisionMode
impl RefUnwindSafe for NormalPrecisionMode
impl Send for NormalPrecisionMode
impl Sync for NormalPrecisionMode
impl Unpin for NormalPrecisionMode
impl UnwindSafe for NormalPrecisionMode
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