private void push_active_path() { if (ActivePath != null && ActivePath.VertexCount > 0) { PathSet.Append(ActivePath); } ActivePath = null; }
public virtual void BeginCut() { var newPath = new LinearToolpath(); newPath.Type = ToolpathTypes.Cut; if (ActivePath != null && ActivePath.VertexCount > 0) { PrintVertex curp = new PrintVertex(ActivePath.End.Position, GCodeUtil.UnspecifiedValue, PathDimensions, GCodeUtil.UnspecifiedValue); newPath.AppendVertex(curp, TPVertexFlags.IsPathStart); } push_active_path(); ActivePath = newPath; }
public virtual void Begin() { PathSet = new ToolpathSet(); ActivePath = new LinearToolpath(); }