pub struct RouterConfig {
pub unit_scale: f64,
pub rtc_offset: (f64, f64, f64),
pub tessellation_quality: TessellationQuality,
pub local_frame: Option<bool>,
pub skip_small_cuts: bool,
pub instancing_batch_local: bool,
}Expand description
How a GeometryRouter meshes. Plain data: Clone, comparable, built once
per load and handed to every per-element or per-batch router. Resource
budgets, deadlines and live cache accounts belong to the execution domain
and are not copied or reset by this configuration.
Fields§
§unit_scale: f64Unit scale factor (e.g. 0.001 for millimetres to metres), applied to all
mesh positions after processing. A non-finite or non-positive scale
refuses the router (see GeometryRouter::length_unit_refused) and the
effective scale reads back as 1.0.
rtc_offset: (f64, f64, f64)RTC (Relative-to-Center) offset, subtracted from world positions in f64 before converting to f32 to preserve precision (e.g. Swiss UTM).
tessellation_quality: TessellationQualityTessellation detail level, passed to every processor’s process.
local_frame: Option<bool>Per-router local-frame choice. None retains the target/env default;
appearance authoring sets this explicitly so its canonical surface
identity cannot vary between native and wasm builds (#4550). Mesh caches
are frame-dependent, so it is fixed before any geometry is produced.
skip_small_cuts: boolPer-build small-cut skip (#1286): a solid-solid DIFFERENCE with a tiny
cutter is dropped without forcing a preview tessellation tier. Scoped to
the router, so concurrent native builds never bleed the flag into one
another. false keeps every cut.
instancing_batch_local: bool#1623 Phase 3 template-selection mode for the don’t-bake path. false
(NATIVE): the deterministic global template is the plan’s min-id
occurrence, so every occurrence resolves against ONE model-wide template
across the rayon pool. true (the WASM per-BATCH path): the router
meshes one batch serially and the FIRST occurrence of each source it
sees is the template, so each per-batch shard is self-contained. Both
emit geometrically identical world triangles.
Trait Implementations§
Source§impl Clone for RouterConfig
impl Clone for RouterConfig
Source§fn clone(&self) -> RouterConfig
fn clone(&self) -> RouterConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RouterConfig
impl Debug for RouterConfig
Source§impl Default for RouterConfig
impl Default for RouterConfig
Source§impl PartialEq for RouterConfig
impl PartialEq for RouterConfig
impl StructuralPartialEq for RouterConfig
Auto Trait Implementations§
impl Freeze for RouterConfig
impl RefUnwindSafe for RouterConfig
impl Send for RouterConfig
impl Sync for RouterConfig
impl Unpin for RouterConfig
impl UnwindSafe for RouterConfig
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.