Ejemplo n.º 1
0
        internal static void OnGroundSizeChanged(Object sender, DependencyPropertyChangedEventArgs e)
        {
            Ground3D p = ((Ground3D)sender);

            p.scale.ScaleX = ((Size3D)e.NewValue).X / 2;
            p.scale.ScaleY = ((Size3D)e.NewValue).Y / 2;
            p.scale.ScaleZ = ((Size3D)e.NewValue).Z / 2;
        }
Ejemplo n.º 2
0
        internal static void OnMaterialChanged(Object sender, DependencyPropertyChangedEventArgs e)
        {
            Ground3D p = ((Ground3D)sender);

            ((GeometryModel3D)p._content.Children[4]).Material = p.Material;
            ((GeometryModel3D)p._content.Children[1]).Material = p.OtherMaterial;
            ((GeometryModel3D)p._content.Children[2]).Material = p.OtherMaterial;
            ((GeometryModel3D)p._content.Children[3]).Material = p.OtherMaterial;
            ((GeometryModel3D)p._content.Children[0]).Material = p.OtherMaterial;
            ((GeometryModel3D)p._content.Children[5]).Material = p.OtherMaterial;
        }
Ejemplo n.º 3
0
        internal static void OnGridSizeChanged(Object sender, DependencyPropertyChangedEventArgs e)
        {
            Ground3D p = ((Ground3D)sender);

            p.Material = p.getGroundMaterial();
        }