Exemplo n.º 1
0
        static void SaveFlatPlyFile(Barrel barrel, DataOutputOptions options, CylGridData correctedRingList, double unrollRadius, string fileName, IProgress <int> progress)
        {
            try
            {
                var outputFilename = BuildFileName(fileName, "_flat", ".ply");
                var colorCodedData = DataColorCode.ColorCodeData(barrel, options, correctedRingList, options.SurfaceColorCode);

                var v3FlatStripList = DataUtil.UnrollCylinder(colorCodedData, options.SurfaceFileScaleFactor, unrollRadius);
                SavePly(v3FlatStripList, outputFilename, progress);
            }
            catch (Exception)
            {
                throw;
            }
        }
Exemplo n.º 2
0
        static void SaveRolledPlyFile(Barrel barrel, DataOutputOptions options, CylGridData correctedRingList, string fileName, IProgress <int> progress)
        {
            try
            {
                var outputFilename = BuildFileName(fileName, "_rolled", ".ply");

                var colorCodedData = DataColorCode.ColorCodeData(barrel, options, correctedRingList, options.SurfaceColorCode);

                var v3StripList = colorCodedData.AsCartGridData();
                SavePly(v3StripList, outputFilename, progress);
            }
            catch (Exception)
            {
                throw;
            }
        }