Initial work for porting PerimeterGenerator to XS

This commit is contained in:
Alessandro Ranellucci 2015-07-03 22:58:29 +02:00
parent 3e739b87da
commit b8aecbd56c
5 changed files with 187 additions and 32 deletions

View file

@ -15,6 +15,7 @@
#define PI 3.141592653589793238
#define LOOP_CLIPPING_LENGTH_OVER_NOZZLE_DIAMETER 0.15
#define SMALL_PERIMETER_LENGTH (6.5 / SCALING_FACTOR) * 2 * PI
#define INSET_OVERLAP_TOLERANCE 0.4
#define scale_(val) (val / SCALING_FACTOR)
#define unscale(val) (val * SCALING_FACTOR)
#define SCALED_EPSILON scale_(EPSILON)