Module document

Module document 

Source
Expand description

Opt-in geometry document: object-local display-mesh definitions and f64 placed occurrences with typed identity and revision. Off every default path. Minimal geometry document: typed identity, revision and placed instances.

Opt-in and off every default path: ordinary loads never construct a [GeometryDocument], and no existing IFC production output depends on it.

What this contract is, exactly:

  • Definitions are object-local discrete meshes. Every admitted mesh is a display approximation of whatever produced it, never authored geometry: admission makes no claim of solid validity, exact source fidelity or analytic provenance.

  • Occurrences place a definition with an f64 affine transform. Placements are never baked into the definition’s f32 buffers.

  • Handles resolve only in the document that minted them.

  • Retained definitions are captured authored extrusions or rational swept disks plus their encoded worker request ([RetainedRequest]), kept apart from display meshes. A worker completion becomes a mesh only through [GeometryDocument::publish_retained_display], and then as an ordinary display approximation. No execution runtime is part of this contract yet.

Operations over definitions land with their first caller.

Structs§

DefinitionHandle
A mesh definition owned by exactly one super::GeometryDocument.
DocumentId
Process-local session identity; never an IFC entity or federation ID.
GeometryDocument
Owns object-local mesh definitions and their placed occurrences for one loaded model. Every successful admission advances Self::revision; every refusal leaves the document unchanged.
Occurrence
One placement of an object-local definition.
OccurrenceHandle
A placed occurrence owned by exactly one super::GeometryDocument.
RetainedCompletion
A worker completion for one request, with the frame the worker used.
RetainedDefinitionHandle
A retained source definition owned by exactly one GeometryDocument.
RetainedExtrusion
One authored IfcExtrudedAreaSolid, extracted inside crate::analytic::with_source_capture so its original records survive. Coefficients stay in raw IFC file length units; nothing is sampled.
RetainedRequest
An immutable snapshot of one retained definition for one worker.
RetainedSweptDisk
One authored IfcSweptDiskSolid, extracted inside crate::analytic::with_source_capture so its original records and owned directrix survive. Coefficients stay in raw IFC file length units.
RetainedTessellation
A worker’s owned f64 result. Flat corner normals and revision-local faces stay distinct from smooth analytic shading and persistent IFC faces. Positions are in the request’s evaluation frame (metres).
SweepPayload
One encoded retained request.

Enums§

DocumentError
Every refusal of the document contract. A refused call leaves the document and its revision unchanged.
RegionQualification
Evidence the executing runtime must hold before evaluating a request. The variant is derived from geometry, never from a type name alone, and holding a request grants no execution authority.
RetainedDisplayContract
What a caller wants a retained display mesh to mean. Only Self::UnstyledFlatSourceOnly is supported; every other claim is refused with its own RetainedRefusal rather than silently downgraded.
RetainedRecipe
The captured authored source or derived cutter a retained definition owns.
RetainedRefusal
Every refusal of the retained contract. A refused call leaves the document and its revision unchanged; a refused completion is never published.