Skip to main content

Module split

Module split 

Source
Expand description

Split command — extracts individual objects from a 3MF file into separate output files.

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

  1. Load the source 3MF file with full attachments
  2. Check for secure content (signing/encryption) — error if found
  3. Collect all split targets (by build item or by object resource)
  4. Apply –select filter to cherry-pick specific items
  5. Phase 1 — Trace dependencies for ALL items before writing any files (dry-run output or validate completeness)
  6. Phase 2 — Write each split model to a separate output file
  7. Print summary of written files

Enums§

SplitMode
Determines how the source 3MF is partitioned into output files.

Functions§

run
Entry point for the split command.