mirror of
git://projects.qi-hardware.com/cae-tools.git
synced 2025-04-21 12:27:27 +03:00
Introducing cameo, a toolbox of CAM operations.
This commit is contained in:
36
cameo/path.h
Normal file
36
cameo/path.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* path.h - Toolpath operations
|
||||
*
|
||||
* Written 2010 by Werner Almesberger
|
||||
* Copyright 2010 Werner Almesberger
|
||||
*
|
||||
* 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 PATH_H
|
||||
#define PATH_H
|
||||
|
||||
|
||||
struct point {
|
||||
double x, y, z; /* mm */
|
||||
struct point *next;
|
||||
};
|
||||
|
||||
struct path {
|
||||
struct point *first, *last;
|
||||
double r_tool; /* mm */
|
||||
struct path *next;
|
||||
};
|
||||
|
||||
|
||||
struct path *path_new(double r_tool);
|
||||
void path_add(struct path *path, double x, double y, double z);
|
||||
struct path *path_reverse(const struct path *path);
|
||||
struct path *path_offset(const struct path *path, int notch);
|
||||
void path_free(struct path *path);
|
||||
|
||||
#endif /* !PATH_H */
|
||||
Reference in New Issue
Block a user