Skip to main content

Module resource

Module resource 

Source
Expand description

IfcGeometryResource: the primitives everything else is built from.

Points, directions, placements and transformation operators are the leaves of every geometry graph in an IFC file – a swept solid, a B-rep face and a grid axis all bottom out here. They are grouped in one module because they share the two traps that make IFC geometry subtle:

  • Dimension is per-instance, not per-type: IfcCartesianPoint and IfcDirection are 2D or 3D depending on how many values the record holds, so nothing may pad silently.
  • Inherited attributes come first in a STEP record, so a subtype’s own attributes start after its supertype’s. Location is slot 0 of every IfcPlacement subtype for that reason.

Curves, surfaces and solids build on these and live in sibling modules.

Re-exports§

pub use direction::Direction;
pub use direction::Vector;
pub use mapped::MappedInstance;
pub use mapped::MappedItem;
pub use mapped::MappingWalker;
pub use mapped::RepresentationMap;
pub use operator::CartesianTransformationOperator;
pub use operator::CartesianTransformationOperator2D;
pub use operator::CartesianTransformationOperator2DnonUniform;
pub use operator::CartesianTransformationOperator3D;
pub use operator::CartesianTransformationOperator3DnonUniform;
pub use placement::axis_placement_transform;
pub use placement::Axis1Placement;
pub use placement::Axis2Placement;
pub use placement::Axis2Placement2D;
pub use placement::Axis2Placement3D;
pub use placement::Placement;
pub use point::cartesian_point_3d;
pub use point::CartesianPoint;
pub use point::CartesianPointList;
pub use point::CartesianPointList2D;
pub use point::CartesianPointList3D;
pub use point::PointOnCurve;
pub use point::PointOnSurface;

Modules§

axes
IfcBaseAxis: deriving an orthonormal frame from optional axis hints.
direction
IfcDirection and IfcVector: orientation, with and without magnitude.
functions
EXPRESS function coverage for the three IFC geometry resources.
mapped
IfcMappedItem and IfcRepresentationMap: geometry reuse by reference.
operator
IfcCartesianTransformationOperator: the mapped-item transform.
placement
IfcPlacement and its three subtypes: where a local coordinate system is.
point
IfcPoint subtypes and the IFC4 coordinate lists.
resolve
Resolve a raw reference into a type-checked resource view.
topology
IfcTopologyResource: the faceted-B-rep entity family.