Skip to main content

Crate ferrocad_types

Crate ferrocad_types 

Source
Expand description

§FerroCAD base types (ferrocad_types)

The kernel-independent value types, mirroring FreeCAD’s Base module, that are shared by the document core (ferrocad_core) and, later, the geometry seam and its OCCT backend.

They live in their own crate, below ferrocad_core, so a geometry backend can depend on the values it needs (Placement, Quantity, …) without pulling in the document model. See docs/architecture/occt-integration.md in the repository.

Re-exports§

pub use geometry::Matrix4;
pub use geometry::Placement;
pub use geometry::Rotation;
pub use geometry::ScaleType;
pub use geometry::TypeId;
pub use geometry::Vector3;
pub use quantity::canonical_name;
pub use quantity::parse_unit;
pub use quantity::Quantity;
pub use unit::Unit;

Modules§

geometry
Base geometry value types (FreeCAD’s Base module): Vector3, Matrix4, Rotation, Placement, and TypeId.
quantity
A Quantity (value + unit) with FreeCAD’s unit-expression parser and arithmetic.
unit
FreeCAD-style units: an 8-dimensional signature (plus angle) and a scale.