Kelsidavis-WoWee/tools/editor/cli_mesh_edit.hpp
Kelsi 3da5e5517f refactor(editor): extract 10 mesh edit ops into cli_mesh_edit.cpp
Moves the WOM mesh editing/transform handlers out of main.cpp:

  --add-texture-to-mesh   --scale-mesh
  --translate-mesh        --strip-mesh
  --rotate-mesh           --center-mesh
  --flip-mesh-normals     --mirror-mesh
  --smooth-mesh-normals   --merge-meshes

These are the post-generation manipulators (load → mutate → save)
distinct from the geometry generators in cli_gen_mesh.cpp and
the heightmap I/O in cli_mesh_io.cpp.

main.cpp drops 20,741 → 20,005 lines (-736). Behavior verified
by piping a fresh cube through scale → translate → center.
2026-05-09 00:36:51 -07:00

19 lines
530 B
C++

#pragma once
namespace wowee {
namespace editor {
namespace cli {
// Dispatch the WOM mesh editing/transform commands:
// --add-texture-to-mesh --scale-mesh
// --translate-mesh --strip-mesh
// --rotate-mesh --center-mesh
// --flip-mesh-normals --mirror-mesh
// --smooth-mesh-normals --merge-meshes
//
// Returns true if matched; outRc holds the exit code.
bool handleMeshEdit(int& i, int argc, char** argv, int& outRc);
} // namespace cli
} // namespace editor
} // namespace wowee