添加部分功能,以及等高线模型

This commit is contained in:
2509_92447106 committed 2026-11-14 12:42:19 +08:00
1 parent 663efa5c75
commit 512b1814e1
108 files changed
+239 -240

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\_sdk\EarthModelStudio.ModelSdk\EarthModelStudio.ModelSdk.csproj" />
<ProjectReference Include="..\..\_sdk\GC.ModelSdk\GC.ModelSdk.csproj" />
</ItemGroup>
</Project>
+2 -2
View File
@@ -9,7 +9,7 @@ using Avalonia.Controls;
using Avalonia.Headless;
using Avalonia.Media.Imaging;
using Avalonia.Platform;
using EarthModelStudio.ModelSdk;
using GC.ModelSdk;
using NeoRF.EarthModels;
namespace NeoRF.EarthModels.Preview;
@@ -210,7 +210,7 @@ internal static class Program
// 契约与 Avalonia 一律回到默认上下文,与启动器 ModelLoadContext 一致
if (name.Name is null) return null;
if (name.Name.StartsWith("System", StringComparison.OrdinalIgnoreCase)) return null;
var shared = new[] { "EarthModelStudio.ModelSdk", "Avalonia", "Avalonia.Base",
var shared = new[] { "GC.ModelSdk", "Avalonia", "Avalonia.Base",
"Avalonia.Controls", "Avalonia.Skia", "Avalonia.Themes.Fluent", "SkiaSharp", "HarfBuzzSharp" };
if (shared.Contains(name.Name, StringComparer.OrdinalIgnoreCase)) return null;
var candidate = Path.Combine(dataDir, name.Name + ".dll");
+1 -1
View File
@@ -403,7 +403,7 @@ public class CelestialView : Control, IDisposable
_sphere?.Dispose();
_sphere = null;
_sphereSize = 0;
GC.SuppressFinalize(this);
System.GC.SuppressFinalize(this);
}
private void OnTick(object? sender, EventArgs e)
+2 -2
View File
@@ -9,7 +9,7 @@ using Avalonia.Input;
using Avalonia.Layout;
using Avalonia.Media;
using Avalonia.Threading;
using EarthModelStudio.ModelSdk;
using GC.ModelSdk;
namespace NeoRF.EarthModels;
@@ -187,7 +187,7 @@ public sealed class EarthModelView : UserControl, IDisposable
}
_canvas.Dispose();
_closeup.Dispose();
GC.SuppressFinalize(this);
System.GC.SuppressFinalize(this);
}
private string CurrentView { get; set; } = "rotation";
+2 -2
View File
@@ -1,6 +1,6 @@
using System;
using Avalonia.Controls;
using EarthModelStudio.ModelSdk;
using GC.ModelSdk;
namespace NeoRF.EarthModels;
@@ -40,6 +40,6 @@ public sealed class EarthModelRuntime : IModelRuntime
public void Dispose()
{
_scene = null;
GC.SuppressFinalize(this);
System.GC.SuppressFinalize(this);
}
}