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

cameo/: add "stl" command to generate STL slices (WIP)

This commit is contained in:
Werner Almesberger
2013-10-13 22:10:43 -03:00
parent ca271dd313
commit 8b6e4168d3
5 changed files with 75 additions and 8 deletions

View File

@@ -2,8 +2,8 @@
/*
* lang.y - Toolpath adaptation language
*
* Written 2010-2012 by Werner Almesberger
* Copyright 2010-2012 by Werner Almesberger
* Written 2010-2013 by Werner Almesberger
* Copyright 2010-2013 by 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
@@ -232,7 +232,7 @@ static struct path **classify(struct path **anchor, struct path *path)
%token TOK_FLIP TOK_KEEP TOK_MILL TOK_OFFSET TOK_OPTIMIZE
%token TOK_OUTSIDE TOK_REMAINDER
%token TOK_REMOVE TOK_RESET
%token TOK_REVERSE TOK_ROTATE TOK_STATS TOK_TRANSLATE
%token TOK_REVERSE TOK_ROTATE TOK_STATS TOK_STL TOK_TRANSLATE
%token TOK_X TOK_Y TOK_Z
%token TOK_APPEND TOK_GERBER TOK_GNUPLOT TOK_EXCELLON TOK_WRITE
%token TOK_DOG TOK_INSIDE TOK_ANY
@@ -410,6 +410,10 @@ command:
clear_paths();
paths = tmp;
}
| TOK_STL opt_filename
{
stl($2, paths);
}
| TOK_MILL opt_any dimen dimen
{
struct path **walk;