示例#1
0
 // Vertex Source Interface
 public void Rewind(int idx)
 {
     if (m_status == StrokeMath.status_e.initial)
     {
         m_src_vertices.close(true);
         if (m_auto_detect)
         {
             if (!ShapePath.is_oriented(m_orientation))
             {
                 m_orientation = (agg_math.calc_polygon_area(m_src_vertices) > 0.0) ?
                                 ShapePath.FlagsAndCommand.FlagCCW :
                                 ShapePath.FlagsAndCommand.FlagCW;
             }
         }
         if (ShapePath.is_oriented(m_orientation))
         {
             m_stroker.width(ShapePath.is_ccw(m_orientation) ? m_width : -m_width);
         }
     }
     m_status     = StrokeMath.status_e.ready;
     m_src_vertex = 0;
 }