API

Interface IThreeMfSerializerOptions

Options controlling how meshes are exported into the 3MF model.

Notes:

  • These flags are kept generic here and are expected to be interpreted by the concrete serializer/model builder.
  • Defaults are set in AbstractThreeMfSerializer.DEFAULT_3MF_EXPORTER_OPTIONS.
interface IThreeMfSerializerOptions {
    exportInstances?: boolean;
    metadata?: Record<string, string>;
    unit?: ST_Unit;
}

Hierarchy (View Summary)

Index
exportInstances?: boolean

If true, export mesh instances (multiple references to the same geometry) when supported. If false, geometry may be duplicated depending on the concrete implementation.

metadata?: Record<string, string>
unit?: ST_Unit

define the unit. Default is millimeter