1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! The in-memory entity graph.
//!
//! A parsed file becomes a set of entity instances keyed by `#id`, plus
//! two indices: forward references (what each instance points at) and
//! back references (what points at each instance).
//!
//! The back index is not an optimisation — it is load-bearing. In STEP,
//! a product's shape, its colours, its PMI and its assembly placement
//! all point *at* the product rather than away from it. A forward
//! closure from a `product_definition` reaches six entities and no
//! geometry.
//!
//! Instances are kept untyped (entity name + attribute tokens) and
//! checked against the EXPRESS schema at the attribute-count level (see
//! [`express::check`](crate::express::check)). There is no generated
//! struct per entity type.
//!
//! On top of the [`Graph`]: [`ProductStructure`] reads the assembly tree
//! and bill of materials, [`Placements`] reads the transform of each
//! assembly usage and composes them into occurrences, and [`extract`]
//! computes the self-contained closure of a product definition.
pub use ;
pub use ;
pub use Graph;
pub use ;
pub use ;