Skip to main content

Crate cadforge_core

Crate cadforge_core 

Source
Expand description

CADForge semantic core.

This crate is the authority on what a building is. Meshes, fragments, and GPU buffers are caches derived from here and are always disposable (see docs/ifc-semantics.md ADR-001).

Two invariants govern this crate, both enforceable at review time:

  1. No platform dependencies. It compiles and tests without a window, a GPU, or an event loop — cargo test -p cadforge-core on a headless machine is the check (ADR-0002).
  2. No third-party IFC types in public signatures. The IFC library is swappable precisely because nothing here knows which one is in use (ADR-0003).

Re-exports§

pub use command::CommandError;
pub use command::CommandOutcome;
pub use command::ModelCommand;
pub use element::BoundingBox;
pub use element::ElementRecord;
pub use element::IfcClass;
pub use element::Placement;
pub use id::GlobalId;
pub use model::Model;
pub use model::Revision;
pub use property::PropertySet;
pub use property::PropertySets;
pub use property::PropertyValue;
pub use representation::Representation;
pub use spatial::IndexedElement;
pub use spatial::SpatialIndex;

Modules§

command
The command model.
element
Elements and their placement.
id
IFC identity.
model
The model store.
property
Property sets.
representation
Element geometry, in the form IFC stores it.
spatial
Spatial indexing.