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

cameo/: added option "any" to "mill", to accept paths irrespective of tool size

This commit is contained in:
Werner Almesberger
2011-08-31 21:17:29 -03:00
parent 54101eaaf4
commit 75c3a7d1d2
5 changed files with 47 additions and 22 deletions

View File

@@ -1,8 +1,8 @@
/*
* ops.c - Higher-level toolpath operations
*
* Written 2010 by Werner Almesberger
* Copyright 2010 Werner Almesberger
* Written 2010-2011 by Werner Almesberger
* Copyright 2010-2011 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
@@ -74,9 +74,9 @@ struct path *try_drill(struct path *path, double d_min, double d_max)
}
struct path *try_mill(struct path *path, double diam, double step)
struct path *try_mill(struct path *path, double diam, double step, int any)
{
if (path->r_tool*2 < diam)
if (!any && path->r_tool*2 < diam)
return NULL;
if (!path->first)
return NULL;