public override string ReadLine()
        {
            string processedLine = offsetStream.ReadLine();

            if (processedLine != null &&
                layerCount < 1 &&
                GCodeFile.IsLayerChange(processedLine))
            {
                layerCount++;
                if (layerCount == 1)
                {
                    maxLengthStream.MaxSegmentLength = 5;
                }
            }
            return(processedLine);
        }
Example #2
0
        public override string ReadLine()
        {
            string processedLine = offsetStream.ReadLine();

            if (processedLine != null &&
                layerCount < 1 &&
                processedLine.StartsWith("; LAYER:"))
            {
                layerCount++;
                if (layerCount == 1)
                {
                    maxLengthStream.MaxSegmentLength = 5;
                }
            }
            return(processedLine);
        }