2013-06-23 17:07:12 +02:00
|
|
|
#ifndef _myinit_h_
|
|
|
|
|
#define _myinit_h_
|
|
|
|
|
|
2013-08-26 20:56:36 +02:00
|
|
|
// this needs to be included early for MSVC (listing it in Build.PL is not enough)
|
2013-09-23 11:27:23 +02:00
|
|
|
#undef read
|
|
|
|
|
#undef seekdir
|
2013-08-26 20:56:36 +02:00
|
|
|
#include <ostream>
|
2013-09-09 17:10:54 +02:00
|
|
|
#include <iostream>
|
2014-02-01 11:53:45 +01:00
|
|
|
#include <sstream>
|
2013-08-26 20:56:36 +02:00
|
|
|
|
2013-09-13 14:48:40 +02:00
|
|
|
#ifdef SLIC3RXS
|
2013-07-16 21:04:14 +02:00
|
|
|
extern "C" {
|
|
|
|
|
#include "EXTERN.h"
|
|
|
|
|
#include "perl.h"
|
|
|
|
|
#include "XSUB.h"
|
|
|
|
|
#include "ppport.h"
|
|
|
|
|
#undef do_open
|
|
|
|
|
#undef do_close
|
|
|
|
|
}
|
2014-05-08 14:52:48 +02:00
|
|
|
#include "perlglue.hpp"
|
2013-09-13 14:48:40 +02:00
|
|
|
#endif
|
2013-07-16 21:04:14 +02:00
|
|
|
|
2013-08-27 00:52:20 +02:00
|
|
|
#define EPSILON 1e-4
|
2013-10-13 15:59:38 +02:00
|
|
|
#define SCALING_FACTOR 0.000001
|
2014-01-05 13:16:13 +01:00
|
|
|
#define PI 3.141592653589793238
|
2013-12-09 01:12:37 +01:00
|
|
|
#define scale_(val) (val / SCALING_FACTOR)
|
2013-10-13 15:59:38 +02:00
|
|
|
#define unscale(val) (val * SCALING_FACTOR)
|
2014-01-12 23:56:07 +01:00
|
|
|
#define SCALED_EPSILON scale_(EPSILON)
|
2014-01-05 13:16:13 +01:00
|
|
|
typedef long coord_t;
|
2014-01-06 18:29:10 +01:00
|
|
|
typedef double coordf_t;
|
2013-08-27 00:52:20 +02:00
|
|
|
|
2013-07-07 22:36:14 +02:00
|
|
|
namespace Slic3r {}
|
|
|
|
|
using namespace Slic3r;
|
|
|
|
|
|
2013-09-09 17:10:54 +02:00
|
|
|
/* Implementation of CONFESS("foo"): */
|
2013-09-09 21:40:57 +02:00
|
|
|
#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"): */
|
2013-09-09 17:10:54 +02:00
|
|
|
|
2013-06-23 17:07:12 +02:00
|
|
|
#endif
|