Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "edterrain_utils.h"
- #include "roads/buildNavigationMesh.h"
- REGISTER_FUNCTION_OPERATION("buildnavigationmesh", buildNavigationMesh, "...");
- void buildNavigationMesh(const ed::ConsoleArgs& args)
- {
- if (args.size() < 2)
- {
- throw "Invalid argument count";
- }
- std::string inputFileName = args[0];
- std::string outputFileName = args[1];
- offshore::Scene surfaceScene;
- if (!surfaceScene.load(inputFileName))
- {
- throw "Invalid terrain mesh file";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment