Skip to main content

ifc_geometry/constraint/
mod.rs

1//! `IfcGeometricConstraintResource`: object placement and grids.
2//!
3//! This schema answers "where is this element in the world". It is small (11
4//! entities) and disproportionately important: nothing renders in the right
5//! place without it.
6//!
7//! # The two placement kinds
8//!
9//! - [`local::LocalPlacement`] nests. An element sits in a storey, in a
10//!   building, on a site, and world position is the composition of that chain.
11//! - [`grid::GridPlacement`] positions relative to the intersection of two
12//!   construction grid axes, which is how structural drawings are laid out.
13//!
14//! Both are `IfcObjectPlacement` subtypes, as is IFC4.3's
15//! `IfcLinearPlacement` (distance along an alignment), so a product's
16//! `ObjectPlacement` -- and any placement's `PlacementRelTo` -- may be any
17//! of them. [`local::PlacementResolver`] resolves all three (#357, #362,
18//! #363).
19
20pub mod connection;
21pub mod grid;
22pub mod local;
23pub mod placement;
24pub(crate) mod tolerance;
25
26pub use connection::ConnectionGeometry;
27pub use grid::{GridAxis, GridPlacement, VirtualGridIntersection};
28pub use local::LocalPlacement;
29pub use placement::{product_world_transform, products_world_transforms};