#[non_exhaustive]pub struct HiddenOptions<'a> {
pub views: HiddenViews<'a>,
pub subdivisions: u32,
pub tolerance: f64,
pub pixel_size: f64,
}Expand description
Sampling controls. Not in C++ meshoptimizer. Always available, including no_std.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.views: HiddenViews<'a>Requested views; defaults to HiddenViews::Outside.
subdivisions: u32Barycentric denominator for finite views and the outside compatibility guard, 1..=64 (default 2). Raster coverage is independent of this value. All lattice points, including vertices and edges, and the centroid are tested. There are (s+1)(s+2)/2 + 1 samples, including a repeated centroid when s is divisible by three.
tolerance: f64World-space depth tolerance (outside), or distance ignored next to each sample and viewpoint (finite views). Must be finite and nonnegative; default zero. A numerical guard of 64*f64::EPSILON times the largest absolute referenced coordinate (at least one) is added. Outside views add a relative depth guard of 1e-12 times the longest mesh side. Larger values only retain more faces.
pixel_size: f64Outside-view pixel width in world units. Zero (default) selects longest referenced bounding-box side / 128. Positive values select ceil(2side / pixel_size) pixels, at least one and at most 2048; requests above 2048 are invalid. Actual pixel width is 2side / resolution. Coarser pixels may retain more uncertain geometry. Ignored for finite views.
Trait Implementations§
Source§impl<'a> Clone for HiddenOptions<'a>
impl<'a> Clone for HiddenOptions<'a>
impl<'a> Copy for HiddenOptions<'a>
Source§impl<'a> Debug for HiddenOptions<'a>
impl<'a> Debug for HiddenOptions<'a>
Auto Trait Implementations§
impl<'a> Forget for HiddenOptions<'a>
impl<'a> Freeze for HiddenOptions<'a>
impl<'a> RefUnwindSafe for HiddenOptions<'a>
impl<'a> Send for HiddenOptions<'a>
impl<'a> Sync for HiddenOptions<'a>
impl<'a> Unpin for HiddenOptions<'a>
impl<'a> UnsafeUnpin for HiddenOptions<'a>
impl<'a> UnwindSafe for HiddenOptions<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more