Skip to main content

write_step

Function write_step 

Source
pub fn write_step(document: &Document, tol: Tolerances) -> OgeomResult<String>
Expand description

Write a document as a STEP exchange file.

Products become PRODUCT trees; parts carry their solids as MANIFOLD_SOLID_BREPs in an ADVANCED_BREP_SHAPE_REPRESENTATION, and their sheets (shells no solid owns, faces no shell owns) as SHELL_BASED_SURFACE_MODELs in a MANIFOLD_SURFACE_SHAPE_REPRESENTATION; a part holding both carries both representations, related to each other. A product’s construction geometry goes in a geometrically bounded wireframe representation (a surface among it: a geometrically bounded surface one) related to the product’s, each item named; a part holding construction geometry and no body is that representation alone. Assemblies become usage occurrences with their placements; colours become styled items over the written solids, sheets and faces (a fill style) and edges (a curve style). PMI anchors to the written faces and edges through shape aspects.

§Errors

OgeomError::Construction if a shape’s structure cannot be expressed: a non-rigid instance placement, a solid with no shell, a part holding wireframe (a wire, edge or vertex outside every face) or nothing at all, a left-handed construction axis.