/* Starshatter: The Open Source Project Copyright (c) 2021-2024, Starshatter: The Open Source Project Contributors Copyright (c) 2011-2012, Starshatter OpenSource Distribution Contributors Copyright (c) 1997-2006, Destroyer Studios LLC. */ #include #include #include #include #include int main(int argc, char* argv[]) { if (argc < 2) return 1; std::string pathname {argv[1]}; auto solid = std::make_unique(); if (!ImportInto(pathname.c_str(), solid.get())) return 1; ModelFileOBJ exporter {(pathname + ".obj").c_str()}; exporter.Save(solid->GetModel()); }