merge
commit
6d835b2ac1
|
@ -21,13 +21,8 @@
|
||||||
|
|
||||||
/* Choice of precision */
|
/* Choice of precision */
|
||||||
#ifdef DOUBLE_PRECISION
|
#ifdef DOUBLE_PRECISION
|
||||||
#define Float double
|
|
||||||
#define Epsilon 1e-6
|
#define Epsilon 1e-6
|
||||||
#else
|
#else
|
||||||
#ifndef SINGLE_PRECISION
|
|
||||||
#define SINGLE_PRECISION
|
|
||||||
#endif
|
|
||||||
#define Float float
|
|
||||||
#define Epsilon 1e-4f
|
#define Epsilon 1e-4f
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,14 @@ using std::cout;
|
||||||
using std::cerr;
|
using std::cerr;
|
||||||
using std::endl;
|
using std::endl;
|
||||||
|
|
||||||
|
#if defined(DOUBLE_PRECISION)
|
||||||
|
typedef double Float;
|
||||||
|
#elif defined(SINGLE_PRECISION)
|
||||||
|
typedef float Float;
|
||||||
|
#else
|
||||||
|
#error No precision flag was defined!
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Include a basic subset of the core classes
|
* Include a basic subset of the core classes
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -24,16 +24,7 @@
|
||||||
#include <ply/ply_parser.hpp>
|
#include <ply/ply_parser.hpp>
|
||||||
|
|
||||||
#if MTS_USE_BOOST_TR1
|
#if MTS_USE_BOOST_TR1
|
||||||
# if defined(Float)
|
|
||||||
# define MTS_Float
|
|
||||||
# pragma push_macro("Float")
|
|
||||||
# undef Float
|
|
||||||
# endif
|
|
||||||
#include <boost/tr1/functional.hpp>
|
#include <boost/tr1/functional.hpp>
|
||||||
# if defined(MTS_Float)
|
|
||||||
# pragma pop_macro("Float")
|
|
||||||
# undef MTS_Float
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
|
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
|
@ -30,18 +30,9 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MTS_USE_BOOST_TR1
|
#if MTS_USE_BOOST_TR1
|
||||||
# if defined(Float)
|
|
||||||
# define MTS_Float
|
|
||||||
# pragma push_macro("Float")
|
|
||||||
# undef Float
|
|
||||||
# endif
|
|
||||||
#include <boost/tr1/functional.hpp>
|
#include <boost/tr1/functional.hpp>
|
||||||
#include <boost/tr1/memory.hpp>
|
#include <boost/tr1/memory.hpp>
|
||||||
#include <boost/tr1/tuple.hpp>
|
#include <boost/tr1/tuple.hpp>
|
||||||
# if defined(MTS_Float)
|
|
||||||
# pragma pop_macro("Float")
|
|
||||||
# undef MTS_Float
|
|
||||||
# endif
|
|
||||||
#else
|
#else
|
||||||
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
|
#if defined(_MSC_VER) && (_MSC_VER >= 1600)
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
Loading…
Reference in New Issue