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