public PrintLevelingData GetPrintLevelingData()
        {
            if (printLevelingData == null)
            {
                printLevelingData = PrintLevelingData.Create(
                    ActiveSliceSettings.Instance,
                    printerSettings.GetValue("print_leveling_data"),
                    printerSettings.GetValue("MatterControl.PrintLevelingProbePositions"));

                PrintLevelingPlane.Instance.SetPrintLevelingEquation(
                    printLevelingData.SampledPosition0,
                    printLevelingData.SampledPosition1,
                    printLevelingData.SampledPosition2,
                    ActiveSliceSettings.Instance.GetValue <Vector2>(SettingsKey.print_center));
            }

            return(printLevelingData);
        }
Example #2
0
        public PrintLevelingData GetPrintLevelingData()
        {
            if (printLevelingData == null)
            {
                printLevelingData = PrintLevelingData.Create(
                    ActiveSliceSettings.Instance,
                    layeredProfile.GetValue("MatterControl.PrintLevelingData"),
                    layeredProfile.GetValue("MatterControl.PrintLevelingProbePositions"));

                PrintLevelingPlane.Instance.SetPrintLevelingEquation(
                    printLevelingData.SampledPosition0,
                    printLevelingData.SampledPosition1,
                    printLevelingData.SampledPosition2,
                    ActiveSliceSettings.Instance.PrintCenter());
            }

            return(printLevelingData);
        }
Example #3
0
        public PrintLevelingData GetPrintLevelingData()
        {
            if (printLevelingData == null)
            {
                printLevelingData = PrintLevelingData.Create(
                    ActiveSliceSettings.Instance,
                    printerSettings.GetValue(SettingsKey.print_leveling_data));

                if (printLevelingData.SampledPositions.Count == 3)
                {
                    PrintLevelingPlane.Instance.SetPrintLevelingEquation(
                        printLevelingData.SampledPositions[0],
                        printLevelingData.SampledPositions[1],
                        printLevelingData.SampledPositions[2],
                        ActiveSliceSettings.Instance.GetValue <Vector2>(SettingsKey.print_center));
                }
            }

            return(printLevelingData);
        }