예제 #1
0
        private void Export_Click(object sender, RoutedEventArgs e)
        {
            var alignedPoints = getAlignedPoints(Facet1Pane.CreateFacetShape(), Facet2Pane.CreateFacetShape());
            var shape         = new ShapeDefinition4D(alignedPoints, _shapeThickness);

            var dlg = new Microsoft.Win32.SaveFileDialog();

            dlg.Filter = "4D Shape|*.4dcor";
            if (dlg.ShowDialog() == true)
            {
                var formatter = new BinaryFormatter();
                using (var stream = new FileStream(dlg.FileName, FileMode.Create, FileAccess.Write, FileShare.None))
                    formatter.Serialize(stream, shape);
            }
        }
예제 #2
0
        private void Binding_Click(object sender, RoutedEventArgs e)
        {
            var alignedPoints = getAlignedPoints(Facet1Pane.CreateFacetShape(), Facet2Pane.CreateFacetShape());

            drawShape(alignedPoints, _shapeThickness);
        }