Skip to main content

Crate cadrum

Crate cadrum 

Source
Expand description

§cadrum

Rust CAD library powered by OpenCASCADE (OCCT 8.0.0-rc5).

§Core Types

  • Solid — a single solid shape (wraps TopoDS_Shape / TopAbs_SOLID)
  • Solid has all methods directly (no trait import needed)

Re-exports§

pub use occt::edge::Edge;
pub use occt::face::Face;
pub use occt::solid::Solid;
pub use common::color::Color;
pub use common::error::Error;
pub use common::mesh::EdgeData;
pub use common::mesh::Mesh;
pub use glam;

Modules§

common
occt

Structs§

DMat3
A 3x3 column major matrix.
DMat4
A 4x4 column major matrix.
DQuat
A quaternion representing an orientation.
DVec2
A 2-dimensional vector.
DVec3
A 3-dimensional vector.

Enums§

BSplineEnd
End-condition selector for [EdgeStruct::bspline].
ProfileOrient
Controls how the cross-section profile is oriented as it travels along the spine in [SolidStruct::sweep] and [SolidStruct::sweep_sections].

Traits§

Compound
Public trait: solid-specific operations on Solid, Vec, and [Solid; N].
Wire
Public trait: edge/wire-level operations on Edge, Vec<Edge> and [Edge; N].

Functions§

mesh
read_brep_binary
read_brep_text
read_step
write_brep_binary
write_brep_text
write_step