mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 19:13:52 +00:00
Moves the four WOM interchange-format handlers (--export-obj,
--export-glb, --export-stl, --import-stl) out of main.cpp into
a new cli_wom_io.{hpp,cpp} module. WOM is our open M2
replacement; these are the bridge that lets it round-trip
through every external 3D tool — Blender, Three.js, slicers,
CAD packages — so the open format is actually useful.
main.cpp shrinks by 467 lines (9,464 to 8,997). The five WOB
and WHM exporters (--export-wob-glb, --export-whm-glb, etc.)
remain inline for a follow-up extraction.
20 lines
685 B
C++
20 lines
685 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)
|
|
//
|
|
// 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
|