示例#1
0
 public int arrange_orientations(int start, ShapePath.FlagsAndCommand orientation)
 {
     if (orientation != ShapePath.FlagsAndCommand.FlagNone)
     {
         while (start < vertices.total_vertices())
         {
             start = arrange_polygon_orientation(start, orientation);
             if (ShapePath.is_stop(vertices.command(start)))
             {
                 ++start;
                 break;
             }
         }
     }
     return(start);
 }
示例#2
0
 // Make path functions
 //--------------------------------------------------------------------
 public int start_new_path()
 {
     if (!ShapePath.is_stop(vertices.last_command()))
     {
         vertices.AddVertex(0.0, 0.0, ShapePath.FlagsAndCommand.CommandStop);
     }
     return(vertices.total_vertices());
 }