Example #1
0
        public LevelingDataDrawable(ISceneContext sceneContext)
        {
            this.sceneContext = sceneContext;

            if (sceneContext.Printer is PrinterConfig printer)
            {
                levelingDataMesh = LevelingMeshVisualizer.BuildMeshFromLevelingData(printer);
            }
        }
Example #2
0
        public LevelingDataDrawable(ISceneContext sceneContext)
        {
            this.sceneContext = sceneContext;

            if (sceneContext.Printer is PrinterConfig printer)
            {
                try
                {
                    levelingDataMesh = LevelingMeshVisualizer.BuildMeshFromLevelingData(printer);
                }
                catch
                {
                    // Create empty mesh if exception thrown building leveling mesh
                    levelingDataMesh = new Mesh();
                }
            }
        }