Beispiel #1
0
    public bool LoadFromPath(string path)
    {
        bool         ret    = false;
        StreamReader reader = System.IO.File.OpenText(path);

        do
        {
            if (!wrpsvg.ImportSVG(reader))
            {
                Debug.LogError(string.Format("laod svg file {0} err", path));
                break;
            }
            wrpsvg.BuildGeoms(tessOptions);
            _initPathCount = wrpsvg._geoms.Count;
            ret            = true;
        } while (false);
        return(ret);
    }