Skip to main content

export_stl

Kind: Function
Domain: Modeling and geometry
Canonical import: from cadflow import export_stl

Signature

def export_stl(shapes: 'Union[AnyShape, Sequence[AnyShape]]', filename: 'str') -> 'None'

Description

Export shapes to STL.

Other public imports

  • from cadflow import to_stl

Parameters

NameTypeRequiredDefaultSource description
shapes'Union[AnyShape, Sequence[AnyShape]]'yes-A single Compound, Solid, or Face, or any nested sequence of those. Lists of Solid are supported directly, including pattern or explicitly collected multi-shape results.
filename'str'yes-Output STL file path.

Returns

Type: 'None'

None: Writes the provided shapes into one STL file.

Usage: Use this function when you want to export one compound, solid, or face into the same STL file. Passing List[Solid] is valid for pattern outputs or explicit shape collections. Boolean operations return a single Solid.

Errors

The source docstring does not declare a narrower exception contract. Invalid types, values, ownership, paths, or backend state may still raise the corresponding public error.

Behavior and constraints

  • This operation writes an external artifact. Validate the returned path or output file before delivery.

Import check

from cadflow import export_stl

See also