Skip to main content

Module merge

Module merge 

Source
Expand description

Merge command — combines multiple 3MF files into a single output file.

This module implements the core merge engine for the 3mf merge command. The merge pipeline:

  1. Expand glob patterns in inputs
  2. Load all input files with full attachments
  3. Check for secure content (signing/encryption) — error if found
  4. Compute ID offset for each file (max ID in merged so far + 1)
  5. Remap all ResourceId cross-references in each model
  6. Merge attachments with path deduplication
  7. Update texture/displacement paths after attachment remap
  8. Combine all resources into one merged Model
  9. Apply placement (plate-per-file or single-plate)
  10. Write merged model to output

Enums§

PackAlgorithm
Packing algorithm for single-plate mode.
Verbosity
Verbosity level for merge output.

Functions§

run
Entry point for the merge command.