コード例 #1
0
 private void push_active_path()
 {
     if (ActivePath != null && ActivePath.VertexCount > 0)
     {
         PathSet.Append(ActivePath);
     }
     ActivePath = null;
 }
コード例 #2
0
        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;
        }
コード例 #3
0
 public virtual void Begin()
 {
     PathSet    = new ToolpathSet();
     ActivePath = new LinearToolpath();
 }