Expand description
STEP (ISO 10303) exchange: reading the B-rep solids and sheets of a STEP file into a part, and writing a part’s bodies as one — so parts travel between geop and other CAD systems; and meshes read from STL.
part21: the clear-text encoding every STEP file is written in.import: a file’s bodies as descriptions the kernel builds.export: a part’s bodies, and the parts placed in it, as a file (write_part).ImportStep: the operation adding a file’s bodies to a part.ImportStl: a mesh of triangles added to a part as a B-rep.
Re-exports§
pub use export::Step;pub use export::write_part;pub use export::write_step;pub use import::Healing;pub use import::ImportedBody;pub use import::read_step;pub use operation::ImportStep;pub use operation::ImportStepArgs;pub use operation::Imported;pub use operation::add_bodies;pub use operation::imported;pub use operation::is_step_file;pub use stl::ImportStl;pub use stl::ImportStlArgs;pub use stl::add_mesh;pub use stl::is_stl_file;pub use stl::read_stl;
Modules§
- export
- Writing a part as a STEP file (AP214, the geometry every CAD system
reads): each solid a
MANIFOLD_SOLID_BREP— aBREP_WITH_VOIDSif it has voids — and each sheet of faces standing on their own aSHELL_BASED_SURFACE_MODEL, with every surface and curve written exactly as the kernel holds it: aB_SPLINE_*_WITH_KNOTS, rational where a weight is not one. Lengths are millimetres: a length of one in the kernel is one millimetre. - import
- Reading the bodies of a STEP file (AP203, AP214, AP242 — the B-rep geometry they share) as descriptions the kernel builds.
- operation
ImportStep: add the bodies of a STEP file to the part.- part21
- ISO 10303-21 (“Part 21”), the clear-text encoding every STEP file is
written in: a header, then a data section of entity instances, each
#id = NAME(parameters);— or, for an instance of several entity types at once, a complex instance#id = (NAME1(...) NAME2(...));. - stl
ImportStl: a mesh of triangles, from an STL file, added to the part as a B-rep — a solid where it closes, a sheet where it does not.
Functions§
- register
- Adds what this crate offers an editor to
r: importing STEP files, and writing a part as one.