-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpathlib.c.klt
67 lines (54 loc) · 1.16 KB
/
pathlib.c.klt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
%ifndef pathlib_const_t
%define pathlib_const_t
CONST
PTH_NULL = -1
--codes named the same as matplotlib.path
-- (*ref: https://matplotlib.org/3.1.0/api/path_api.html#matplotlib.path.Path)
--path node types
CONST
PTH_CLOSE = 0
PTH_MOVETO = 1
PTH_LINETO = 2
PTH_CURVE3 = 3
PTH_CURVE4 = 4
PTH_STOP = 79
--toolpath types
CONST
PTH_TOOLING = 100
PTH_LINKING = 105
--termination types
CONST
TERM_FINE = -1
TERM_CONT = 100
--coordinate stytems
CONST
PTH_CARTESAN = 1
PTH_CYLINDER = 2
PTH_POLAR = 3
--motion program enum
CONST
MOVE_DRYRUN = 1
MOVE_WORKING = 2
MOVE_SCANING = 3
-- ..note:: some of these might be redundant if fixing issue with
-- convert2pos
%define UP_NORMAL VEC(0,0,0)
%define DOWN_NORMAL VEC(180,0,0)
%define DOWN_NORMAL_VERT VEC(0,0,180)
--polar
%define POLAR_UP_NORMAL VEC(-90,0,0)
%define POLAR_DOWN_NORMAL VEC(90,0,0)
--raster types
%define NONE 0
%define ONEWAY 1
%define ZIGZAG 2
%define NEARESTNEIGHBOR 3
--..warning:: not implemented
%define BOTTOMFILL 4
%define CASCADEFILL 5
--corner defintions
%defeval LEFT_BOTTOM 1
%defeval RIGHT_BOTTOM 2
%defeval RIGHT_TOP 3
%defeval LEFT_TOP 4
%endif --pathlib_const_t