Exemplo n.º 1
0
 //--------------------------------------------------------------------------------------------
 private void drawTest4()
 {
     CTest4 test4 = new CTest4();
     CNode[] nodes = test4.arrNodes;
     foreach (CNode c in nodes)
     {
         Model3DGroup models = CreateCube(c.X / 100 - 400, c.Z / 100, c.Y / 100 - 60);
         ModelVisual3D visual = new ModelVisual3D();
         visual.Content = models;
         myViewport3D.Children.Add(visual);
     }
 }
Exemplo n.º 2
0
        private void menuItemTest4_Click(object sender, RoutedEventArgs e)
        {
            CTest4 objCTest4 = new CTest4();
            canvasForImage.Children.Clear();

            foreach (CMember l in objCTest4.arrLines)
            {
                // Add a Line Element
                DrawLine(l, Brushes.Black, PenLineCap.Flat, PenLineCap.Flat, 2, canvasForImage);
            }
            foreach (CNode n in objCTest4.arrNodes)
            {
                DrawNode(n, Brushes.Red, Brushes.Red, 4, canvasForImage);
            }
        }