5dbde6512203cb4a62e5422a1b908c403b74bc35
Stefan Schuermans initial version, DXFs can b...

Stefan Schuermans authored 11 years ago

1) /* drawing (DXF) to G-code (NGC) converter
2)  * Copyright 2013 Stefan Schuermans <stefan@schuermans.info>
Stefan Schuermans license CC-BY-SA --> GPL (m...

Stefan Schuermans authored 11 years ago

3)  * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html
Stefan Schuermans initial version, DXFs can b...

Stefan Schuermans authored 11 years ago

4)  */
5) 
6) #ifndef SETTINGS_H
7) #define SETTINGS_H
8) 
9) /// settings for creation of G-code
10) class Settings {
11) public:
Stefan Schuermans add support for cutting a l...

Stefan Schuermans authored 11 years ago

12)   /// layer mode
13)   enum LayerMode {
14)     LevelByLevel, ///< cut all paths at the each level (z), then next level
15)     PathByPath,   ///< cut each path all the way down, then next path
16)   };
17) 
Stefan Schuermans initial version, DXFs can b...

Stefan Schuermans authored 11 years ago

18)   /// set some reasonable/safe default settings
19)   Settings();
20) 
Stefan Schuermans add support for cutting a l...

Stefan Schuermans authored 11 years ago

21)   double    base_z;        ///< z coordinate of workpiece surface
22)   double    cut_z;         ///< z coordinate of maximum cutting
23)   double    cut_z_step;    ///< z coordinate delta to cut in one step, > 0.0
24)   double    dwell_time;    ///< dwell time before cutting each path (in sec)
25)   double    feed_drill;    ///< feed rate for drilling
26)   double    feed_mill;     ///< feed rate for milling
27)   LayerMode layer_mode;    ///< layer cutting mode (see LayerMode)
28)   double    move_z;        ///< z coordinate for moving
29)   double    offset_x;      ///< offset to add to X coordinate
30)   double    offset_y;      ///< offset to add to Y coordinate
31)   double    precision;     ///< precision, >= 1.0e-8 , <= 1.0
Stefan Schuermans supoort rotation around z axis

Stefan Schuermans authored 11 years ago

32)   double    rotation_z;    ///< rotation around Z axis in degrees
Stefan Schuermans implement scaling

Stefan Schuermans authored 11 years ago

33)   double    scale_x;       ///< scale to apply to X coordinate
34)   double    scale_y;       ///< scale to apply to Y coordinate
Stefan Schuermans add support for cutting a l...

Stefan Schuermans authored 11 years ago

35)   double    tool_diameter; ///< diameter of cutting tool, >= 0.0