forked from jkmnt/matmill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mop.cs
708 lines (584 loc) · 26.2 KB
/
mop.cs
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
using System;
using System.Reflection;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Xml.Serialization;
using CamBam;
using CamBam.CAD;
using CamBam.CAM;
using CamBam.Geom;
using CamBam.UI;
using CamBam.Values;
using CamBam.Util;
using Matmill;
namespace Trochomops
{
// toolpath combines flat trajectory and depth
class Toolpath
{
public readonly Sliced_path Trajectory;
public readonly double Top;
public readonly double Bottom;
public Polyline Leadin;
public Toolpath(Sliced_path path, double bottom, double top)
{
this.Trajectory = path;
this.Bottom = bottom;
this.Top = top;
}
}
class Traj_metainfo
{
public Vector2F Start_normal;
}
[Serializable]
public class Trochomop : MOPFromGeometry
{
[NonSerialized]
private List<Sliced_path> _trajectories = new List<Sliced_path>();
[NonSerialized]
private List<Toolpath> _toolpaths = new List<Toolpath>();
//--- these are for rendering only !
[NonSerialized]
private List<Surface> _visual_cut_widths = new List<Surface>();
[NonSerialized]
private List<Polyline> _visual_rapids = new List<Polyline>();
//--- mop properties
protected CBValue<CutOrderingOption> _cut_ordering;
protected CBValue<MillingDirectionOptions> _milling_direction;
protected CBValue<double> _depth_increment;
protected CBValue<double> _final_depth_increment;
protected CBValue<double> _stepover;
protected CBValue<double> _target_depth;
protected CBValue<LeadMoveInfo> _leadin;
protected CBValue<Matrix4x4F> _transform = default(CBValue<Matrix4x4F>);
protected double _chord_feedrate = 0;
protected double _spiral_feedrate = 0;
protected bool _should_smooth_chords = false;
protected bool _should_draw_chords = false;
//--- hidden base parameters
[XmlIgnore, Browsable(false)]
public new CBValue<OptimisationModes> OptimisationMode
{
get { return base.OptimisationMode; }
set { }
}
[XmlIgnore, Browsable(false)]
public new CBValue<Matrix4x4F> Transform
{
get { return _transform; }
set { }
}
//--- visible parameters which may be styled
[CBKeyValue, Category("Step Over"), DefaultValue(typeof(CBValue<double>), "Default"), Description("The cut is increased by this amount each step, expressed as a decimal (0-1.0) of the cutter width."), DisplayName("StepOver")]
public CBValue<double> StepOver
{
get { return _stepover; }
set { _stepover = value; }
}
[CBKeyValue, Category("Cutting Depth"), DefaultValue(typeof(CBValue<double>), "Default"), Description("Depth increment of each machining pass."), DisplayName("Depth Increment")]
public CBValue<double> DepthIncrement
{
get { return _depth_increment; }
set { _depth_increment = value; }
}
[Category("Cutting Depth"), DefaultValue(typeof(CBValue<double>), "Default"), Description("The depth increment of the final machining pass."), DisplayName("Final Depth Increment")]
public CBValue<double> FinalDepthIncrement
{
get { return _final_depth_increment; }
set { _final_depth_increment = value; }
}
[Category("Options"), DefaultValue(typeof(CBValue<MillingDirectionOptions>), "Default"), Description("Controls the direction the cutter moves around the toolpath.\r\nConventional or Climb milling supported."), DisplayName("Milling Direction")]
public CBValue<MillingDirectionOptions> MillingDirection
{
get { return _milling_direction; }
set { _milling_direction = value; }
}
[Category("Options"), DefaultValue(typeof(CBValue<CutOrderingOption>), "Default"), Description("Controls whether to cut to depth first or all cuts on this level first."), DisplayName("Cut Ordering")]
public CBValue<CutOrderingOption> CutOrdering
{
get { return _cut_ordering; }
set { _cut_ordering = value; }
}
[CBKeyValue, Category("Cutting Depth"), DefaultValue(typeof(CBValue<double>), "Default"), Description("Final depth of the machining operation."), DisplayName("Target Depth")]
public CBValue<double> TargetDepth
{
get { return _target_depth; }
set { _target_depth = value; }
}
[Category("Lead In/Out"), DefaultValue(typeof(CBValue<LeadMoveInfo>), "Default"), Description("Defines the lead in move as the tool enters the stock."), DisplayName("Lead In Move")]
public CBValue<LeadMoveInfo> LeadInMove
{
get { return _leadin; }
set { _leadin = value; }
}
//--- our own new parameters. No reason to make them CBValues, since they couldn't be styled anyway
[
CBKeyValue,
Category("Feedrates"),
DefaultValue(0),
Description("The feed rate to use for the chords and movements inside the milled pocket. If 0 use cutting feedrate."),
DisplayName("Chord Feedrate")
]
public double Chord_feedrate
{
get { return _chord_feedrate; }
set { _chord_feedrate = value; }
}
[
CBKeyValue,
Category("Feedrates"),
DefaultValue(0),
Description("The feed rate to use for the spiral opening the pocket. If 0 use cutting feedrate."),
DisplayName("Spiral Feedrate")
]
public double Spiral_feedrate
{
get { return _spiral_feedrate; }
set { _spiral_feedrate = value; }
}
[
CBAdvancedValue,
Category("Options"),
Description("Replace straight chords with the smooth arcs to form a continous toolpath. " +
"This may be useful on a machines with the slow acceleration.\n" +
"Not applied to the the mixed milling direction."),
DisplayName("Smooth chords")
]
public bool Should_smooth_chords
{
get { return _should_smooth_chords; }
set { _should_smooth_chords = value; }
}
[
CBAdvancedValue,
Category("Options"),
Description("Display the chords. The chords clutters the view, but may be useful for debug."),
DisplayName("Show chords")
]
public bool Should_draw_chords
{
get { return _should_draw_chords; }
set { _should_draw_chords = value; }
}
//-- read-only About field
[
XmlIgnore,
Category("Misc"),
DisplayName("Plugin Version"),
Description("https://github.com/jkmnt/matmill\njkmnt at git@firewood.fastmail.com")
]
public string Version
{
get { return Assembly.GetExecutingAssembly().GetName().Version.ToString(); }
}
public override bool NeedsRebuild
{
get { return _trajectories == null || _trajectories.Count == 0; }
}
private double[] get_z_layers()
{
return base.GetZLayers(base.StockSurface.Cached, _target_depth.Cached, _depth_increment.Cached, _final_depth_increment.Cached);
}
protected bool is_inch_units()
{
return base._CADFile != null && base._CADFile.DrawingUnits == Units.Inches;
}
private List<Toolpath> gen_ordered_toolpath(List<Sliced_path> trajectories, double[] bottoms)
{
List<Toolpath> toolpaths = new List<Toolpath>();
// cut ordering == level first is meaningful only for a several pockets
if (trajectories.Count < 2 || _cut_ordering.Cached == CutOrderingOption.DepthFirst)
{
foreach (Sliced_path traj in trajectories)
{
double surface = base.StockSurface.Cached;
foreach (double bot in bottoms)
{
toolpaths.Add(new Toolpath(traj, bot, surface));
surface = bot;
}
}
}
else
{
double surface = base.StockSurface.Cached;
foreach (double bot in bottoms)
{
foreach (Sliced_path traj in trajectories)
toolpaths.Add(new Toolpath(traj, bot, surface));
surface = bot;
}
}
// now insert leadins
if (_leadin.Cached != null && _leadin.Cached.LeadInType != LeadInTypeOptions.None)
{
foreach (Toolpath tp in toolpaths)
tp.Leadin = gen_leadin(tp);
}
return toolpaths;
}
private Polyline gen_leadin(Toolpath path)
{
Sliced_path_item spiral = path.Trajectory[0];
if (spiral.Item_type != Sliced_path_item_type.SPIRAL)
throw new Exception("no spiral in sliced path");
Vector2F start_normal = Vector2F.Undefined;
if (path.Trajectory.Extension != null && path.Trajectory.Extension is Traj_metainfo)
{
Traj_metainfo meta = (Traj_metainfo) path.Trajectory.Extension;
start_normal = meta.Start_normal;
}
LeadMoveInfo move = _leadin.Cached;
Polyline p = move.GetLeadInToolPath(spiral,
spiral.Direction,
start_normal,
base.PlungeFeedrate.Cached,
base.CutFeedrate.Cached,
base.StockSurface.Cached,
_depth_increment.Cached,
path.Bottom,
move.ValidSpiralAngle, path.Top - path.Bottom);
return p;
}
protected void redraw_parameters()
{
CamBamUI.MainUI.ObjectProperties.Refresh();
}
private Surface polyline_to_surface(Polyline p, double z)
{
if (base.Transform.Cached != null && !Transform.Cached.IsIdentity())
{
p = (Polyline)p.Clone();
p.ApplyTransformation(Transform.Cached);
}
PolylineToMesh mesh = new PolylineToMesh(p);
Surface surface = mesh.ToWideLine(base.ToolDiameter.Cached);
surface.ApplyTransformation(Matrix4x4F.Translation(0.0, 0.0, z - 0.001));
return surface;
}
private List<Surface> calc_visual_cut_widths(List<Toolpath> toolpaths, double first_bottom, double last_bottom)
{
List<Surface> surfaces = new List<Surface>();
foreach (Toolpath path in toolpaths)
{
// show lead-ins for the first depth level
if (path.Bottom == first_bottom && path.Leadin != null)
surfaces.Add(polyline_to_surface(path.Leadin, path.Bottom));
// show cut traces for the last depth level
if (path.Bottom == last_bottom)
{
foreach (Sliced_path_item item in path.Trajectory)
{
if (item.Item_type == Sliced_path_item_type.SLICE || item.Item_type == Sliced_path_item_type.SPIRAL)
surfaces.Add(polyline_to_surface(item, path.Bottom));
}
}
}
return surfaces;
}
private List<Polyline> calc_visual_rapids(List<Toolpath> toolpaths)
{
List<Polyline> rapids = new List<Polyline>();
double thres = base.GetDistanceThreshold();
Point3F lastpt = Point3F.Undefined;
// rapids are possible only between depth levels of pocket and separate pockets
foreach (Toolpath path in toolpaths)
{
if (! lastpt.IsUndefined)
{
Point3F to;
if (path.Leadin != null)
to = path.Leadin.FirstPoint;
else
to = (Point3F)path.Trajectory[0].FirstPoint;
double dist = Point2F.Distance((Point2F)lastpt, (Point2F)to);
if (dist > thres + (double)CamBamConfig.Defaults.GeneralTolerance)
{
// rapid here from last to first point of pocket
Polyline p = new Polyline();
p.Add(lastpt);
p.Add(new Point3F(lastpt.X, lastpt.Y, ClearancePlane.Cached));
p.Add(new Point3F(to.X, to.Y, ClearancePlane.Cached));
p.Add(new Point3F(to.X, to.Y, path.Bottom + to.Z));
rapids.Add(p);
}
}
lastpt = path.Trajectory[path.Trajectory.Count - 1].LastPoint;
lastpt = new Point3F(lastpt.X, lastpt.Y, path.Bottom);
}
return rapids;
}
private void print_toolpath_stats(List<Toolpath> toolpaths, List<Polyline> rapids)
{
double leadins_len = 0;
double spirals_len = 0;
double slices_len = 0;
double moves_len = 0;
double rapids_len = 0;
// collect cut lengths
foreach (Toolpath path in toolpaths)
{
if (path.Leadin != null)
leadins_len += path.Leadin.GetPerimeter();
foreach (Sliced_path_item item in path.Trajectory)
{
double len = item.GetPerimeter();
switch (item.Item_type)
{
case Sliced_path_item_type.SPIRAL:
spirals_len += len;
break;
case Sliced_path_item_type.SLICE:
slices_len += len;
break;
case Sliced_path_item_type.CHORD:
case Sliced_path_item_type.SMOOTH_CHORD:
case Sliced_path_item_type.GUIDE:
case Sliced_path_item_type.SLICE_SHORTCUT:
moves_len += len;
break;
}
}
}
// collect rapids lengths
foreach (Polyline p in rapids)
{
rapids_len += p.GetPerimeter();
}
double cut_len = leadins_len + spirals_len + slices_len + moves_len;
Logger.log(2, TextTranslation.Translate("Toolpath distance '{0}' : {1} + rapids : {2} = total : {3}"),
base.Name,
cut_len,
rapids_len,
cut_len + rapids_len);
// calculate feedrates
double normal_feedrate = base.CutFeedrate.Cached;
if (normal_feedrate <= 0)
return;
double chord_feedrate = _chord_feedrate != 0 ? _chord_feedrate : normal_feedrate;
double spiral_feedrate = _spiral_feedrate != 0 ? _spiral_feedrate : normal_feedrate;
double leadin_feedrate = _leadin.Cached != null && _leadin.Cached.LeadInFeedrate != 0 ? _leadin.Cached.LeadInFeedrate : normal_feedrate;
double rapid_feedrate = 600; // something big
double cut_time = 0;
cut_time += leadins_len / leadin_feedrate;
cut_time += spirals_len / spiral_feedrate;
cut_time += slices_len / normal_feedrate;
cut_time += moves_len / chord_feedrate;
double rapid_time = rapids_len / rapid_feedrate;
TimeSpan cut_dur = new TimeSpan(0, 0, (int)(cut_time * 60.0));
TimeSpan rapids_dur = new TimeSpan(0, 0, (int)(rapid_time * 60.0));
Logger.log(2, TextTranslation.Translate("Estimated Toolpath '{0}' duration : {1} + rapids : {2} = total : {3}"),
base.Name,
cut_dur,
rapids_dur,
cut_dur + rapids_dur);
}
internal void reset_toolpaths()
{
_trajectories.Clear();
_toolpaths.Clear();
_visual_cut_widths.Clear();
_visual_rapids.Clear();
GC.Collect();
}
internal void insert_toolpaths(List<Sliced_path> trajectories)
{
_trajectories = trajectories;
double[] bottoms = get_z_layers();
_toolpaths = gen_ordered_toolpath(_trajectories, bottoms);
_visual_cut_widths = calc_visual_cut_widths(_toolpaths, bottoms[0], bottoms[bottoms.Length - 1]);
_visual_rapids = calc_visual_rapids(_toolpaths);
print_toolpath_stats(_toolpaths, _visual_rapids);
}
private void emit_toolpath(MachineOpToGCode gcg, Toolpath path)
{
// first item is the spiral by convention
if (path.Trajectory[0].Item_type != Sliced_path_item_type.SPIRAL)
throw new Exception("no spiral in sliced path");
CBValue<double> normal_feedrate = base.CutFeedrate;
CBValue<double> chord_feedrate = _chord_feedrate != 0 ? new CBValue<double>(_chord_feedrate) : base.CutFeedrate;
CBValue<double> spiral_feedrate = _spiral_feedrate != 0 ? new CBValue<double>(_spiral_feedrate) : base.CutFeedrate;
CBValue<double> leadin_feedrate = _leadin.Cached != null && _leadin.Cached.LeadInFeedrate != 0 ? new CBValue<double>(_leadin.Cached.LeadInFeedrate) : base.CutFeedrate;
if (path.Leadin != null)
{
base.CutFeedrate = leadin_feedrate;
Polyline p = (Polyline)path.Leadin.Clone();
p.ApplyTransformation(Matrix4x4F.Translation(0, 0, path.Bottom));
gcg.AppendPolyLine(p, double.NaN);
}
foreach (Sliced_path_item item in path.Trajectory)
{
switch (item.Item_type)
{
case Sliced_path_item_type.SPIRAL:
base.CutFeedrate = spiral_feedrate;
break;
case Sliced_path_item_type.SLICE:
base.CutFeedrate = normal_feedrate;
break;
case Sliced_path_item_type.CHORD:
case Sliced_path_item_type.SMOOTH_CHORD:
case Sliced_path_item_type.SLICE_SHORTCUT:
case Sliced_path_item_type.GUIDE:
base.CutFeedrate = chord_feedrate;
break;
default:
throw new Exception("unknown item type in sliced trajectory");
}
Polyline p = (Polyline)item.Clone();
p.ApplyTransformation(Matrix4x4F.Translation(0, 0, path.Bottom));
gcg.AppendPolyLine(p, double.NaN);
}
base.CutFeedrate = normal_feedrate;
}
public override List<Polyline> GetOutlines()
{
List<Polyline> outlines = new List<Polyline>();
foreach (Toolpath path in _toolpaths)
{
foreach (Sliced_path_item p in path.Trajectory)
{
if (p.Item_type != Sliced_path_item_type.SLICE && p.Item_type != Sliced_path_item_type.SPIRAL)
continue;
Matrix4x4F mx = new Matrix4x4F();
mx.Translate(0.0, 0.0, path.Bottom);
if (Transform.Cached != null)
mx *= Transform.Cached;
Polyline poly = (Polyline) p.Clone();
poly.ApplyTransformation(mx);
outlines.Add(poly);
}
}
return outlines;
}
public override Point3F GetInitialCutPoint()
{
if (_toolpaths.Count == 0) return Point3F.Undefined;
Toolpath tp0 = _toolpaths[0];
if (tp0.Leadin != null)
return new Point3F(tp0.Leadin.FirstPoint.X, tp0.Leadin.FirstPoint.Y, tp0.Leadin.FirstPoint.Z + tp0.Bottom);
if (tp0.Trajectory.Count == 0) return Point3F.Undefined;
Sliced_path_item ppi = tp0.Trajectory[0];
if (ppi.Points.Count == 0) return Point3F.Undefined;
Point3F pt = ppi.Points[0].Point;
return new Point3F(pt.X, pt.Y, tp0.Bottom);
}
private void paint_toolpath(ICADView iv, Display3D d3d, Color arccolor, Color linecolor, Toolpath path)
{
Polyline leadin = path.Leadin;
Color chord_color = Color.FromArgb(128, CamBamConfig.Defaults.ToolpathRapidColor);
if (leadin != null)
{
Matrix4x4F mx = new Matrix4x4F();
mx.Translate(0.0, 0.0, path.Bottom);
if (Transform.Cached != null)
mx *= Transform.Cached;
d3d.ModelTransform = mx;
d3d.LineWidth = 1F;
leadin.Paint(d3d, arccolor, linecolor);
base.PaintDirectionVector(iv, leadin, d3d, mx);
}
foreach (Sliced_path_item p in path.Trajectory)
{
Color acol = arccolor;
Color lcol = linecolor;
if (p.Item_type == Sliced_path_item_type.CHORD || p.Item_type == Sliced_path_item_type.SMOOTH_CHORD || p.Item_type == Sliced_path_item_type.SLICE_SHORTCUT)
{
if (! _should_draw_chords)
continue;
acol = chord_color;
lcol = chord_color;
}
if (p.Item_type == Sliced_path_item_type.DEBUG_MEDIAL_AXIS)
{
acol = Color.Cyan;
lcol = Color.Cyan;
}
Matrix4x4F mx = new Matrix4x4F();
mx.Translate(0.0, 0.0, path.Bottom);
if (Transform.Cached != null)
mx *= Transform.Cached;
d3d.ModelTransform = mx;
d3d.LineWidth = 1F;
p.Paint(d3d, acol, lcol);
base.PaintDirectionVector(iv, p, d3d, mx);
}
}
private void paint_cut_widths(Display3D d3d)
{
d3d.LineColor = CamBamConfig.Defaults.CutWidthColor;
d3d.LineStyle = LineStyle.Solid;
d3d.LineWidth = 0F;
d3d.ModelTransform = Matrix4x4F.Identity;
d3d.UseLighting = false;
foreach (Surface s in _visual_cut_widths)
s.Paint(d3d);
d3d.UseLighting = true;
}
private void paint_rapids(Display3D d3d)
{
d3d.LineWidth = 1f;
d3d.LineColor = CamBamConfig.Defaults.ToolpathRapidColor;
d3d.ModelTransform = Matrix4x4F.Identity;
d3d.LineStyle = LineStyle.Dotted;
foreach (Polyline p in _visual_rapids)
p.Paint(d3d);
d3d.LineStyle = LineStyle.Solid;
}
public override void PostProcess(MachineOpToGCode gcg)
{
gcg.DefaultStockHeight = base.StockSurface.Cached;
if (_trajectories.Count == 0)
return;
CBValue<double> original_feedrate = base.CutFeedrate;
// NOTE: toolpaths are emit in a hacky way to allow variable feedrate.
// CutFeedrate base setting is patched before posting each toolpath item,
// and should be restored in the end
try
{
foreach(Toolpath path in _toolpaths)
emit_toolpath(gcg, path);
}
finally
{
base.CutFeedrate = original_feedrate;
}
}
public override void Paint(ICADView iv, Display3D d3d, Color arccolor, Color linecolor, bool selected)
{
// XXX: what this line for ?
base._CADFile = iv.CADFile;
if (_trajectories.Count == 0) return;
foreach (Toolpath item in _toolpaths)
paint_toolpath(iv, d3d, arccolor, linecolor, item);
if (base._CADFile.ShowCutWidths)
paint_cut_widths(d3d);
if (base._CADFile.ShowRapids)
paint_rapids(d3d);
if (selected)
base.PaintStartPoint(iv, d3d);
}
public Trochomop(Trochomop src) : base(src)
{
CutOrdering = src.CutOrdering;
MillingDirection = src.MillingDirection;
DepthIncrement = src.DepthIncrement;
FinalDepthIncrement = src.FinalDepthIncrement;
StepOver = src.StepOver;
TargetDepth = src.TargetDepth;
LeadInMove = src.LeadInMove;
Chord_feedrate = src.Chord_feedrate;
Spiral_feedrate = src.Spiral_feedrate;
Should_smooth_chords = src.Should_smooth_chords;
Should_draw_chords = src.Should_draw_chords;
}
public Trochomop()
{
}
public Trochomop(CADFile CADFile, ICollection<Entity> plist) : base(CADFile, plist)
{
}
}
}