Esempio n. 1
0
        // Vertex Source Interface
        void RewindZero()
        {
            if (m_status == StrokeMath.Status.Init)
            {
                vertexDistanceList.Close(true);
                if (m_auto_detect)
                {
                    if (m_orientation == EndVertexOrientation.Unknown)
                    {
                        m_orientation = (AggMath.CalculatePolygonArea(vertexDistanceList) > 0.0) ?
                                        EndVertexOrientation.CCW :
                                        EndVertexOrientation.CW;
                    }
                }
                switch (m_orientation)
                {
                case EndVertexOrientation.CCW:
                {
                    m_stroker.Width = m_width;
                }
                break;

                case EndVertexOrientation.CW:
                {
                    m_stroker.Width = -m_width;
                }
                break;
                }
            }
            m_status     = StrokeMath.Status.Ready;
            m_src_vertex = 0;
        }