Kelsidavis-WoWee/tools/editor/cli_wom_io.hpp
Kelsi 191a821ec8 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).
2026-05-09 07:50:02 -07:00

21 lines
759 B
C++

#pragma once
namespace wowee {
namespace editor {
namespace cli {
// Dispatch the WOM <-> interchange-format handlers. WOM is our
// open M2 replacement; these export it to / import it from the
// formats every other 3D tool understands:
// --export-obj WOM -> Wavefront OBJ (universal text format)
// --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);
} // namespace cli
} // namespace editor
} // namespace wowee