dmitrysenkovich

Untitled

Aug 25th, 2014
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.47 KB | None | 0 0
  1. #include "edterrain_utils.h"
  2. #include "roads/buildNavigationMesh.h"
  3.  
  4. REGISTER_FUNCTION_OPERATION("buildnavigationmesh", buildNavigationMesh, "...");
  5.  
  6. void buildNavigationMesh(const ed::ConsoleArgs& args)
  7. {
  8.     if (args.size() < 2)
  9.     {
  10.         throw "Invalid argument count";
  11.     }
  12.  
  13.     std::string inputFileName = args[0];
  14.     std::string outputFileName = args[1];
  15.  
  16.     offshore::Scene surfaceScene;
  17.     if (!surfaceScene.load(inputFileName))
  18.     {
  19.         throw "Invalid terrain mesh file";
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment