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; }
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; }
internal static void OnGridSizeChanged(Object sender, DependencyPropertyChangedEventArgs e) { Ground3D p = ((Ground3D)sender); p.Material = p.getGroundMaterial(); }