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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user