Ejemplo n.º 1
0
        //--------------------------------------------------------------------
        public void transform_all_paths(Transform.Affine trans)
        {
            uint idx;
            uint num_ver = m_vertices.total_vertices();

            for (idx = 0; idx < num_ver; idx++)
            {
                double x, y;
                if (Path.IsVertex(m_vertices.vertex(idx, out x, out y)))
                {
                    trans.Transform(ref x, ref y);
                    m_vertices.modify_vertex(idx, x, y);
                }
            }
        }
Ejemplo n.º 2
0
        public void transform(Transform.Affine trans, uint path_id)
        {
            uint num_ver = m_vertices.total_vertices();

            for (; path_id < num_ver; path_id++)
            {
                double x, y;
                uint   PathAndFlags = m_vertices.vertex(path_id, out x, out y);
                if (Path.IsStop(PathAndFlags))
                {
                    break;
                }
                if (Path.IsVertex(PathAndFlags))
                {
                    trans.Transform(ref x, ref y);
                    m_vertices.modify_vertex(path_id, x, y);
                }
            }
        }