Skip to main content

import_step_report

Function import_step_report 

Source
pub fn import_step_report(text: &str) -> Result<StepImportReport, String>
Expand description

Like import_step but reports how many bodies failed and the first error, so callers can distinguish a fully- from a partially-imported assembly — and runs the stated-precision consistency check over the imported bodies, whose result rides in StepImportReport::diagnostics.

The check measures every edge and vertex of every body (the same EntityTolerances reading the per-entity-tolerance census took), which is why it lives on this lane and not on import_step_with_appearance: the feature pipeline has no diagnostics channel to carry the answer, and a measurement nobody reads is not worth its cost on every IMPORT3D.