#[non_exhaustive]pub struct ProcessOptions<'a> {Show 17 fields
pub sanitize: Option<SanitizeOptions>,
pub weld: bool,
pub orient: bool,
pub split_non_manifold_vertices: bool,
pub stitch_cracks: Option<Option<f32>>,
pub fill_holes: Option<usize>,
pub lod: Option<LodChainOptions<'a>>,
pub attributes: Option<(usize, &'a [f32])>,
pub skin: Option<ProcessSkin<'a>>,
pub cache: bool,
pub overdraw: Option<f32>,
pub fetch: bool,
pub quality: LodQualityOptions,
pub meshlets: Option<(MeshletSettings, f32)>,
pub clusters: Option<Config>,
pub index_encoding: Option<IndexEncoding>,
pub vertex_encoding: Option<VertexEncoding>,
}Expand description
Pipeline settings, not in C++ meshoptimizer. Default: sanitize, weld complete records, two successive LODs at 50%/25% with 1% error, cache/overdraw (1.05)/fetch, and sampled LOD quality. Repair, meshlets, clusters and encoding are opt-in.
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.sanitize: Option<SanitizeOptions>None validates topology without dropping triangles.
weld: boolWeld bit-identical complete records, including all attributes and skin fields.
orient: boolOrient faces before LOD generation.
split_non_manifold_vertices: boolSplit disconnected fans, copying complete records before hole filling.
stitch_cracks: Option<Option<f32>>Enable crack stitching; inner None uses a bounds-relative tolerance.
fill_holes: Option<usize>Maximum hole boundary edges; None disables filling.
lod: Option<LodChainOptions<'a>>Optional LOD chain. Attributes/flags must be absent: use attribute fields below.
attributes: Option<(usize, &'a [f32])>Byte offset and component weights for little-endian f32 simplification attributes.
skin: Option<ProcessSkin<'a>>Optional skin fields; selects the character chain builder.
cache: boolEnable cache optimization.
overdraw: Option<f32>Overdraw threshold; None disables optimization.
fetch: boolEnable vertex fetch optimization independently for each level.
quality: LodQualityOptionsLOD quality sampling settings.
meshlets: Option<(MeshletSettings, f32)>Meshlet settings and cone weight.
clusters: Option<Config>Cluster builder configuration (requires clusterlod).
index_encoding: Option<IndexEncoding>Optional index codec settings.
vertex_encoding: Option<VertexEncoding>Optional vertex codec settings.
Trait Implementations§
Source§impl<'a> Clone for ProcessOptions<'a>
impl<'a> Clone for ProcessOptions<'a>
Source§impl<'a> Debug for ProcessOptions<'a>
impl<'a> Debug for ProcessOptions<'a>
Auto Trait Implementations§
impl<'a> Forget for ProcessOptions<'a>
impl<'a> Freeze for ProcessOptions<'a>
impl<'a> RefUnwindSafe for ProcessOptions<'a>
impl<'a> Send for ProcessOptions<'a>
impl<'a> Sync for ProcessOptions<'a>
impl<'a> Unpin for ProcessOptions<'a>
impl<'a> UnsafeUnpin for ProcessOptions<'a>
impl<'a> UnwindSafe for ProcessOptions<'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