public void Reset() { DistanceMode = ParseDistanceMode.Absolute; ArcDistanceMode = ParseDistanceMode.Incremental; Unit = DistanceUnit.MM; Position = new Vector3(0.0f, 0.0f, 0.0f); ToolPath = new ToolPath(); LastGCode = -1; }
public ToolPath Split(double length) { ToolPath split = new ToolPath(); foreach (GCodeCommand c in this) { if (c is Movement) { split.AddRange(((Movement)c).Split(length)); } else { split.Add(c); } } return(split); }