コード例 #1
0
        private double?HandleRescale(double firstLayerHeight, GCodeLine line, double?yParam)
        {
            double scaledY = yParam.Value * (OneeightyOverPI / (settings.RotaryPrinting.InnerRadius + lastPoint.Z - firstLayerHeight));

            if (!line.UpdateFValue('Y', scaledY))
            {
                throw new ProcessorException($"Y could not be updated on {line.Content}");
            }
            yParam = line.GetFValue('Y');

            return(yParam);
        }