pub struct GeometryDiagnostics {
pub schema_version: u32,
pub total_csg_failures: u64,
pub products_with_failures: u64,
pub hosts_with_openings: u64,
pub classification: ClassificationSummary,
pub failures_by_reason: Vec<ReasonCount>,
pub silent_no_ops: u64,
pub rect_fast: RectFastSummary,
pub worst_hosts: Vec<WorstHost>,
pub oversized_ref_drops: u64,
pub total_unsupported_items: u64,
pub unsupported_items_by_type: Vec<ReasonCount>,
}Expand description
Aggregate CSG / opening diagnostics for one geometry pass — the public
diagnostics contract. Built by aggregate_diagnostics from drained router
data and serialized to the @ifc-lite/geometry complete event, and reused
verbatim by the native ProcessingStats path
(rust/processing/src/processor/mod.rs populates geometry_diagnostics).
wasm-free (serde only).
Fields§
§schema_version: u32Contract version (GEOMETRY_DIAGNOSTICS_SCHEMA_VERSION); serialized
unconditionally so consumers can gate on it. Deserializes to 0 when the
producer predates versioning.
total_csg_failures: u64Total CSG boolean failures (un-cut openings, emptied hosts, fallbacks).
products_with_failures: u64Distinct products (host elements) with at least one failure.
hosts_with_openings: u64Hosts that had openings processed.
classification: ClassificationSummaryOpening-classifier outcome counts.
failures_by_reason: Vec<ReasonCount>Failure counts by stable reason label, sorted desc by count.
silent_no_ops: u64Hosts where rectangular cutters ran but the triangle count was unchanged (cut attempted, geometry not modified) — the highest-signal “looks wrong but did not error” indicator.
rect_fast: RectFastSummaryrect_fast fast-path engagement.
worst_hosts: Vec<WorstHost>Bounded top-N worst-failing hosts (opt-in per-product detail).
oversized_ref_drops: u64Refs the content-hash pass refused (u32::MAX, #3421/#3752). Additive.
total_unsupported_items: u64Items dropped: no processor, or the processor errored. Additive.
Counted once per IfcRepresentationMap source PER ROUTER, not once per
IfcMappedItem occurrence. That is a model-wide “once” on the wasm path,
which walks a whole batch with one router. It is NOT model-wide on the
native pool: process_entity_job builds a fresh router per element, and a
source whose items all drop is refused by the shared mapped-item cache
(empty meshes are never published), so every element that instantiates it
walks it again and contributes its own count. Read the number as a lower
bound on affected types, never as a count of distinct sources or elements.
unsupported_items_by_type: Vec<ReasonCount>Self::total_unsupported_items broken down by IFC type, count-desc.
Implementations§
Source§impl GeometryDiagnostics
impl GeometryDiagnostics
Sourcepub fn has_issues(&self) -> bool
pub fn has_issues(&self) -> bool
Whether any CSG failure, silent no-op, or dropped item was recorded.
Trait Implementations§
Source§impl Clone for GeometryDiagnostics
impl Clone for GeometryDiagnostics
Source§fn clone(&self) -> GeometryDiagnostics
fn clone(&self) -> GeometryDiagnostics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeometryDiagnostics
impl Debug for GeometryDiagnostics
Source§impl Default for GeometryDiagnostics
impl Default for GeometryDiagnostics
Source§impl<'de> Deserialize<'de> for GeometryDiagnostics
impl<'de> Deserialize<'de> for GeometryDiagnostics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for GeometryDiagnostics
impl RefUnwindSafe for GeometryDiagnostics
impl Send for GeometryDiagnostics
impl Sync for GeometryDiagnostics
impl Unpin for GeometryDiagnostics
impl UnwindSafe for GeometryDiagnostics
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.