refactor(editor): move --import-obj into cli_wom_io.cpp

Adds --import-obj as the 5th handler in cli_wom_io.{hpp,cpp},
joining its export-side sibling. The handler is the WOM-side
counterpart to --import-wob-obj (which lives in cli_world_io
because it produces WOB) — together they close the OBJ
round-trip story for both single meshes and multi-group
buildings.

main.cpp shrinks by 183 lines (6,786 to 6,603).
This commit is contained in:
Kelsi 2026-05-09 07:50:02 -07:00
parent 549bdaf191
commit 191a821ec8
3 changed files with 189 additions and 183 deletions

View file

@ -11,6 +11,7 @@ namespace cli {
// --export-glb WOM -> glTF 2.0 binary (browsers, Three.js)
// --export-stl WOM -> ASCII STL (slicers / 3D printers)
// --import-stl ASCII STL -> WOM (round-trip from CAD tools)
// --import-obj Wavefront OBJ -> WOM (round-trip from Blender etc.)
//
// Returns true if matched; outRc holds the exit code.
bool handleWomIo(int& i, int argc, char** argv, int& outRc);