1
0
mirror of git://projects.qi-hardware.com/cae-tools.git synced 2025-04-21 12:27:27 +03:00

cameo: detect and adjust handedness

- cameo/path.h, cameo/path.c (offset_point, path_offset): added "left"
  argument to indicate the handedness
- cameo/path.h, cameo/path.c (path_tool_is_left): new function to determine
  which way the path turns
- cameo/cameo.c: auto-detect handedness and instruct path_offset accordingly
This commit is contained in:
Werner Almesberger
2010-11-01 15:43:37 -03:00
parent 0bc780611d
commit 54d8549fa2
3 changed files with 65 additions and 11 deletions

View File

@@ -30,7 +30,9 @@ struct path {
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);
int path_direction(const struct path *path);
int path_tool_is_left(const struct path *path);
struct path *path_offset(const struct path *path, int left, int notch);
void path_free(struct path *path);
#endif /* !PATH_H */