-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSimoxCGAL.cpp
40 lines (30 loc) · 992 Bytes
/
SimoxCGAL.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "SimoxCGAL.h"
#include <VirtualRobot/RuntimeEnvironment.h>
namespace SimoxCGAL
{
std::string globalAppName;
void init(const std::string &appName)
{
VirtualRobot::init(appName);
char* simox_cgal_data_path = getenv("SIMOX_CGAL_DATA_PATH");
if (simox_cgal_data_path)
{
VirtualRobot::RuntimeEnvironment::addDataPath(std::string(simox_cgal_data_path), true);
}
#ifdef Simox_CGAL_DATA_PATH
VirtualRobot::RuntimeEnvironment::addDataPath(std::string(Simox_CGAL_DATA_PATH), true);
#endif
}
void init(int &argc, char* argv[], const std::string &appName)
{
VirtualRobot::init(argc, argv, appName);
char* simox_cgal_data_path = getenv("SIMOX_CGAL_DATA_PATH");
if (simox_cgal_data_path)
{
VirtualRobot::RuntimeEnvironment::addDataPath(std::string(simox_cgal_data_path), true);
}
#ifdef Simox_CGAL_DATA_PATH
VirtualRobot::RuntimeEnvironment::addDataPath(std::string(Simox_CGAL_DATA_PATH), true);
#endif
}
}