Expand description
Reading the bodies of a STEP file (AP203, AP214, AP242 — the B-rep geometry they share) as descriptions the kernel builds.
structurefinds the bodies — everyMANIFOLD_SOLID_BREP,BREP_WITH_VOIDSandSHELL_BASED_SURFACE_MODELof every product — with their units and, in an assembly, where each part is placed.geometryreads curves and surfaces and builds their NURBS.bodyreads each body’s topology and turns it into a geop body.
What it cannot read it refuses, naming the entity by type and #id
and saying why.
Re-exports§
pub use body::Healing;pub use body::ImportedBody;
Modules§
- body
- One body of a STEP file — a solid or a sheet — as a
BodySpecthe kernel builds. - geometry
- The geometry of a STEP file: points, placements, curves and surfaces as the file defines them — in millimetres, placed where the assembly puts them — and their conversion to the kernel’s NURBS.
- midpoints
- Curves and surfaces in
f64: every control point, weight and knot at the middle of its enclosure. For the work whose answer is a free choice or a measurement inf64— where to sample, a seed for a search, how far a point lies off a surface — many times cheaper than evaluating the enclosures, and off them only by roundings. The kernel itself stays in intervals: these serve the importer only, never an answer the kernel relies on (seeScalar::sharpen). - reader
- Typed access to the instances of an
Exchange: an entity of an expected type and its parameters by position, every failure naming the instance by#idand type. - structure
- Where a file’s bodies are: the shape representations holding them, the units and uncertainty each is in, and — for an assembly — where its parts are placed, flattened into one placement per body.
Functions§
- read_
exchange - Every body of the exchange file
exchange. - read_
step - Every body of the STEP file
text, in the order the file has them.