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§
- Definition
Handle - A mesh definition owned by exactly one
super::GeometryDocument. - Document
Id - Process-local session identity; never an IFC entity or federation ID.
- Geometry
Document - 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.
- Occurrence
Handle - A placed occurrence owned by exactly one
super::GeometryDocument. - Retained
Completion - A worker completion for one request, with the frame the worker used.
- Retained
Definition Handle - A retained source definition owned by exactly one
GeometryDocument. - Retained
Extrusion - One authored
IfcExtrudedAreaSolid, extracted insidecrate::analytic::with_source_captureso its original records survive. Coefficients stay in raw IFC file length units; nothing is sampled. - Retained
Request - An immutable snapshot of one retained definition for one worker.
- Retained
Swept Disk - One authored
IfcSweptDiskSolid, extracted insidecrate::analytic::with_source_captureso its original records and owned directrix survive. Coefficients stay in raw IFC file length units. - Retained
Tessellation - 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).
- Sweep
Payload - One encoded retained request.
Enums§
- Document
Error - Every refusal of the document contract. A refused call leaves the document and its revision unchanged.
- Region
Qualification - 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.
- Retained
Display Contract - What a caller wants a retained display mesh to mean. Only
Self::UnstyledFlatSourceOnlyis supported; every other claim is refused with its ownRetainedRefusalrather than silently downgraded. - Retained
Recipe - The captured authored source or derived cutter a retained definition owns.
- Retained
Refusal - Every refusal of the retained contract. A refused call leaves the document and its revision unchanged; a refused completion is never published.