mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-10 11:03:51 +00:00
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).
21 lines
759 B
C++
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
|