2014-08-03 17:42:29 +00:00
|
|
|
#ifndef _libslic3r_h_
|
|
|
|
#define _libslic3r_h_
|
|
|
|
|
|
|
|
// this needs to be included early for MSVC (listing it in Build.PL is not enough)
|
|
|
|
#include <ostream>
|
|
|
|
#include <iostream>
|
|
|
|
#include <sstream>
|
|
|
|
|
2015-06-17 08:38:28 +00:00
|
|
|
#define SLIC3R_VERSION "1.2.9"
|
2014-11-09 19:41:27 +00:00
|
|
|
|
2014-08-03 17:42:29 +00:00
|
|
|
#define EPSILON 1e-4
|
|
|
|
#define SCALING_FACTOR 0.000001
|
2015-07-02 16:57:40 +00:00
|
|
|
#define RESOLUTION 0.0125
|
|
|
|
#define SCALED_RESOLUTION (RESOLUTION / SCALING_FACTOR)
|
2014-08-03 17:42:29 +00:00
|
|
|
#define PI 3.141592653589793238
|
2015-07-02 18:24:16 +00:00
|
|
|
#define LOOP_CLIPPING_LENGTH_OVER_NOZZLE_DIAMETER 0.15
|
|
|
|
#define SMALL_PERIMETER_LENGTH (6.5 / SCALING_FACTOR) * 2 * PI
|
2014-08-03 17:42:29 +00:00
|
|
|
#define scale_(val) (val / SCALING_FACTOR)
|
|
|
|
#define unscale(val) (val * SCALING_FACTOR)
|
|
|
|
#define SCALED_EPSILON scale_(EPSILON)
|
|
|
|
typedef long coord_t;
|
|
|
|
typedef double coordf_t;
|
|
|
|
|
2015-04-16 19:22:04 +00:00
|
|
|
namespace Slic3r {
|
|
|
|
|
|
|
|
// TODO: make sure X = 0
|
|
|
|
enum Axis { X, Y, Z };
|
|
|
|
|
|
|
|
}
|
2014-08-03 17:42:29 +00:00
|
|
|
using namespace Slic3r;
|
|
|
|
|
|
|
|
/* Implementation of CONFESS("foo"): */
|
|
|
|
#define CONFESS(...) confess_at(__FILE__, __LINE__, __func__, __VA_ARGS__)
|
|
|
|
void confess_at(const char *file, int line, const char *func, const char *pat, ...);
|
|
|
|
/* End implementation of CONFESS("foo"): */
|
|
|
|
|
|
|
|
#endif
|