public static void DumpFigure(Figure figure, SurfaceProperties surfaceProperties, DirectoryInfo figureDestDir)
    {
        DirectoryInfo uvSetsDirectory = figureDestDir.Subdirectory("uv-sets");
        UVSetDumper   dumper          = new UVSetDumper(figure, surfaceProperties, uvSetsDirectory);

        dumper.DumpShared();
        foreach (var pair in figure.UvSets)
        {
            dumper.Dump(pair.Key, pair.Value);
        }
    }
示例#2
0
    public static void DumpFigure(Figure figure, SurfaceProperties surfaceProperties, DirectoryInfo figureDestDir)
    {
        DirectoryInfo refinementDirectory = figureDestDir.Subdirectory("refinement").Subdirectory("level-" + surfaceProperties.SubdivisionLevel);

        Quad[] spatialFaces = refinementDirectory.File("faces.array").ReadArray <Quad>();
        SubdivisionTopologyInfo spatialTopologyInfo = Persistance.Load <SubdivisionTopologyInfo>(UnpackedArchiveFile.Make(refinementDirectory.File("topology-info.dat")));

        DirectoryInfo uvSetsDirectory = figureDestDir.Subdirectory("uv-sets");
        UVSetDumper   dumper          = new UVSetDumper(figure, surfaceProperties, uvSetsDirectory, spatialFaces, spatialTopologyInfo);

        foreach (var pair in figure.UvSets)
        {
            dumper.Dump(pair.Key, pair.Value);
        }
    }