2010-12-14 19:15:52 +02:00
|
|
|
/*
|
|
|
|
* ops.h - Higher-level toolpath operations
|
|
|
|
*
|
2015-09-29 00:13:02 +03:00
|
|
|
* Written 2010-2012, 2015 by Werner Almesberger
|
|
|
|
* Copyright 2010-2012, 2015 Werner Almesberger
|
2010-12-14 19:15:52 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef OPS_H
|
|
|
|
#define OPS_H
|
|
|
|
|
|
|
|
#include "path.h"
|
|
|
|
|
|
|
|
|
2015-09-29 00:13:02 +03:00
|
|
|
#define EPSILON_PURGE 1e-3
|
|
|
|
|
|
|
|
|
2011-09-05 13:54:29 +03:00
|
|
|
struct path *tool_comp_paths(const struct path *paths, int dog_bone,
|
|
|
|
int all_inside);
|
2010-12-15 09:56:58 +02:00
|
|
|
struct path *try_drill(struct path *path, double d_min, double d_max);
|
2011-09-01 03:17:29 +03:00
|
|
|
struct path *try_mill(struct path *path, double diam, double step, int any);
|
2010-12-16 19:19:46 +02:00
|
|
|
struct path *optimize_paths(struct path *paths);
|
2012-03-22 01:31:29 +02:00
|
|
|
struct path *reverse_paths(const struct path *paths);
|
2012-06-12 18:32:08 +03:00
|
|
|
struct path *select_paths(const struct path *paths, double xa, double ya,
|
|
|
|
double xb, double yb, int inside);
|
2015-09-29 00:13:02 +03:00
|
|
|
struct path *purge_paths(const struct path *paths, double len);
|
2010-12-14 19:15:52 +02:00
|
|
|
|
|
|
|
#endif /* !OPS_H */
|