exporters

Methods

exportStep(entities) → {string|null}

Export entities to a STEP file.

Parameters:
NameTypeDescription
entitiesArray

The entities array can include Solid, Face, Edge, and Wire objects.

Returns:
  • The content of the STEP file as a binary string, or null if the export failed.
Type: 
string | null

exportStl(parameters) → {string|null}

Export entities to a binary STL file.

Parameters:
NameTypeDescription
parametersObject

Export parameters.

Properties
NameTypeAttributesDefaultDescription
entitiesArray

The entities array can include Solid, Face, Edge, and Wire objects.

linearTolerancenumber<optional>
0.01

The linear tolerance for triangulation.

angularTolerancenumber<optional>
0.05

The angular tolerance for triangulation.

Returns:
  • The content of the STL file as a binary string, or null if the export failed.
Type: 
string | null