ifc_geometry/resource/mod.rs
1//! `IfcGeometryResource`: the primitives everything else is built from.
2//!
3//! Points, directions, placements and transformation operators are the leaves
4//! of every geometry graph in an IFC file -- a swept solid, a B-rep face and a
5//! grid axis all bottom out here. They are grouped in one module because they
6//! share the two traps that make IFC geometry subtle:
7//!
8//! - **Dimension is per-instance**, not per-type: `IfcCartesianPoint` and
9//! `IfcDirection` are 2D or 3D depending on how many values the record
10//! holds, so nothing may pad silently.
11//! - **Inherited attributes come first** in a STEP record, so a subtype's own
12//! attributes start after its supertype's. `Location` is slot 0 of every
13//! `IfcPlacement` subtype for that reason.
14//!
15//! Curves, surfaces and solids build on these and live in sibling modules.
16
17pub mod axes;
18pub mod direction;
19pub mod functions;
20pub mod mapped;
21pub mod operator;
22pub mod placement;
23pub mod point;
24pub mod resolve;
25pub mod topology;
26
27pub use direction::{Direction, Vector};
28pub use mapped::{MappedInstance, MappedItem, MappingWalker, RepresentationMap};
29pub use operator::{
30 CartesianTransformationOperator, CartesianTransformationOperator2D,
31 CartesianTransformationOperator2DnonUniform, CartesianTransformationOperator3D,
32 CartesianTransformationOperator3DnonUniform,
33};
34pub use placement::{
35 axis_placement_transform, Axis1Placement, Axis2Placement, Axis2Placement2D, Axis2Placement3D,
36 Placement,
37};
38pub use point::{
39 cartesian_point_3d, CartesianPoint, CartesianPointList, CartesianPointList2D,
40 CartesianPointList3D, PointOnCurve, PointOnSurface,
41};