Skip to main content

export_step

Function export_step 

Source
pub fn export_step(
    solids: &[BrepSolid],
    name: &str,
    unit: &str,
    timestamp: &str,
) -> Result<String, String>
Expand description

Serialize exact NURBS BREP topology as an AP242 STEP Part 21 document.

unit LABELS the caller’s coordinates (SI_UNIT($,.METRE.), .MILLI., inch and foot conversion factors): the writer does not scale them. A kernel body is in millimetres, so a metre-unit file wants the body pre-scaled by 1e-3 (transform_brep with a uniform scale) first; a millimetre body written under "meter" re-imports at 1e9 × its volume (measured 2026-10-03).