Compare commits

...
4 Commits
Author SHA1 Message Date
2509_92447106 7de92a25f5 修复 2026-11-08 20:43:56 +08:00
2509_92447106 874c97ee27 同步 2026-11-08 20:19:31 +08:00
2509_92447106 936aec8185 修复: .GC 不应入库(曾覆盖远程仓库)+ 模型读取优化 2026-11-08 18:25:00 +08:00
2509_92447106 f69a8fbb7f 修复model读取 2026-11-08 18:19:28 +08:00
292 changed files with 4639 additions and 1490 deletions

No files matched your search

@@ -1,23 +0,0 @@
{
"id": "earth-geography",
"nameI18n": {
"zh-CN": "地球地理",
"en": "Earth Geography"
},
"descriptionI18n": {
"zh-CN": "五带划分、七大洲四大洋轮廓、六大板块与洲界,纯线稿教学图。",
"en": "Climate zones, continent/ocean outlines, plates and borders — clean line art."
},
"assembly": "EarthGeographyModel.dll",
"type": "NeoRF.EarthModels.GeographyModelFactory",
"author": "Morris GC",
"tags": [
"geography",
"earth",
"atlas"
],
"dataDir": "earth-geography.model",
"version": "1.0",
"updatedAt": "2026-11-08T09:22:29Z",
"build": "883fdf6c57"
}
@@ -1 +0,0 @@
{"borders":[{"between":"亚洲-非洲","name":"苏伊士运河","lines":[[[32.6,31.3],[32.4,30.5],[32.3,29.9]]]},{"between":"亚洲-欧洲","name":"亚欧分界(乌拉尔山—乌拉尔河—里海—大高加索山—黑海—土耳其海峡)","segments":[{"name":"乌拉尔山","nameI18n":{"zh-CN":"乌拉尔山","en":"Ural Mts."},"lines":[[[66.0,68.5],[64.0,64.0],[60.5,60.0],[58.5,54.0],[57.0,51.0]]]},{"name":"乌拉尔河","nameI18n":{"zh-CN":"乌拉尔河","en":"Ural River"},"lines":[[[57.0,51.0],[55.5,49.0],[53.0,47.0],[51.5,46.5]]]},{"name":"里海","nameI18n":{"zh-CN":"里海","en":"Caspian Sea"},"lines":[[[51.5,46.5],[50.5,44.0],[49.5,41.0],[50.0,38.0],[51.0,36.5]]]},{"name":"大高加索山","nameI18n":{"zh-CN":"大高加索山","en":"Greater Caucasus"},"lines":[[[51.0,36.5],[46.0,42.5],[43.0,42.8],[41.0,43.2]]]},{"name":"黑海","nameI18n":{"zh-CN":"黑海","en":"Black Sea"},"lines":[[[41.0,43.2],[36.0,44.5],[31.0,44.0],[29.0,41.5]]]},{"name":"土耳其海峡","nameI18n":{"zh-CN":"土耳其海峡","en":"Turkish Straits"},"lines":[[[29.0,41.5],[28.0,40.5],[26.5,40.0],[26.2,39.5]]]}],"lines":[[[66.0,68.5],[64.0,64.0],[60.5,60.0],[58.5,54.0],[57.0,51.0],[57.0,51.0],[55.5,49.0],[53.0,47.0],[51.5,46.5],[51.5,46.5],[50.5,44.0],[49.5,41.0],[50.0,38.0],[51.0,36.5],[51.0,36.5],[46.0,42.5],[43.0,42.8],[41.0,43.2],[41.0,43.2],[36.0,44.5],[31.0,44.0],[29.0,41.5],[29.0,41.5],[28.0,40.5],[26.5,40.0],[26.2,39.5]]]},{"between":"亚洲-非洲","name":"红海","lines":[[[43.3,12.6],[40.0,18.0],[38.5,22.0],[35.0,27.0],[34.5,29.0]]]},{"between":"欧洲-非洲","name":"直布罗陀海峡","lines":[[[-5.6,36.0],[-4.0,36.2],[0.0,36.5]]]},{"between":"北美-南美","name":"巴拿马运河","lines":[[[-79.6,9.1],[-78.5,8.9],[-77.5,8.6]]]},{"between":"亚洲-北美","name":"白令海峡","lines":[[[-169.0,65.5],[-170.5,65.8],[-172.0,66.0]]]},{"between":"亚洲-大洋洲","name":"印尼群岛","lines":[[[120.0,-1.0],[125.0,-2.0],[130.0,-3.0]]]},{"between":"南极洲","name":"南极圈","lines":[[[-180.0,-66.5],[-170.0,-66.5],[-160.0,-66.5],[-150.0,-66.5],[-140.0,-66.5],[-130.0,-66.5],[-120.0,-66.5],[-110.0,-66.5],[-100.0,-66.5],[-90.0,-66.5],[-80.0,-66.5],[-70.0,-66.5],[-60.0,-66.5],[-50.0,-66.5],[-40.0,-66.5],[-30.0,-66.5],[-20.0,-66.5],[-10.0,-66.5],[0.0,-66.5],[10.0,-66.5],[20.0,-66.5],[30.0,-66.5],[40.0,-66.5],[50.0,-66.5],[60.0,-66.5],[70.0,-66.5],[80.0,-66.5],[90.0,-66.5],[100.0,-66.5],[110.0,-66.5],[120.0,-66.5],[130.0,-66.5],[140.0,-66.5],[150.0,-66.5],[160.0,-66.5],[170.0,-66.5],[180.0,-66.5]]]}]}
@@ -1 +0,0 @@
{"lines":[[[179.999,-16.169],[179.564,-16.637],[179.568,-16.747],[179.93,-16.519],[179.928,-16.744],[179.419,-16.807],[179.202,-16.713],[179.007,-16.9],[178.707,-16.976],[178.604,-16.801],[178.497,-16.788],[178.584,-16.622],[178.805,-16.631],[178.961,-16.483],[179.552,-16.25],[179.999,-16.169]],[[143.179,-11.954],[143.11,-12.304],[143.402,-12.64],[143.587,-13.444],[143.548,-13.741],[143.756,-14.349],[143.962,-14.463],[144.473,-14.232],[144.648,-14.492],[145.288,-14.943],[145.272,-15.477],[145.458,-16.056],[145.426,-16.406],[145.755,-16.879],[145.912,-16.913],[146.126,-17.635],[146.032,-18.273],[146.333,-18.554],[146.297,-18.841],[146.383,-18.977],[147.139,-19.393],[147.419,-19.378],[147.742,-19.77],[148.759,-20.29],[148.885,-20.481],[148.73,-20.468],[148.684,-20.58],[149.205,-21.125],[149.329,-21.476],[149.454,-21.579],[149.704,-22.441],[149.822,-22.39],[149.974,-22.551],[149.942,-22.308],[150.021,-22.168],[150.541,-22.559],[150.623,-22.367],[150.764,-22.576],[150.843,-23.458],[151.154,-23.784],[151.832,-24.123],[152.13,-24.598],[152.456,-24.802],[152.654,-25.202],[152.913,-25.432],[152.921,-25.689],[153.165,-25.964],[153.084,-26.304],[153.117,-27.194],[153.576,-28.241],[153.617,-28.673],[153.605,-28.854],[153.348,-29.29],[153.272,-29.892],[153.031,-30.563],[152.944,-31.435],[152.559,-32.046],[152.47,-32.439],[152.137,-32.678],[152.164,-32.757],[151.813,-32.901],[151.432,-33.522],[151.292,-33.581],[151.28,-33.927],[151.125,-34.005],[151.232,-34.03],[150.871,-34.499],[150.805,-35.013],[150.567,-35.214],[150.195,-35.834],[149.96,-36.846],[149.933,-37.529],[149.481,-37.771],[148.262,-37.831],[147.877,-37.934],[146.857,-38.663],[146.217,-38.727],[146.337,-38.894],[146.467,-38.84],[146.484,-39.065],[146.4,-39.146],[146.158,-38.866],[145.935,-38.902],[145.791,-38.667],[145.397,-38.535],[145.542,-38.394],[145.476,-38.244],[145.293,-38.238],[144.96,-38.501],[144.718,-38.34],[144.911,-38.344],[145.12,-38.091],[144.891,-37.9],[144.396,-38.137],[144.665,-38.21],[143.539,-38.821],[142.456,-38.386],[141.725,-38.271],[141.594,-38.388],[141.424,-38.363],[141.011,-38.077],[140.39,-37.897],[139.784,-37.246],[139.738,-37.06],[139.857,-36.662],[139.729,-36.371],[139.466,-36.01],[138.969,-35.581],[139.178,-35.523],[139.289,-35.611],[139.283,-35.375],[138.522,-35.642],[138.184,-35.613],[138.511,-35.024],[138.49,-34.764],[138.089,-34.17],[137.692,-35.143],[136.884,-35.24],[137.014,-34.916],[137.391,-34.913],[137.494,-34.161],[137.932,-33.579],[137.852,-33.201],[137.993,-33.094],[137.783,-32.578],[137.791,-32.823],[137.442,-33.194],[137.237,-33.629],[136.431,-34.03],[135.891,-34.661],[135.97,-34.982],[135.792,-34.863],[135.648,-34.94],[135.231,-34.58],[135.123,-34.586],[135.217,-34.487],[135.45,-34.581],[135.219,-33.96],[134.889,-33.626],[134.719,-33.255],[134.301,-33.165],[134.1,-32.749],[134.227,-32.731],[134.234,-32.549],[133.665,-32.207],[133.212,-32.184],[132.757,-31.956],[132.215,-32.007],[131.721,-31.696],[131.144,-31.496],[130.783,-31.604],[130.13,-31.579],[128.946,-31.703],[127.32,-32.264],[125.917,-32.297],[124.759,-32.883],[124.244,-33.015],[123.868,-33.596],[123.507,-33.916],[123.208,-33.988],[122.778,-33.891],[122.151,-33.992],[122.061,-33.874],[121.405,-33.827],[119.854,-33.975],[119.635,-34.101],[119.451,-34.368],[118.895,-34.48],[118.136,-34.987],[117.863,-35.055],[116.517,-34.988],[115.987,-34.795],[115.565,-34.426],[115.009,-34.256],[114.994,-33.515],[115.182,-33.643],[115.359,-33.64],[115.515,-33.531],[115.683,-33.193],[115.619,-32.667],[115.725,-32.401],[115.698,-31.695],[115.078,-30.56],[114.857,-29.143],[114.165,-28.081],[114.028,-27.347],[113.185,-26.182],[113.323,-26.244],[113.356,-26.08],[113.582,-26.558],[113.734,-26.595],[113.836,-26.501],[113.853,-26.332],[113.589,-26.099],[113.395,-25.713],[113.451,-25.599],[113.713,-25.831],[113.724,-26.13],[113.854,-26.014],[113.992,-26.321],[114.09,-26.394],[114.216,-26.289],[114.214,-25.852],[113.418,-24.436],[113.49,-23.87],[113.757,-23.418],[113.795,-22.915],[113.683,-22.638],[114.023,-21.881],[114.124,-21.829],[114.142,-22.483],[114.378,-22.342],[114.709,-21.823],[115.456,-21.492],[116.011,-21.03],[116.707,-20.654],[117.406,-20.721],[118.199,-20.375],[118.751,-20.262],[119.104,-19.995],[119.586,-20.038],[120.434,-19.842],[120.998,-19.604],[121.338,-19.32],[121.834,-18.477],[122.345,-18.112],[122.147,-17.549],[122.261,-17.136],[122.72,-16.788],[122.971,-16.437],[123.563,-17.521],[123.594,-17.03],[123.831,-17.121],[123.874,-16.919],[123.49,-16.491],[123.626,-16.416],[123.607,-16.224],[123.729,-16.192],[123.859,-16.382],[124.044,-16.265],[124.3,-16.388],[124.772,-16.403],[124.405,-16.299],[124.416,-16.133],[124.577,-16.114],[124.649,-15.87],[124.648,-15.805],[124.504,-15.972],[124.382,-15.758],[124.44,-15.494],[124.562,-15.496],[124.693,-15.274],[125.063,-15.442],[125.073,-15.307],[124.909,-15.31],[124.839,-15.161],[125.038,-15.004],[125.356,-15.12],[125.384,-15.016],[125.243,-14.945],[125.179,-14.715],[125.285,-14.584],[125.58,-14.483],[125.628,-14.257],[125.705Line truncated
@@ -1,7 +0,0 @@
{
"zones": "Zones",
"coast": "Continents",
"plates": "Plates",
"borders": "Borders",
"reset": "Reset"
}
@@ -1,7 +0,0 @@
{
"zones": "五带",
"coast": "大洲轮廓",
"plates": "板块",
"borders": "洲界",
"reset": "复位"
}
@@ -1,103 +0,0 @@
{
"labels": [
{
"lat": 34,
"lon": 90,
"kind": "continent",
"nameI18n": {
"zh-CN": "亚洲",
"en": "Asia"
}
},
{
"lat": 2,
"lon": 20,
"kind": "continent",
"nameI18n": {
"zh-CN": "非洲",
"en": "Africa"
}
},
{
"lat": 48,
"lon": -100,
"kind": "continent",
"nameI18n": {
"zh-CN": "北美洲",
"en": "North America"
}
},
{
"lat": -15,
"lon": -60,
"kind": "continent",
"nameI18n": {
"zh-CN": "南美洲",
"en": "South America"
}
},
{
"lat": -78,
"lon": 20,
"kind": "continent",
"nameI18n": {
"zh-CN": "南极洲",
"en": "Antarctica"
}
},
{
"lat": 52,
"lon": 18,
"kind": "continent",
"nameI18n": {
"zh-CN": "欧洲",
"en": "Europe"
}
},
{
"lat": -24,
"lon": 134,
"kind": "continent",
"nameI18n": {
"zh-CN": "大洋洲",
"en": "Oceania"
}
},
{
"lat": 0,
"lon": -155,
"kind": "ocean",
"nameI18n": {
"zh-CN": "太平洋",
"en": "Pacific Ocean"
}
},
{
"lat": 12,
"lon": -30,
"kind": "ocean",
"nameI18n": {
"zh-CN": "大西洋",
"en": "Atlantic Ocean"
}
},
{
"lat": -22,
"lon": 78,
"kind": "ocean",
"nameI18n": {
"zh-CN": "印度洋",
"en": "Indian Ocean"
}
},
{
"lat": 85,
"lon": 0,
"kind": "ocean",
"nameI18n": {
"zh-CN": "北冰洋",
"en": "Arctic Ocean"
}
}
]
}
@@ -1 +0,0 @@
{"plates":[{"id":"pacific","lines":[[[-180,60],[-150,55],[-130,45],[-110,25],[-95,10],[-80,0],[-75,-15],[-90,-30],[-110,-45],[-130,-55],[-160,-60],[-180,-55],[-180,60]]]},{"id":"north-american","lines":[[[-168,72],[-140,70],[-120,60],[-100,50],[-80,45],[-60,42],[-52,28],[-62,12],[-82,8],[-95,16],[-110,25],[-130,45],[-150,55],[-168,72]]]},{"id":"south-american","lines":[[[-82,12],[-62,10],[-45,-2],[-35,-8],[-30,-20],[-40,-35],[-55,-42],[-70,-52],[-78,-40],[-80,-20],[-82,12]]]},{"id":"african","lines":[[[-20,35],[10,37],[32,32],[43,12],[51,10],[42,-8],[40,-25],[25,-35],[15,-30],[8,-5],[-8,5],[-17,15],[-20,35]]]},{"id":"eurasian","lines":[[[-10,36],[0,45],[15,55],[30,68],[60,72],[100,76],[140,70],[160,60],[140,42],[120,30],[100,20],[75,8],[60,22],[45,30],[30,32],[10,37],[-10,36]]]},{"id":"indo-australian","lines":[[[95,5],[115,10],[130,5],[145,-5],[150,-20],[145,-35],[130,-42],[115,-38],[105,-25],[95,-10],[95,5]]]},{"id":"antarctic","lines":[[[-180,-60],[-120,-62],[-60,-60],[0,-62],[60,-60],[120,-62],[180,-60],[180,-90],[-180,-90],[-180,-60]]]},{"id":"nazca","lines":[[[-95,-5],[-85,-10],[-75,-25],[-78,-40],[-90,-42],[-100,-30],[-95,-5]]]},{"id":"cocos","lines":[[[-105,10],[-95,12],[-90,5],[-100,2],[-105,10]]]},{"id":"caribbean","lines":[[[-88,15],[-75,18],[-62,15],[-60,8],[-72,6],[-85,8],[-88,15]]]},{"id":"philippine","lines":[[[118,20],[128,18],[130,8],[125,2],[118,8],[118,20]]]},{"id":"arabian","lines":[[[35,32],[48,30],[58,22],[55,12],[42,10],[35,20],[35,32]]]}]}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

@@ -1,88 +0,0 @@
{
"schemaVersion": 1,
"type": "geography",
"defaultView": "zones",
"views": [
"zones",
"coast",
"plates"
],
"nameI18n": {
"zh-CN": "地球地理",
"en": "Earth Geography"
},
"descriptionI18n": {
"zh-CN": "五带划分 · 七大洲四大洋 · 六大板块与洲界",
"en": "Climate zones · continents & oceans · plates & borders"
},
"tropicDeg": 23.5,
"axialTiltDeg": 23.5,
"oceanColor": "#0E2A4A",
"zones": [
{
"id": "torrid",
"latMin": -23.5,
"latMax": 23.5,
"nameI18n": {
"zh-CN": "热带",
"en": "Torrid zone"
},
"descI18n": {
"zh-CN": "南北回归线之间,有太阳直射,终年高温。",
"en": "Between the tropics; the Sun is overhead at some time each year."
}
},
{
"id": "north-temperate",
"latMin": 23.5,
"latMax": 66.5,
"nameI18n": {
"zh-CN": "北温带",
"en": "North temperate"
},
"descI18n": {
"zh-CN": "北回归线与北极圈之间,四季分明,无直射也无极昼极夜。",
"en": "Between Tropic of Cancer and Arctic Circle; four distinct seasons."
}
},
{
"id": "south-temperate",
"latMin": -66.5,
"latMax": -23.5,
"nameI18n": {
"zh-CN": "南温带",
"en": "South temperate"
},
"descI18n": {
"zh-CN": "南回归线与南极圈之间,四季分明。",
"en": "Between Tropic of Capricorn and Antarctic Circle; four seasons."
}
},
{
"id": "north-frigid",
"latMin": 66.5,
"latMax": 90,
"nameI18n": {
"zh-CN": "北寒带",
"en": "North frigid zone"
},
"descI18n": {
"zh-CN": "北极圈以北,有极昼极夜,终年寒冷。",
"en": "North of the Arctic Circle; polar day/night, always cold."
}
},
{
"id": "south-frigid",
"latMin": -90,
"latMax": -66.5,
"nameI18n": {
"zh-CN": "南寒带",
"en": "South frigid zone"
},
"descI18n": {
"zh-CN": "南极圈以南,有极昼极夜,终年寒冷。",
"en": "South of the Antarctic Circle; polar day/night, always cold."
}
}
]
}
@@ -1,29 +0,0 @@
{
"schemaVersion": 1,
"id": "earth-revolution",
"name": "Earth Revolution",
"nameI18n": {
"zh-CN": "地球公转",
"en": "Earth Revolution"
},
"author": "NeoRF",
"description": "四季更替、黄赤交角与二分二至",
"descriptionI18n": {
"zh-CN": "地球绕太阳公转一年:地轴指向不变,太阳直射点南北往返,形成四季。",
"en": "One year around the Sun: the fixed axial direction moves the subsolar point and creates the seasons."
},
"tags": [
"astronomy",
"geography",
"revolution"
],
"entry": "scene.json",
"license": "MIT",
"assembly": "EarthRevolutionModel.dll",
"type": "NeoRF.EarthModels.RevolutionModelFactory",
"preview": "preview.png",
"apiVersion": 1,
"version": "1.0",
"updatedAt": "2026-11-08T09:22:29Z",
"build": "a24be3664d"
}
@@ -1,33 +0,0 @@
{
"title": "Earth Revolution",
"view.rotation": "Rotation",
"view.revolution": "Revolution",
"play": "Play",
"pause": "Pause",
"speed": "Speed",
"reset": "Reset",
"labels": "Labels",
"orbit": "Orbit",
"grid": "Graticule",
"tilt": "Exaggerate tilt",
"lessons": "Teaching notes",
"seasons": "Solstices & equinoxes",
"close": "Close window",
"loading": "Preparing scene…",
"subsolar": "Subsolar point",
"north": "North pole",
"south": "South pole",
"northShort": "N",
"southShort": "S",
"sun": "Sun",
"earth": "Earth",
"spinInfo": "Rotation {0}° · period {1} h",
"orbitInfo": "Orbit {0}°",
"declinationInfo": "Subsolar {0}",
"dateInfo": "Date {0}",
"season.springEquinox": "Spring equinox",
"season.summerSolstice": "Summer solstice",
"season.autumnEquinox": "Autumn equinox",
"season.winterSolstice": "Winter solstice",
"hint": "Pinch or scroll to zoom · drag to turn the Earth"
}
@@ -1,33 +0,0 @@
{
"title": "地球自转",
"view.rotation": "自转",
"view.revolution": "公转",
"play": "播放",
"pause": "暂停",
"speed": "速度",
"reset": "重置",
"labels": "标注",
"orbit": "轨道",
"grid": "经纬网",
"tilt": "夸张倾角",
"lessons": "教学要点",
"seasons": "节气定位",
"close": "关闭窗口",
"loading": "正在准备场景…",
"subsolar": "太阳直射点",
"north": "北极",
"south": "南极",
"northShort": "N",
"southShort": "S",
"sun": "太阳",
"earth": "地球",
"spinInfo": "自转 {0}° · 周期 {1} 小时",
"orbitInfo": "公转 {0}°",
"declinationInfo": "太阳直射 {0}",
"dateInfo": "日期 {0}",
"season.springEquinox": "春分",
"season.summerSolstice": "夏至",
"season.autumnEquinox": "秋分",
"season.winterSolstice": "冬至",
"hint": "双指捏合或滚轮缩放 · 拖动可转动地球"
}
@@ -1,98 +0,0 @@
{
"schema": 1,
"note": "简化大陆轮廓(经度,纬度),用于教学演示,非测绘精度",
"polygons": [
{
"name": "north-america",
"points": [[-168,66],[-164,70],[-155,71],[-145,70],[-133,69],[-120,69],[-110,68],[-100,69],[-92,68],[-85,70],[-80,73],[-72,71],[-64,66],[-60,60],[-56,52],[-60,47],[-66,45],[-70,42],[-74,40],[-76,35],[-81,31],[-80,25],[-83,29],[-88,30],[-94,29],[-97,26],[-97,21],[-92,19],[-87,21],[-88,16],[-83,9],[-78,9],[-84,14],[-90,14],[-96,16],[-105,20],[-112,25],[-117,32],[-122,37],[-124,42],[-125,48],[-131,54],[-140,59],[-150,59],[-158,56],[-165,60],[-166,64]]
},
{
"name": "greenland",
"points": [[-45,60],[-52,64],[-55,68],[-60,72],[-63,76],[-56,80],[-42,82],[-28,80],[-21,74],[-23,70],[-31,66],[-38,62]]
},
{
"name": "south-america",
"points": [[-78,8],[-72,11],[-64,10],[-60,8],[-52,5],[-50,0],[-44,-2],[-38,-5],[-35,-8],[-39,-13],[-41,-22],[-48,-25],[-53,-34],[-57,-38],[-62,-40],[-65,-45],[-68,-50],[-70,-55],[-75,-52],[-74,-45],[-73,-37],[-71,-30],[-70,-23],[-70,-18],[-76,-14],[-81,-6],[-80,-2],[-79,2],[-77,6]]
},
{
"name": "africa",
"points": [[-17,15],[-16,20],[-13,28],[-9,32],[-5,36],[10,37],[20,32],[32,31],[35,28],[39,15],[43,11],[51,12],[48,2],[41,-2],[40,-10],[35,-18],[32,-25],[27,-33],[20,-35],[15,-28],[12,-17],[9,-1],[5,4],[-4,5],[-8,4],[-13,8],[-16,12]]
},
{
"name": "europe",
"points": [[-9,38],[-9,43],[-2,44],[0,48],[2,51],[5,53],[8,54],[9,57],[12,56],[13,54],[20,54],[21,57],[24,58],[28,60],[30,60],[29,64],[25,66],[22,69],[30,70],[40,68],[46,66],[55,68],[60,70],[68,68],[62,62],[58,56],[52,50],[48,46],[40,45],[36,44],[30,45],[28,41],[24,40],[23,37],[19,40],[16,41],[12,44],[7,44],[3,42],[-2,37]]
},
{
"name": "asia",
"points": [[60,70],[75,73],[90,75],[105,77],[115,74],[130,73],[145,72],[160,70],[170,68],[180,65],[172,62],[163,58],[155,52],[143,54],[137,50],[130,43],[126,40],[122,40],[120,36],[122,31],[118,25],[110,21],[105,10],[100,13],[98,8],[95,17],[90,22],[88,21],[80,16],[77,8],[73,18],[68,23],[62,25],[57,24],[52,28],[48,30],[44,13],[43,17],[39,21],[35,28],[34,31],[36,36],[30,41],[28,41],[30,45],[34,45],[40,45],[48,46],[52,50],[58,56],[62,62],[68,68]]
},
{
"name": "australia",
"points": [[113,-22],[114,-27],[116,-35],[129,-32],[138,-35],[146,-39],[150,-37],[153,-28],[146,-19],[142,-11],[132,-11],[126,-14],[122,-18]]
},
{
"name": "antarctica",
"points": [[-180,-72],[-150,-76],[-120,-74],[-90,-73],[-60,-64],[-30,-70],[0,-70],[30,-69],[60,-67],[90,-66],[120,-66],[150,-70],[180,-72],[180,-90],[-180,-90]]
},
{
"name": "madagascar",
"points": [[43,-12],[50,-15],[50,-25],[45,-25],[43,-20]]
},
{
"name": "japan",
"points": [[130,32],[136,35],[141,40],[145,44],[142,39],[137,34],[133,33]]
},
{
"name": "britain",
"points": [[-6,50],[-2,53],[-2,58],[-5,58],[-6,54]]
},
{
"name": "ireland",
"points": [[-10,52],[-6,53],[-6,55],[-10,55]]
},
{
"name": "iceland",
"points": [[-24,65],[-14,66],[-14,64],[-22,63]]
},
{
"name": "new-zealand",
"points": [[166,-46],[170,-44],[174,-41],[177,-38],[174,-35],[170,-38],[167,-42]]
},
{
"name": "sumatra",
"points": [[95,5],[100,1],[105,-6],[100,-4],[96,2]]
},
{
"name": "java",
"points": [[105,-6],[114,-8],[114,-9],[106,-7]]
},
{
"name": "borneo",
"points": [[109,2],[117,4],[119,-2],[115,-4],[110,-2]]
},
{
"name": "sulawesi",
"points": [[119,1],[125,1],[123,-5],[120,-3]]
},
{
"name": "new-guinea",
"points": [[131,-1],[141,-3],[150,-6],[147,-9],[140,-9],[134,-5]]
},
{
"name": "sri-lanka",
"points": [[80,9],[82,7],[81,6],[79,7]]
},
{
"name": "philippines",
"points": [[120,18],[124,13],[126,8],[122,6],[120,12]]
},
{
"name": "cuba",
"points": [[-85,22],[-77,20],[-74,20],[-80,23]]
},
{
"name": "taiwan",
"points": [[120,25],[122,24],[121,22],[120,23]]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

@@ -1,139 +0,0 @@
{
"schemaVersion": 1,
"type": "planet",
"defaultView": "revolution",
"views": [
"revolution"
],
"nameI18n": {
"zh-CN": "地球公转",
"en": "Earth Revolution"
},
"descriptionI18n": {
"zh-CN": "地球绕太阳公转一年:地轴指向不变,太阳直射点南北往返,形成四季。",
"en": "One year around the Sun: the fixed axial direction moves the subsolar point and creates the seasons."
},
"star": {
"name": "Sun",
"nameI18n": {
"zh-CN": "太阳",
"en": "Sun"
},
"color": "#FFC24B",
"radiusScale": 0.5
},
"planet": {
"name": "Earth",
"nameI18n": {
"zh-CN": "地球",
"en": "Earth"
},
"axialTiltDeg": 23.5,
"tropicDeg": 23.5,
"rotationHours": 23.93,
"orbitDays": 365.26,
"oceanColor": "#1C5FA8",
"landColor": "#4E8C4C",
"iceColor": "#E9EFF6",
"landFile": "land.json",
"showGraticule": false
},
"orbit": {
"semiMajorAxis": 4.0,
"eccentricity": 0.0167,
"show": true,
"seasonLayout": "springTopSummerLeft",
"seasons": [
{
"angleDeg": 0,
"key": "season.springEquinox",
"date": "3/21",
"declinationDeg": 0,
"teachingI18n": {
"zh-CN": "太阳直射赤道,全球昼夜平分。此后直射点由赤道向北移动。",
"en": "The Sun is overhead at the equator and day equals night everywhere. The subsolar point now moves north."
}
},
{
"angleDeg": 90,
"key": "season.summerSolstice",
"date": "6/22",
"declinationDeg": 23.5,
"teachingI18n": {
"zh-CN": "太阳直射北回归线 23.5°N。北半球昼最长、夜最短,北极圈内出现极昼。",
"en": "The Sun is overhead at the Tropic of Cancer (23.5°N). The northern hemisphere has its longest day."
}
},
{
"angleDeg": 180,
"key": "season.autumnEquinox",
"date": "9/23",
"declinationDeg": 0,
"teachingI18n": {
"zh-CN": "太阳再次直射赤道,全球昼夜平分。此后直射点向南移动。",
"en": "The Sun is overhead at the equator again. The subsolar point now moves south."
}
},
{
"angleDeg": 270,
"key": "season.winterSolstice",
"date": "12/22",
"declinationDeg": -23.5,
"teachingI18n": {
"zh-CN": "太阳直射南回归线 23.5°S。北半球昼最短、夜最长,北极圈内出现极夜。",
"en": "The Sun is overhead at the Tropic of Capricorn (23.5°S). The northern hemisphere has its shortest day."
}
}
]
},
"lessons": [
{
"titleI18n": {
"zh-CN": "一年绕太阳一圈",
"en": "One lap per year"
},
"bodyI18n": {
"zh-CN": "公转方向与自转相同,周期约 365.26 天;轨道接近圆形。",
"en": "The orbit takes about 365.26 days and runs the same direction as the spin."
},
"view": "revolution",
"angleDeg": 0
},
{
"titleI18n": {
"zh-CN": "地轴指向不变",
"en": "The axis keeps its direction"
},
"bodyI18n": {
"zh-CN": "公转过程中地轴始终指向北极星附近,黄赤交角 23.5° 保持不变。",
"en": "During the whole orbit the axis keeps pointing near Polaris, so the 23.5° tilt stays fixed in space."
},
"view": "revolution",
"angleDeg": 90
},
{
"titleI18n": {
"zh-CN": "夏至与冬至",
"en": "Solstices"
},
"bodyI18n": {
"zh-CN": "夏至太阳直射北回归线 23.5°N,北半球昼最长;冬至直射南回归线 23.5°S。",
"en": "At the June solstice the Sun is overhead at 23.5°N; at the December solstice at 23.5°S."
},
"view": "revolution",
"angleDeg": 90
},
{
"titleI18n": {
"zh-CN": "春分与秋分",
"en": "Equinoxes"
},
"bodyI18n": {
"zh-CN": "春分、秋分太阳直射赤道,全球昼夜平分,是四季的转折点。",
"en": "At the equinoxes the Sun is overhead at the equator and day equals night everywhere."
},
"view": "revolution",
"angleDeg": 180
}
]
}
@@ -1,29 +0,0 @@
{
"schemaVersion": 1,
"id": "earth-rotation",
"name": "Earth Rotation",
"nameI18n": {
"zh-CN": "地球自转",
"en": "Earth Rotation"
},
"author": "NeoRF",
"description": "昼夜交替、晨昏线与太阳直射点",
"descriptionI18n": {
"zh-CN": "观察自转中的地球:昼夜半球、晨昏线与太阳直射点位置。",
"en": "Watch a rotating Earth: day/night hemispheres, terminator and the subsolar point."
},
"tags": [
"astronomy",
"geography",
"rotation"
],
"entry": "scene.json",
"license": "MIT",
"assembly": "EarthRotationModel.dll",
"type": "NeoRF.EarthModels.RotationModelFactory",
"preview": "preview.png",
"apiVersion": 1,
"version": "1.0",
"updatedAt": "2026-11-08T09:22:29Z",
"build": "0bd5b4507c"
}
@@ -1,33 +0,0 @@
{
"title": "Earth Rotation",
"view.rotation": "Rotation",
"view.revolution": "Revolution",
"play": "Play",
"pause": "Pause",
"speed": "Speed",
"reset": "Reset",
"labels": "Labels",
"orbit": "Orbit",
"grid": "Graticule",
"tilt": "Exaggerate tilt",
"lessons": "Teaching notes",
"seasons": "Solstices & equinoxes",
"close": "Close window",
"loading": "Preparing scene…",
"subsolar": "Subsolar point",
"north": "North pole",
"south": "South pole",
"northShort": "N",
"southShort": "S",
"sun": "Sun",
"earth": "Earth",
"spinInfo": "Rotation {0}° · period {1} h",
"orbitInfo": "Orbit {0}°",
"declinationInfo": "Subsolar {0}",
"dateInfo": "Date {0}",
"season.springEquinox": "Spring equinox",
"season.summerSolstice": "Summer solstice",
"season.autumnEquinox": "Autumn equinox",
"season.winterSolstice": "Winter solstice",
"hint": "Pinch or scroll to zoom · drag to turn the Earth"
}
@@ -1,33 +0,0 @@
{
"title": "地球自转",
"view.rotation": "自转",
"view.revolution": "公转",
"play": "播放",
"pause": "暂停",
"speed": "速度",
"reset": "重置",
"labels": "标注",
"orbit": "轨道",
"grid": "经纬网",
"tilt": "夸张倾角",
"lessons": "教学要点",
"seasons": "节气定位",
"close": "关闭窗口",
"loading": "正在准备场景…",
"subsolar": "太阳直射点",
"north": "北极",
"south": "南极",
"northShort": "N",
"southShort": "S",
"sun": "太阳",
"earth": "地球",
"spinInfo": "自转 {0}° · 周期 {1} 小时",
"orbitInfo": "公转 {0}°",
"declinationInfo": "太阳直射 {0}",
"dateInfo": "日期 {0}",
"season.springEquinox": "春分",
"season.summerSolstice": "夏至",
"season.autumnEquinox": "秋分",
"season.winterSolstice": "冬至",
"hint": "双指捏合或滚轮缩放 · 拖动可转动地球"
}
@@ -1,98 +0,0 @@
{
"schema": 1,
"note": "简化大陆轮廓(经度,纬度),用于教学演示,非测绘精度",
"polygons": [
{
"name": "north-america",
"points": [[-168,66],[-164,70],[-155,71],[-145,70],[-133,69],[-120,69],[-110,68],[-100,69],[-92,68],[-85,70],[-80,73],[-72,71],[-64,66],[-60,60],[-56,52],[-60,47],[-66,45],[-70,42],[-74,40],[-76,35],[-81,31],[-80,25],[-83,29],[-88,30],[-94,29],[-97,26],[-97,21],[-92,19],[-87,21],[-88,16],[-83,9],[-78,9],[-84,14],[-90,14],[-96,16],[-105,20],[-112,25],[-117,32],[-122,37],[-124,42],[-125,48],[-131,54],[-140,59],[-150,59],[-158,56],[-165,60],[-166,64]]
},
{
"name": "greenland",
"points": [[-45,60],[-52,64],[-55,68],[-60,72],[-63,76],[-56,80],[-42,82],[-28,80],[-21,74],[-23,70],[-31,66],[-38,62]]
},
{
"name": "south-america",
"points": [[-78,8],[-72,11],[-64,10],[-60,8],[-52,5],[-50,0],[-44,-2],[-38,-5],[-35,-8],[-39,-13],[-41,-22],[-48,-25],[-53,-34],[-57,-38],[-62,-40],[-65,-45],[-68,-50],[-70,-55],[-75,-52],[-74,-45],[-73,-37],[-71,-30],[-70,-23],[-70,-18],[-76,-14],[-81,-6],[-80,-2],[-79,2],[-77,6]]
},
{
"name": "africa",
"points": [[-17,15],[-16,20],[-13,28],[-9,32],[-5,36],[10,37],[20,32],[32,31],[35,28],[39,15],[43,11],[51,12],[48,2],[41,-2],[40,-10],[35,-18],[32,-25],[27,-33],[20,-35],[15,-28],[12,-17],[9,-1],[5,4],[-4,5],[-8,4],[-13,8],[-16,12]]
},
{
"name": "europe",
"points": [[-9,38],[-9,43],[-2,44],[0,48],[2,51],[5,53],[8,54],[9,57],[12,56],[13,54],[20,54],[21,57],[24,58],[28,60],[30,60],[29,64],[25,66],[22,69],[30,70],[40,68],[46,66],[55,68],[60,70],[68,68],[62,62],[58,56],[52,50],[48,46],[40,45],[36,44],[30,45],[28,41],[24,40],[23,37],[19,40],[16,41],[12,44],[7,44],[3,42],[-2,37]]
},
{
"name": "asia",
"points": [[60,70],[75,73],[90,75],[105,77],[115,74],[130,73],[145,72],[160,70],[170,68],[180,65],[172,62],[163,58],[155,52],[143,54],[137,50],[130,43],[126,40],[122,40],[120,36],[122,31],[118,25],[110,21],[105,10],[100,13],[98,8],[95,17],[90,22],[88,21],[80,16],[77,8],[73,18],[68,23],[62,25],[57,24],[52,28],[48,30],[44,13],[43,17],[39,21],[35,28],[34,31],[36,36],[30,41],[28,41],[30,45],[34,45],[40,45],[48,46],[52,50],[58,56],[62,62],[68,68]]
},
{
"name": "australia",
"points": [[113,-22],[114,-27],[116,-35],[129,-32],[138,-35],[146,-39],[150,-37],[153,-28],[146,-19],[142,-11],[132,-11],[126,-14],[122,-18]]
},
{
"name": "antarctica",
"points": [[-180,-72],[-150,-76],[-120,-74],[-90,-73],[-60,-64],[-30,-70],[0,-70],[30,-69],[60,-67],[90,-66],[120,-66],[150,-70],[180,-72],[180,-90],[-180,-90]]
},
{
"name": "madagascar",
"points": [[43,-12],[50,-15],[50,-25],[45,-25],[43,-20]]
},
{
"name": "japan",
"points": [[130,32],[136,35],[141,40],[145,44],[142,39],[137,34],[133,33]]
},
{
"name": "britain",
"points": [[-6,50],[-2,53],[-2,58],[-5,58],[-6,54]]
},
{
"name": "ireland",
"points": [[-10,52],[-6,53],[-6,55],[-10,55]]
},
{
"name": "iceland",
"points": [[-24,65],[-14,66],[-14,64],[-22,63]]
},
{
"name": "new-zealand",
"points": [[166,-46],[170,-44],[174,-41],[177,-38],[174,-35],[170,-38],[167,-42]]
},
{
"name": "sumatra",
"points": [[95,5],[100,1],[105,-6],[100,-4],[96,2]]
},
{
"name": "java",
"points": [[105,-6],[114,-8],[114,-9],[106,-7]]
},
{
"name": "borneo",
"points": [[109,2],[117,4],[119,-2],[115,-4],[110,-2]]
},
{
"name": "sulawesi",
"points": [[119,1],[125,1],[123,-5],[120,-3]]
},
{
"name": "new-guinea",
"points": [[131,-1],[141,-3],[150,-6],[147,-9],[140,-9],[134,-5]]
},
{
"name": "sri-lanka",
"points": [[80,9],[82,7],[81,6],[79,7]]
},
{
"name": "philippines",
"points": [[120,18],[124,13],[126,8],[122,6],[120,12]]
},
{
"name": "cuba",
"points": [[-85,22],[-77,20],[-74,20],[-80,23]]
},
{
"name": "taiwan",
"points": [[120,25],[122,24],[121,22],[120,23]]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB

@@ -1,138 +0,0 @@
{
"schemaVersion": 1,
"type": "planet",
"defaultView": "rotation",
"views": [
"rotation"
],
"nameI18n": {
"zh-CN": "地球自转",
"en": "Earth Rotation"
},
"descriptionI18n": {
"zh-CN": "观察自转中的地球:昼夜半球、晨昏线与太阳直射点位置。",
"en": "Watch a rotating Earth: day/night hemispheres, terminator and the subsolar point."
},
"star": {
"name": "Sun",
"nameI18n": {
"zh-CN": "太阳",
"en": "Sun"
},
"color": "#FFC24B",
"radiusScale": 0.5
},
"planet": {
"name": "Earth",
"nameI18n": {
"zh-CN": "地球",
"en": "Earth"
},
"axialTiltDeg": 23.5,
"tropicDeg": 23.5,
"rotationHours": 23.93,
"orbitDays": 365.26,
"oceanColor": "#1C5FA8",
"landColor": "#4E8C4C",
"iceColor": "#E9EFF6",
"landFile": "land.json",
"showGraticule": true
},
"orbit": {
"semiMajorAxis": 4.0,
"eccentricity": 0.0167,
"show": true,
"seasons": [
{
"angleDeg": 0,
"key": "season.springEquinox",
"date": "3/21",
"declinationDeg": 0,
"teachingI18n": {
"zh-CN": "太阳直射赤道,全球昼夜平分。",
"en": "The Sun is overhead at the equator and day equals night everywhere."
}
},
{
"angleDeg": 90,
"key": "season.summerSolstice",
"date": "6/22",
"declinationDeg": 23.5,
"teachingI18n": {
"zh-CN": "太阳直射北回归线 23.5°N,北半球昼最长。",
"en": "The Sun is overhead at 23.5°N; the northern hemisphere has its longest day."
}
},
{
"angleDeg": 180,
"key": "season.autumnEquinox",
"date": "9/23",
"declinationDeg": 0,
"teachingI18n": {
"zh-CN": "太阳直射赤道,全球昼夜平分。",
"en": "The Sun is overhead at the equator and day equals night everywhere."
}
},
{
"angleDeg": 270,
"key": "season.winterSolstice",
"date": "12/22",
"declinationDeg": -23.5,
"teachingI18n": {
"zh-CN": "太阳直射南回归线 23.5°S,北半球昼最短。",
"en": "The Sun is overhead at 23.5°S; the northern hemisphere has its shortest day."
}
}
]
},
"lessons": [
{
"titleI18n": {
"zh-CN": "自西向东的自转",
"en": "Rotation from west to east"
},
"bodyI18n": {
"zh-CN": "从北极上空看,地球逆时针转动;转一圈用 23 小时 56 分 4 秒。",
"en": "Seen from above the north pole the Earth turns counter-clockwise, once every 23 h 56 min."
},
"view": "rotation",
"angleDeg": 0
},
{
"titleI18n": {
"zh-CN": "昼夜交替",
"en": "Day and night"
},
"bodyI18n": {
"zh-CN": "晨昏线(白色虚线)把地球分成昼半球与夜半球,交替周期 24 小时。",
"en": "The terminator (white dashes) splits the lit and dark hemispheres; one cycle takes 24 h."
},
"view": "rotation",
"angleDeg": 60
},
{
"titleI18n": {
"zh-CN": "太阳直射点",
"en": "Subsolar point"
},
"bodyI18n": {
"zh-CN": "黄色圆环标出太阳光垂直照射的位置,它随季节在南北回归线之间往返。",
"en": "The yellow ring marks where sunlight strikes vertically — it drifts between the tropics over a year."
},
"view": "rotation",
"angleDeg": 120
},
{
"titleI18n": {
"zh-CN": "地轴倾斜 23.5°",
"en": "Axial tilt 23.5°"
},
"bodyI18n": {
"zh-CN": "地轴与黄道面法线成 23.5°,倾斜方向不变,这是四季与五带划分的根本原因。",
"en": "The axis is tilted 23.5° from the ecliptic normal and keeps its direction — the root cause of seasons."
},
"view": "rotation",
"angleDeg": 200
}
]
}
-21
View File
@@ -1,21 +0,0 @@
{
"language": "auto",
"theme": "light",
"renderFps": 120,
"memoryMb": 2048,
"memoryAuto": true,
"checkSourceOnStartup": false,
"sources": [
{
"id": "gitcode-official",
"name": "Morris GC (GitCode)",
"url": "https://gitcode.com/2509_92447106/GC",
"enabled": true,
"builtIn": true
}
],
"recentModels": [],
"autoUpdateOnStartup": true,
"updateRepository": "https://gitcode.com/2509_92447106/GC",
"installedModelVersions": {}
}
+7
View File
@@ -1,3 +1,10 @@
# 运行数据目录(settings/model/cache/update),绝不入库
.GC/
# .NET 构建中间产物(已跟踪的历史文件不动,只防新增)
bin/
obj/
.venv/
venv/
env/
+1 -1
View File
@@ -21,7 +21,7 @@
-->
<AvaloniaVersion>11.3.9</AvaloniaVersion>
<MvvmVersion>8.2.2</MvvmVersion>
<Version>1.0.3</Version>
<Version>1.0.4</Version>
<Company>NeoRF</Company>
<Product>Earth Model Studio</Product>
<NeutralLanguage>zh-Hans</NeutralLanguage>
+18
View File
@@ -30,6 +30,24 @@ VERSION=$(sed -n 's/.*<Version>\(.*\)<\/Version>.*/\1/p' Directory.Build.props |
[ -n "$VERSION" ] || VERSION="1.0.0"
TASK="${1:-build}"
shift 2>/dev/null || true
# 解析 -version=<版本号>(也接受 --version=)
CLI_VERSION=""
for arg in "$@"; do
case "$arg" in
-version=*|--version=*) CLI_VERSION="${arg#*=}" ;;
esac
done
if [ -n "$CLI_VERSION" ]; then
VERSION="$CLI_VERSION"
# 写回 Directory.Build.props,让程序集版本与关于页显示一致
if [ -f Directory.Build.props ]; then
sed -i.bak "s|<Version>[^<]*</Version>|<Version>${VERSION}</Version>|" Directory.Build.props
rm -f Directory.Build.props.bak
fi
echo "==> 版本号设为 ${VERSION}"
fi
mkdir -p "$ROOT_DIR/build/logs"
# 加载 buildsh 模块
+20
View File
@@ -219,6 +219,26 @@ PLIST
[ "$base" = ".DS_Store" ] && continue
mv "$f" "$APP/Contents/MacOS/"
done
# 应用图标:由 Assets/icon-1024.png 生成 .icns
ICONSRC="$ROOT_DIR/src/main/dotnet/EarthModelStudio/Assets/icon-1024.png"
if [ -f "$ICONSRC" ] && command -v iconutil >/dev/null 2>&1; then
ICONSET="$DIST/AppIcon.iconset"
rm -rf "$ICONSET"; mkdir -p "$ICONSET"
for sz in 16 32 64 128 256 512; do
sips -z $sz $sz "$ICONSRC" --out "$ICONSET/icon_${sz}x${sz}.png" >/dev/null 2>&1
d=$((sz * 2))
sips -z $d $d "$ICONSRC" --out "$ICONSET/icon_${sz}x${sz}@2x.png" >/dev/null 2>&1
done
iconutil -c icns "$ICONSET" -o "$APP/Contents/Resources/AppIcon.icns" 2>/dev/null && \
echo " + AppIcon.icns"
rm -rf "$ICONSET"
# Info.plist 增加图标项
if [ -f "$APP/Contents/Info.plist" ]; then
/usr/libexec/PlistBuddy -c "Delete :CFBundleIconFile" "$APP/Contents/Info.plist" 2>/dev/null || true
/usr/libexec/PlistBuddy -c "Add :CFBundleIconFile string AppIcon" "$APP/Contents/Info.plist" 2>/dev/null || true
fi
fi
# 发布包不带 .GC 运行骨架(用户首次启动自行创建),避免覆盖用户数据
rm -rf "$APP/Contents/MacOS/.GC"
chmod +x "$APP/Contents/MacOS/EarthModelStudio"
@@ -18,6 +18,8 @@
<ItemGroup>
<PackageReference Include="Avalonia.Headless" Version="$(AvaloniaVersion)" />
<PackageReference Include="Avalonia.Skia" Version="$(AvaloniaVersion)" />
<!-- 通用封面路径会渲染模型自带的 UserControl,headless 下需要主题样式才会出内容 -->
<PackageReference Include="Avalonia.Themes.Fluent" Version="$(AvaloniaVersion)" />
</ItemGroup>
<ItemGroup>
+232 -53
View File
@@ -1,24 +1,44 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Loader;
using Avalonia;
using Avalonia.Controls;
using Avalonia.Headless;
using Avalonia.Media.Imaging;
using Avalonia.Platform;
using EarthModelStudio.ModelSdk;
using NeoRF.EarthModels;
namespace NeoRF.EarthModels.Preview;
/// <summary>
/// 封面生成工具:用模型自己的渲染器给每个模型画一张封面 preview.png。
/// 封面在模型包里,启动器只负责显示 —— 所以公转模型的封面一定就是公转场景。
/// 用法:dotnet run --project model-src/tools/PreviewGen -- &lt;仓库根&gt;
/// 封面生成工具:给每个模型画一张 preview.png。
///
/// 两条路径:
/// 1) 通用路径(默认):按模型清单的 assembly + type 加载模型程序集,
/// 调它自己的 IModelRuntime.CreateView 做 headless 渲染 —— 任何新模型都能自动出封面。
/// 2) 地球模型路径:仍走共享引擎的 CelestialView(保留 --bench 基准测试能力)。
///
/// 封面在模型包里,启动器只负责显示。用法:
/// dotnet run --project model/_engine/PreviewGen -- &lt;仓库根&gt; [--bench]
/// </summary>
internal static class Program
{
private const int Width = 768;
private const int Height = 316;
/// <summary>headless 封面应用:带上 Fluent 主题,UserControl 才有模板可渲染。</summary>
private sealed class PreviewApp : Application
{
public override void Initialize()
{
Styles.Add(new Avalonia.Themes.Fluent.FluentTheme());
}
}
[STAThread]
public static int Main(string[] args)
{
@@ -32,23 +52,53 @@ internal static class Program
var bench = args.Contains("--bench");
AppBuilder.Configure<Application>()
AppBuilder.Configure<PreviewApp>()
.UseSkia()
.UseHeadless(new AvaloniaHeadlessPlatformOptions { UseHeadlessDrawing = false })
.SetupWithoutStarting();
foreach (var modelDir in Directory.GetDirectories(modelRoot))
foreach (var modelDir in Directory.GetDirectories(modelRoot).OrderBy(p => p, StringComparer.Ordinal))
{
var id = Path.GetFileName(modelDir);
if (id.StartsWith(".")) continue;
var dataDir = Path.Combine(modelDir, id + ".model");
var sceneFile = Path.Combine(dataDir, "scene.json");
if (!File.Exists(sceneFile)) continue;
if (id.StartsWith('.') || id.StartsWith('_')) continue;
var dataDir = Path.Combine(modelDir, id + ".model");
if (!Directory.Exists(dataDir)) continue;
var outFile = Path.Combine(dataDir, "preview.png");
var hasScene = File.Exists(Path.Combine(dataDir, "scene.json"));
// 基准测试只对地球模型(依赖 CelestialView)
if (bench)
{
if (!hasScene) continue;
BenchEarthModel(dataDir, id);
continue;
}
var ok = false;
string? err = null;
if (hasScene)
ok = TryRenderEarthModel(dataDir, outFile, out err);
if (!ok)
ok = TryRenderViaContract(modelDir, dataDir, outFile, out err);
if (!ok)
Console.Error.WriteLine($"preview 跳过 {id}:{err}");
}
return 0;
}
// ─────────────────────────────────────────── 地球模型(保留原渲染器,封面一定是真场景)
private static bool TryRenderEarthModel(string dataDir, string outFile, out string? error)
{
error = null;
try
{
var runtime = SceneRuntime.Load(dataDir, 2048);
var texts = ModelStrings.Load(dataDir, "zh-CN");
var revolution = string.Equals(runtime.Scene.DefaultView, "revolution", StringComparison.OrdinalIgnoreCase);
var view = new CelestialView
{
Scene = runtime,
@@ -62,52 +112,181 @@ internal static class Program
Width = Width,
Height = Height
};
view.Measure(new Size(Width, Height));
view.Arrange(new Rect(0, 0, Width, Height));
PrepareView(view, Width, Height);
view.JumpToOrbit(revolution ? 45 : 0);
view.JumpToSpin(20);
if (bench)
{
// 真实窗口尺寸下的帧耗时
view.Width = 1240;
view.Height = 820;
view.Measure(new Size(1240, 820));
view.Arrange(new Rect(0, 0, 1240, 820));
// 模拟播放态(运动时降分辨率),分别测静止高清帧与运动帧
var animField = typeof(NeoRF.EarthModels.CelestialView)
.GetField("_animating", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
var sw = System.Diagnostics.Stopwatch.StartNew();
for (var frame = 0; frame < 20; frame++)
{
view.JumpToSpin(20 + frame * 3);
using var tmp = new RenderTargetBitmap(new PixelSize(1240, 820), new Vector(96, 96));
tmp.Render(view);
}
sw.Stop();
var still = sw.Elapsed.TotalMilliseconds / 20;
animField?.SetValue(view, true);
sw.Restart();
for (var frame = 0; frame < 20; frame++)
{
view.JumpToSpin(20 + frame * 3);
using var tmp = new RenderTargetBitmap(new PixelSize(1240, 820), new Vector(96, 96));
tmp.Render(view);
}
sw.Stop();
Console.WriteLine($"{id}: 静止 {still:0.0} ms/frame · 播放 {sw.Elapsed.TotalMilliseconds / 20:0.0} ms/frame");
continue;
}
var outFile = Path.Combine(dataDir, "preview.png");
using (var bitmap = new RenderTargetBitmap(new PixelSize(Width, Height), new Vector(96, 96)))
{
bitmap.Render(view);
bitmap.Save(outFile);
}
Console.WriteLine($"preview -> {outFile}");
Save(view, outFile);
return true;
}
catch (Exception ex)
{
error = ex.Message;
return false;
}
}
return 0;
private static void BenchEarthModel(string dataDir, string id)
{
var runtime = SceneRuntime.Load(dataDir, 2048);
var texts = ModelStrings.Load(dataDir, "zh-CN");
var revolution = string.Equals(runtime.Scene.DefaultView, "revolution", StringComparison.OrdinalIgnoreCase);
var view = new CelestialView
{
Scene = runtime,
Texts = texts,
View = revolution ? SceneView.Revolution : SceneView.Rotation,
IsPlaying = false,
ShowHud = false,
ShowLabels = false,
ShowOrbit = true,
ShowGraticule = true,
Width = Width,
Height = Height
};
PrepareView(view, Width, Height);
view.JumpToOrbit(revolution ? 45 : 0);
view.JumpToSpin(20);
view.Width = 1240;
view.Height = 820;
view.Measure(new Size(1240, 820));
view.Arrange(new Rect(0, 0, 1240, 820));
var animField = typeof(CelestialView)
.GetField("_animating", BindingFlags.NonPublic | BindingFlags.Instance);
var sw = System.Diagnostics.Stopwatch.StartNew();
for (var frame = 0; frame < 20; frame++)
{
view.JumpToSpin(20 + frame * 3);
using var tmp = new RenderTargetBitmap(new PixelSize(1240, 820), new Vector(96, 96));
tmp.Render(view);
}
sw.Stop();
var still = sw.Elapsed.TotalMilliseconds / 20;
animField?.SetValue(view, true);
sw.Restart();
for (var frame = 0; frame < 20; frame++)
{
view.JumpToSpin(20 + frame * 3);
using var tmp = new RenderTargetBitmap(new PixelSize(1240, 820), new Vector(96, 96));
tmp.Render(view);
}
sw.Stop();
Console.WriteLine($"{id}: 静止 {still:0.0} ms/frame · 播放 {sw.Elapsed.TotalMilliseconds / 20:0.0} ms/frame");
}
// ─────────────────────────────────────────── 通用路径:按契约加载模型自己的界面
private sealed class PreviewContext : IModelContext
{
public string ModelId { get; init; } = "";
public string ModelDirectory { get; init; } = "";
public string DataDirectory { get; init; } = "";
public string Language => "zh-CN";
public int MemoryBudgetMb => 512;
public void RequestClose() { }
public void ReportProgress(double value, string? message = null) { }
public void Log(string message) => Console.WriteLine(" " + message);
}
private static bool TryRenderViaContract(string modelDir, string dataDir, string outFile, out string? error)
{
error = null;
var manifestPath = Path.Combine(modelDir, Path.GetFileName(modelDir) + ".json");
if (!File.Exists(manifestPath)) { error = "缺少模型清单"; return false; }
try
{
using var doc = System.Text.Json.JsonDocument.Parse(File.ReadAllText(manifestPath));
var root = doc.RootElement;
var id = Path.GetFileName(modelDir);
var asmName = GetString(root, "assembly") ?? (id + ".dll");
var typeName = GetString(root, "type");
var asmPath = Path.Combine(dataDir, asmName);
if (!File.Exists(asmPath)) { error = $"找不到功能程序集 {asmName}"; return false; }
var alc = new AssemblyLoadContext("preview:" + id, isCollectible: true);
alc.Resolving += (_, name) =>
{
// 契约与 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",
"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");
return File.Exists(candidate) ? alc.LoadFromAssemblyPath(candidate) : null;
};
var asm = alc.LoadFromAssemblyPath(asmPath);
Type? factoryType = null;
if (!string.IsNullOrWhiteSpace(typeName))
factoryType = asm.GetType(typeName!, throwOnError: false);
factoryType ??= asm.GetTypes().FirstOrDefault(t =>
!t.IsAbstract && !t.IsInterface && typeof(IModelFactory).IsAssignableFrom(t));
if (factoryType == null) { error = "程序集里没有 IModelFactory 实现"; return false; }
if (Activator.CreateInstance(factoryType) is not IModelFactory factory)
{ error = "无法创建模型入口"; return false; }
var runtime = factory.Create();
var ctx = new PreviewContext
{
ModelId = id,
ModelDirectory = modelDir,
DataDirectory = dataDir
};
runtime.Prepare(ctx);
var view = runtime.CreateView(ctx);
if (view == null) { error = "模型没有返回界面"; return false; }
PrepareView(view, Width, Height);
Save(view, outFile);
runtime.Dispose();
(view as IDisposable)?.Dispose();
alc.Unload();
return true;
}
catch (Exception ex)
{
error = ex.ToString();
return false;
}
}
private static string? GetString(System.Text.Json.JsonElement e, string name)
=> e.TryGetProperty(name, out var v) && v.ValueKind == System.Text.Json.JsonValueKind.String
? v.GetString() : null;
// ─────────────────────────────────────────── 公共
private static void PrepareView(Control view, double w, double h)
{
// 封面是宽幅(768×316),模型界面按设计尺寸是 1240×820;这里把布局直接按封面
// 尺寸 Measure/Arrange,让卡片上看到的是完整布局而不是被裁掉一角。
view.Width = w;
view.Height = h;
view.Measure(new Size(w, h));
view.Arrange(new Rect(0, 0, w, h));
}
private static void Save(Control view, string outFile)
{
// headless 下 UserControl 必须挂进 Window 才有视觉树;直接 Render(Control)
// 会得到一张全黑的图(实测)。地球模型的裸 Control 走同一路径也正常工作。
var win = new Window
{
Width = Width,
Height = Height,
Background = Avalonia.Media.Brushes.White,
Content = view,
SystemDecorations = SystemDecorations.None,
ShowInTaskbar = false
};
win.Show();
using var bitmap = new RenderTargetBitmap(new PixelSize(Width, Height), new Vector(96, 96));
bitmap.Render(win);
bitmap.Save(outFile);
win.Content = null;
win.Close();
Console.WriteLine($"preview -> {outFile}");
}
}
@@ -6,7 +6,7 @@
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"VersionStamp/1.0.3": {
"VersionStamp/1.0.4": {
"runtime": {
"VersionStamp.dll": {}
}
@@ -14,7 +14,7 @@
}
},
"libraries": {
"VersionStamp/1.0.3": {
"VersionStamp/1.0.4": {
"type": "project",
"serviceable": false,
"sha512": ""
@@ -12,11 +12,11 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("NeoRF")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.3.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.3")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.4.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.4+936aec81850fb15f55014c66116d174dc9e2f967")]
[assembly: System.Reflection.AssemblyProductAttribute("Earth Model Studio")]
[assembly: System.Reflection.AssemblyTitleAttribute("VersionStamp")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.3.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.4.0")]
[assembly: System.Resources.NeutralResourcesLanguageAttribute("zh-Hans")]
// Generated by the MSBuild WriteCodeFragment class.
@@ -1 +1 @@
74f99e4d9cbf91b981ea8bb9ca826e7a8f5f09eeb43c6922e054b3d03a9b8acf
227dfd55e1626217a9b4b76559607d369bc84a173b8c542681a836eb300be0a1
@@ -5,7 +5,7 @@
},
"projects": {
"/Users/morris/Downloads/GC#/model/_engine/VersionStamp/VersionStamp.csproj": {
"version": "1.0.3",
"version": "1.0.4",
"restore": {
"projectUniqueName": "/Users/morris/Downloads/GC#/model/_engine/VersionStamp/VersionStamp.csproj",
"projectName": "VersionStamp",
@@ -11,7 +11,7 @@
"/Users/morris/.nuget/packages/": {}
},
"project": {
"version": "1.0.3",
"version": "1.0.4",
"restore": {
"projectUniqueName": "/Users/morris/Downloads/GC#/model/_engine/VersionStamp/VersionStamp.csproj",
"projectName": "VersionStamp",
@@ -1,6 +1,6 @@
{
"version": 2,
"dgSpecHash": "tJZIToOhfvc=",
"dgSpecHash": "d5HD23m5HNE=",
"success": true,
"projectFilePath": "/Users/morris/Downloads/GC#/model/_engine/VersionStamp/VersionStamp.csproj",
"expectedPackageFiles": [],
+29 -19
View File
@@ -726,34 +726,43 @@ public class CelestialView : Control, IDisposable
if (!labels) return;
// 收集每个标签的锚点,按屏幕 Y 排序后做垂直去重叠
var placed = new List<(double Y, double X, string Text, IBrush Brush)>();
// 标签位置必须「稳定」:不能每帧搜索最佳可见点(那会随旋转跳动),
// 也不能按可见性整块跳显/跳隐(那是抖动的来源)。
//
// 做法:
// · Y 用该纬线在当前视角下的实际投影高度(纬度本身随俯仰连续变化,不会跳);
// · X 固定在球体右侧一点,与旋转无关;
// · 可见性用一个连续衰减的透明度,而不是阈值切换。
var placed = new List<(double Y, double Lat, string Text, IBrush Brush)>();
foreach (var l in lines)
{
if (l.Label == null) continue;
Vector3 best = default;
var bestScore = double.NegativeInfinity;
for (var lon = -180; lon < 180; lon += 6)
// 该纬度圈在相机空间的最高点高度:取整圈采样里 Y 的最大值,
// 只依赖俯仰角(连续量),不随自转变化。
var maxY = double.NegativeInfinity;
for (var lon = 0; lon < 360; lon += 10)
{
var world = Vector3.Transform(LatLonToUnit(l.Lat, lon), planet);
var c = Vector3.Transform(world, cam);
if (c.Z < 0.10f) continue;
var score = c.X * 2.0 + c.Z;
if (score > bestScore) { bestScore = score; best = c; }
if (c.Y > maxY) maxY = c.Y;
}
if (double.IsNegativeInfinity(bestScore)) continue;
placed.Add((center.Y - best.Y * radius, center.X + best.X * radius, l.Label, l.Brush));
if (double.IsNegativeInfinity(maxY)) continue;
placed.Add((center.Y - maxY * radius, l.Lat, l.Label, l.Brush));
}
placed.Sort((a, b) => a.Y.CompareTo(b.Y));
const double minGap = 16.0;
var lastY = double.NegativeInfinity;
foreach (var p in placed)
// 按纬度从北到南排,保证顺序恒定;再用「期望间距」平滑排布,
// 间距不足时按固定比例压缩(而不是 +16 硬推,硬推会让整串标签滑动)。
placed.Sort((a, b) => b.Lat.CompareTo(a.Lat));
if (placed.Count == 0) return;
var labelX = center.X + radius * 1.02; // 固定在球右侧外部
for (var i = 0; i < placed.Count; i++)
{
var y = p.Y;
if (y - lastY < minGap) y = lastY + minGap;
lastY = y;
DrawLabelChip(ctx, p.Text, new Point(p.X, y), InsetMode ? 9.0 : 10.5, p.Brush, toRight: false);
var p = placed[i];
DrawLabelChip(ctx, p.Text, new Point(labelX, p.Y),
InsetMode ? 9.0 : 10.5, p.Brush, toRight: true);
}
}
@@ -767,8 +776,9 @@ public class CelestialView : Control, IDisposable
TextAlignment = TextAlignment.Left,
Trimming = TextTrimming.None
};
// 锚点即文字垂直中心,避免不同文字高度造成上下漂移
var x = toRight ? anchor.X + 9 : Math.Max(3, anchor.X - formatted.Width - 9);
var y = anchor.Y - formatted.Height - 4;
var y = anchor.Y - formatted.Height * 0.5;
ctx.DrawRectangle(ChipBg, null,
new Rect(x - 5, y - 2, formatted.Width + 10, formatted.Height + 5), 4, 4);
ctx.DrawText(formatted, new Point(x, y));
+1 -7
View File
@@ -48,7 +48,6 @@ public sealed class EarthModelView : UserControl, IDisposable
private TextBlock? _closeupLabel;
private ModelButton? _playButton;
private ModelButton? _overheadButton;
private ModelButton? _closeupButton;
private TextBlock? _zoomText;
private TextBlock? _cardState;
private TextBlock? _cardTitle;
@@ -292,12 +291,7 @@ public sealed class EarthModelView : UserControl, IDisposable
row.Children.Add(MakeToggle(_texts["orbit"], _orbit, on => { _orbit = on; _canvas.ShowOrbit = on; }));
row.Children.Add(MakeToggle(_texts["grid"], _grid, on => { _grid = on; _canvas.ShowGraticule = on; }));
row.Children.Add(MakeToggle(_texts["tilt"], _tilt, on => { _tilt = on; _canvas.ExaggerateTilt = on; }));
_closeupButton = MakeToggle(_texts["closeup"], _showCloseup, on =>
{
_showCloseup = on;
ApplyVisibility();
});
row.Children.Add(_closeupButton);
// 「放大」切换按钮已按需求移除;特写视图本身仍随公转显示
_overheadButton = MakeToggle(_texts["overhead"], _overhead, on =>
{
_overhead = on;
@@ -6,7 +6,7 @@
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"EarthModelStudio.ModelSdk/1.0.3": {
"EarthModelStudio.ModelSdk/1.0.4": {
"dependencies": {
"Avalonia": "11.3.9"
},
@@ -85,7 +85,7 @@
}
},
"libraries": {
"EarthModelStudio.ModelSdk/1.0.3": {
"EarthModelStudio.ModelSdk/1.0.4": {
"type": "project",
"serviceable": false,
"sha512": ""
@@ -6,7 +6,7 @@
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"EarthModelStudio.ModelSdk/1.0.3": {
"EarthModelStudio.ModelSdk/1.0.4": {
"dependencies": {
"Avalonia": "11.3.9"
},
@@ -85,7 +85,7 @@
}
},
"libraries": {
"EarthModelStudio.ModelSdk/1.0.3": {
"EarthModelStudio.ModelSdk/1.0.4": {
"type": "project",
"serviceable": false,
"sha512": ""
@@ -13,11 +13,11 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("NeoRF")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyDescriptionAttribute("Earth Model 模型契约:启动器与模型之间唯一的编译期依赖。")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.3.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.3")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.4.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.4+f69a8fbb7fa563800802d3c2e319ed56365c3b8c")]
[assembly: System.Reflection.AssemblyProductAttribute("Earth Model Studio")]
[assembly: System.Reflection.AssemblyTitleAttribute("EarthModelStudio.ModelSdk")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.3.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.4.0")]
[assembly: System.Resources.NeutralResourcesLanguageAttribute("zh-Hans")]
// Generated by the MSBuild WriteCodeFragment class.
@@ -1 +1 @@
b335d297927ccf5a0daf4e3ae36efd34dab2da4d5a059ac53a2e5ec720bc9741
d6cbf6a817e6aee9414cc9cd44beae17a3d7a177fe3f87185800ffb9e4ec71ca
@@ -5,7 +5,7 @@
},
"projects": {
"/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/EarthModelStudio.ModelSdk.csproj": {
"version": "1.0.3",
"version": "1.0.4",
"restore": {
"projectUniqueName": "/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/EarthModelStudio.ModelSdk.csproj",
"projectName": "EarthModelStudio.ModelSdk",
@@ -49,12 +49,6 @@
"Avalonia": {
"target": "Package",
"version": "[11.3.9, )"
},
"Microsoft.NET.ILLink.Tasks": {
"suppressParent": "All",
"target": "Package",
"version": "[8.0.31, )",
"autoReferenced": true
}
},
"imports": [
@@ -68,16 +62,6 @@
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Runtime.win-arm64",
"version": "[8.0.31, 8.0.31]"
},
{
"name": "Microsoft.NETCore.App.Runtime.win-arm64",
"version": "[8.0.31, 8.0.31]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
@@ -85,11 +69,6 @@
},
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/10.0.401/PortableRuntimeIdentifierGraph.json"
}
},
"runtimes": {
"win-arm64": {
"#import": []
}
}
}
}
@@ -13,11 +13,9 @@
<SourceRoot Include="/Users/morris/.nuget/packages/" />
</ItemGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)microsoft.net.illink.tasks/8.0.31/build/Microsoft.NET.ILLink.Tasks.props" Condition="Exists('$(NuGetPackageRoot)microsoft.net.illink.tasks/8.0.31/build/Microsoft.NET.ILLink.Tasks.props')" />
<Import Project="$(NuGetPackageRoot)avalonia/11.3.9/buildTransitive/Avalonia.props" Condition="Exists('$(NuGetPackageRoot)avalonia/11.3.9/buildTransitive/Avalonia.props')" />
</ImportGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgMicrosoft_NET_ILLink_Tasks Condition=" '$(PkgMicrosoft_NET_ILLink_Tasks)' == '' ">/Users/morris/.nuget/packages/microsoft.net.illink.tasks/8.0.31</PkgMicrosoft_NET_ILLink_Tasks>
<PkgAvalonia_BuildServices Condition=" '$(PkgAvalonia_BuildServices)' == '' ">/Users/morris/.nuget/packages/avalonia.buildservices/11.3.2</PkgAvalonia_BuildServices>
<PkgAvalonia Condition=" '$(PkgAvalonia)' == '' ">/Users/morris/.nuget/packages/avalonia/11.3.9</PkgAvalonia>
</PropertyGroup>
@@ -13,11 +13,11 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("NeoRF")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyDescriptionAttribute("Earth Model 模型契约:启动器与模型之间唯一的编译期依赖。")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.3.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.3")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.4.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.4+874c97ee271617592f530440ae8879461e91488b")]
[assembly: System.Reflection.AssemblyProductAttribute("Earth Model Studio")]
[assembly: System.Reflection.AssemblyTitleAttribute("EarthModelStudio.ModelSdk")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.3.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.4.0")]
[assembly: System.Resources.NeutralResourcesLanguageAttribute("zh-Hans")]
// Generated by the MSBuild WriteCodeFragment class.
@@ -1 +1 @@
336916da7664ce932095ba041eac38a72bfaee332d45c8339c55e418ea5f5a20
1e556d89cb334279dd738ee053373abdd6a4398ad2892bf59fdbda53299c0ae5
@@ -1,8 +1,4 @@
is_global = true
build_property.EnableAotAnalyzer =
build_property.EnableSingleFileAnalyzer = true
build_property.EnableTrimAnalyzer =
build_property.IncludeAllContentForSelfExtract =
build_property.AvaloniaNameGeneratorIsEnabled = true
build_property.AvaloniaNameGeneratorBehavior = InitializeComponent
build_property.AvaloniaNameGeneratorDefaultFieldModifier = internal
@@ -9,3 +9,5 @@
/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/obj/Release/net8.0/EarthModelStudio.ModelSdk.dll
/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/obj/Release/net8.0/refint/EarthModelStudio.ModelSdk.dll
/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/obj/Release/net8.0/ref/EarthModelStudio.ModelSdk.dll
/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/bin/Release/net8.0/EarthModelStudio.ModelSdk.pdb
/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/obj/Release/net8.0/EarthModelStudio.ModelSdk.pdb
@@ -111,130 +111,6 @@
"runtime": {
"lib/net5.0/MicroCom.Runtime.dll": {}
}
},
"Microsoft.NET.ILLink.Tasks/8.0.31": {
"type": "package",
"build": {
"build/Microsoft.NET.ILLink.Tasks.props": {}
}
}
},
"net8.0/win-arm64": {
"Avalonia/11.3.9": {
"type": "package",
"dependencies": {
"Avalonia.BuildServices": "11.3.2",
"Avalonia.Remote.Protocol": "11.3.9",
"MicroCom.Runtime": "0.11.0"
},
"compile": {
"ref/net8.0/Avalonia.Base.dll": {
"related": ".xml"
},
"ref/net8.0/Avalonia.Controls.dll": {
"related": ".xml"
},
"ref/net8.0/Avalonia.DesignerSupport.dll": {
"related": ".xml"
},
"ref/net8.0/Avalonia.Dialogs.dll": {
"related": ".xml"
},
"ref/net8.0/Avalonia.Markup.Xaml.dll": {
"related": ".xml"
},
"ref/net8.0/Avalonia.Markup.dll": {
"related": ".Xaml.xml;.xml"
},
"ref/net8.0/Avalonia.Metal.dll": {
"related": ".xml"
},
"ref/net8.0/Avalonia.MicroCom.dll": {
"related": ".xml"
},
"ref/net8.0/Avalonia.OpenGL.dll": {
"related": ".xml"
},
"ref/net8.0/Avalonia.Vulkan.dll": {
"related": ".xml"
},
"ref/net8.0/Avalonia.dll": {
"related": ".Base.xml;.Controls.xml;.DesignerSupport.xml;.Dialogs.xml;.Markup.Xaml.xml;.Markup.xml;.Metal.xml;.MicroCom.xml;.OpenGL.xml;.Vulkan.xml;.xml"
}
},
"runtime": {
"lib/net8.0/Avalonia.Base.dll": {
"related": ".xml"
},
"lib/net8.0/Avalonia.Controls.dll": {
"related": ".xml"
},
"lib/net8.0/Avalonia.DesignerSupport.dll": {
"related": ".xml"
},
"lib/net8.0/Avalonia.Dialogs.dll": {
"related": ".xml"
},
"lib/net8.0/Avalonia.Markup.Xaml.dll": {
"related": ".xml"
},
"lib/net8.0/Avalonia.Markup.dll": {
"related": ".Xaml.xml;.xml"
},
"lib/net8.0/Avalonia.Metal.dll": {
"related": ".xml"
},
"lib/net8.0/Avalonia.MicroCom.dll": {
"related": ".xml"
},
"lib/net8.0/Avalonia.OpenGL.dll": {
"related": ".xml"
},
"lib/net8.0/Avalonia.Vulkan.dll": {
"related": ".xml"
},
"lib/net8.0/Avalonia.dll": {
"related": ".Base.xml;.Controls.xml;.DesignerSupport.xml;.Dialogs.xml;.Markup.Xaml.xml;.Markup.xml;.Metal.xml;.MicroCom.xml;.OpenGL.xml;.Vulkan.xml;.xml"
}
},
"build": {
"buildTransitive/Avalonia.props": {},
"buildTransitive/Avalonia.targets": {}
}
},
"Avalonia.BuildServices/11.3.2": {
"type": "package",
"build": {
"buildTransitive/Avalonia.BuildServices.targets": {}
}
},
"Avalonia.Remote.Protocol/11.3.9": {
"type": "package",
"compile": {
"lib/net8.0/Avalonia.Remote.Protocol.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net8.0/Avalonia.Remote.Protocol.dll": {
"related": ".xml"
}
}
},
"MicroCom.Runtime/0.11.0": {
"type": "package",
"compile": {
"lib/net5.0/MicroCom.Runtime.dll": {}
},
"runtime": {
"lib/net5.0/MicroCom.Runtime.dll": {}
}
},
"Microsoft.NET.ILLink.Tasks/8.0.31": {
"type": "package",
"build": {
"build/Microsoft.NET.ILLink.Tasks.props": {}
}
}
}
},
@@ -457,70 +333,18 @@
"microcom.runtime.0.11.0.nupkg.sha512",
"microcom.runtime.nuspec"
]
},
"Microsoft.NET.ILLink.Tasks/8.0.31": {
"sha512": "OJdAGATV2QoVWL11zlDLEluA06q8rK+cgZR47ohrO8V+Qj5z9dlvN7bG9/0e5t0IOe+yD8tREC0bpsEgDGrzIQ==",
"type": "package",
"path": "microsoft.net.illink.tasks/8.0.31",
"hasTools": true,
"files": [
".nupkg.metadata",
".signature.p7s",
"Icon.png",
"LICENSE.TXT",
"Sdk/Sdk.props",
"THIRD-PARTY-NOTICES.TXT",
"analyzers/dotnet/cs/ILLink.CodeFixProvider.dll",
"analyzers/dotnet/cs/ILLink.RoslynAnalyzer.dll",
"build/Microsoft.NET.ILLink.Analyzers.props",
"build/Microsoft.NET.ILLink.Tasks.props",
"build/Microsoft.NET.ILLink.targets",
"microsoft.net.illink.tasks.8.0.31.nupkg.sha512",
"microsoft.net.illink.tasks.nuspec",
"tools/net472/ILLink.Tasks.dll",
"tools/net472/ILLink.Tasks.dll.config",
"tools/net472/Mono.Cecil.Mdb.dll",
"tools/net472/Mono.Cecil.Pdb.dll",
"tools/net472/Mono.Cecil.Rocks.dll",
"tools/net472/Mono.Cecil.dll",
"tools/net472/Sdk/Sdk.props",
"tools/net472/System.Buffers.dll",
"tools/net472/System.Collections.Immutable.dll",
"tools/net472/System.Memory.dll",
"tools/net472/System.Numerics.Vectors.dll",
"tools/net472/System.Reflection.Metadata.dll",
"tools/net472/System.Runtime.CompilerServices.Unsafe.dll",
"tools/net472/build/Microsoft.NET.ILLink.Analyzers.props",
"tools/net472/build/Microsoft.NET.ILLink.Tasks.props",
"tools/net472/build/Microsoft.NET.ILLink.targets",
"tools/net8.0/ILLink.Tasks.deps.json",
"tools/net8.0/ILLink.Tasks.dll",
"tools/net8.0/Mono.Cecil.Mdb.dll",
"tools/net8.0/Mono.Cecil.Pdb.dll",
"tools/net8.0/Mono.Cecil.Rocks.dll",
"tools/net8.0/Mono.Cecil.dll",
"tools/net8.0/Sdk/Sdk.props",
"tools/net8.0/build/Microsoft.NET.ILLink.Analyzers.props",
"tools/net8.0/build/Microsoft.NET.ILLink.Tasks.props",
"tools/net8.0/build/Microsoft.NET.ILLink.targets",
"tools/net8.0/illink.deps.json",
"tools/net8.0/illink.dll",
"tools/net8.0/illink.runtimeconfig.json",
"useSharedDesignerContext.txt"
]
}
},
"projectFileDependencyGroups": {
"net8.0": [
"Avalonia >= 11.3.9",
"Microsoft.NET.ILLink.Tasks >= 8.0.31"
"Avalonia >= 11.3.9"
]
},
"packageFolders": {
"/Users/morris/.nuget/packages/": {}
},
"project": {
"version": "1.0.3",
"version": "1.0.4",
"restore": {
"projectUniqueName": "/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/EarthModelStudio.ModelSdk.csproj",
"projectName": "EarthModelStudio.ModelSdk",
@@ -564,12 +388,6 @@
"Avalonia": {
"target": "Package",
"version": "[11.3.9, )"
},
"Microsoft.NET.ILLink.Tasks": {
"suppressParent": "All",
"target": "Package",
"version": "[8.0.31, )",
"autoReferenced": true
}
},
"imports": [
@@ -583,16 +401,6 @@
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Runtime.win-arm64",
"version": "[8.0.31, 8.0.31]"
},
{
"name": "Microsoft.NETCore.App.Runtime.win-arm64",
"version": "[8.0.31, 8.0.31]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
@@ -600,11 +408,6 @@
},
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/10.0.401/PortableRuntimeIdentifierGraph.json"
}
},
"runtimes": {
"win-arm64": {
"#import": []
}
}
}
}
@@ -1,16 +1,13 @@
{
"version": 2,
"dgSpecHash": "2wEgD3WME1E=",
"dgSpecHash": "XCy7zfNs4zI=",
"success": true,
"projectFilePath": "/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/EarthModelStudio.ModelSdk.csproj",
"expectedPackageFiles": [
"/Users/morris/.nuget/packages/avalonia/11.3.9/avalonia.11.3.9.nupkg.sha512",
"/Users/morris/.nuget/packages/avalonia.buildservices/11.3.2/avalonia.buildservices.11.3.2.nupkg.sha512",
"/Users/morris/.nuget/packages/avalonia.remote.protocol/11.3.9/avalonia.remote.protocol.11.3.9.nupkg.sha512",
"/Users/morris/.nuget/packages/microcom.runtime/0.11.0/microcom.runtime.0.11.0.nupkg.sha512",
"/Users/morris/.nuget/packages/microsoft.net.illink.tasks/8.0.31/microsoft.net.illink.tasks.8.0.31.nupkg.sha512",
"/Users/morris/.nuget/packages/microsoft.netcore.app.runtime.win-arm64/8.0.31/microsoft.netcore.app.runtime.win-arm64.8.0.31.nupkg.sha512",
"/Users/morris/.nuget/packages/microsoft.aspnetcore.app.runtime.win-arm64/8.0.31/microsoft.aspnetcore.app.runtime.win-arm64.8.0.31.nupkg.sha512"
"/Users/morris/.nuget/packages/microcom.runtime/0.11.0/microcom.runtime.0.11.0.nupkg.sha512"
],
"logs": []
}
+3 -3
View File
@@ -17,7 +17,7 @@
"atlas"
],
"dataDir": "earth-geography.model",
"version": "1.0",
"updatedAt": "2026-11-08T09:22:29Z",
"build": "883fdf6c57"
"version": "1.2",
"updatedAt": "2026-11-08T12:19:03Z",
"build": "5e12cd2ee1"
}
@@ -1 +1 @@
{"borders":[{"between":"亚洲-非洲","name":"苏伊士运河","lines":[[[32.6,31.3],[32.4,30.5],[32.3,29.9]]]},{"between":"亚洲-欧洲","name":"亚欧分界(乌拉尔山—乌拉尔河—里海—大高加索山—黑海—土耳其海峡)","segments":[{"name":"乌拉尔山","nameI18n":{"zh-CN":"乌拉尔山","en":"Ural Mts."},"lines":[[[66.0,68.5],[64.0,64.0],[60.5,60.0],[58.5,54.0],[57.0,51.0]]]},{"name":"乌拉尔河","nameI18n":{"zh-CN":"乌拉尔河","en":"Ural River"},"lines":[[[57.0,51.0],[55.5,49.0],[53.0,47.0],[51.5,46.5]]]},{"name":"里海","nameI18n":{"zh-CN":"里海","en":"Caspian Sea"},"lines":[[[51.5,46.5],[50.5,44.0],[49.5,41.0],[50.0,38.0],[51.0,36.5]]]},{"name":"大高加索山","nameI18n":{"zh-CN":"大高加索山","en":"Greater Caucasus"},"lines":[[[51.0,36.5],[46.0,42.5],[43.0,42.8],[41.0,43.2]]]},{"name":"黑海","nameI18n":{"zh-CN":"黑海","en":"Black Sea"},"lines":[[[41.0,43.2],[36.0,44.5],[31.0,44.0],[29.0,41.5]]]},{"name":"土耳其海峡","nameI18n":{"zh-CN":"土耳其海峡","en":"Turkish Straits"},"lines":[[[29.0,41.5],[28.0,40.5],[26.5,40.0],[26.2,39.5]]]}],"lines":[[[66.0,68.5],[64.0,64.0],[60.5,60.0],[58.5,54.0],[57.0,51.0],[57.0,51.0],[55.5,49.0],[53.0,47.0],[51.5,46.5],[51.5,46.5],[50.5,44.0],[49.5,41.0],[50.0,38.0],[51.0,36.5],[51.0,36.5],[46.0,42.5],[43.0,42.8],[41.0,43.2],[41.0,43.2],[36.0,44.5],[31.0,44.0],[29.0,41.5],[29.0,41.5],[28.0,40.5],[26.5,40.0],[26.2,39.5]]]},{"between":"亚洲-非洲","name":"红海","lines":[[[43.3,12.6],[40.0,18.0],[38.5,22.0],[35.0,27.0],[34.5,29.0]]]},{"between":"欧洲-非洲","name":"直布罗陀海峡","lines":[[[-5.6,36.0],[-4.0,36.2],[0.0,36.5]]]},{"between":"北美-南美","name":"巴拿马运河","lines":[[[-79.6,9.1],[-78.5,8.9],[-77.5,8.6]]]},{"between":"亚洲-北美","name":"白令海峡","lines":[[[-169.0,65.5],[-170.5,65.8],[-172.0,66.0]]]},{"between":"亚洲-大洋洲","name":"印尼群岛","lines":[[[120.0,-1.0],[125.0,-2.0],[130.0,-3.0]]]},{"between":"南极洲","name":"南极圈","lines":[[[-180.0,-66.5],[-170.0,-66.5],[-160.0,-66.5],[-150.0,-66.5],[-140.0,-66.5],[-130.0,-66.5],[-120.0,-66.5],[-110.0,-66.5],[-100.0,-66.5],[-90.0,-66.5],[-80.0,-66.5],[-70.0,-66.5],[-60.0,-66.5],[-50.0,-66.5],[-40.0,-66.5],[-30.0,-66.5],[-20.0,-66.5],[-10.0,-66.5],[0.0,-66.5],[10.0,-66.5],[20.0,-66.5],[30.0,-66.5],[40.0,-66.5],[50.0,-66.5],[60.0,-66.5],[70.0,-66.5],[80.0,-66.5],[90.0,-66.5],[100.0,-66.5],[110.0,-66.5],[120.0,-66.5],[130.0,-66.5],[140.0,-66.5],[150.0,-66.5],[160.0,-66.5],[170.0,-66.5],[180.0,-66.5]]]}]}
{"borders":[{"between":"亚洲-非洲","name":"苏伊士运河","lines":[[[32.6,31.3],[32.4,30.5],[32.3,29.9]]]},{"between":"亚洲-欧洲","name":"亚欧分界(乌拉尔山—乌拉尔河—里海—大高加索山—黑海—土耳其海峡)","segments":[{"name":"乌拉尔山","nameI18n":{"zh-CN":"乌拉尔山","en":"Ural Mts."},"lines":[[[66.0,68.5],[64.0,64.0],[60.5,60.0],[58.5,54.0],[57.0,51.0]]]},{"name":"乌拉尔河","nameI18n":{"zh-CN":"乌拉尔河","en":"Ural River"},"lines":[[[57.0,51.0],[55.5,49.0],[53.0,47.0],[51.5,46.5]]]},{"name":"里海","nameI18n":{"zh-CN":"里海","en":"Caspian Sea"},"lines":[[[51.5,46.5],[50.5,44.0],[49.5,41.0],[50.0,38.0],[51.0,36.5]]]},{"name":"大高加索山","nameI18n":{"zh-CN":"大高加索山","en":"Greater Caucasus"},"lines":[[[51.0,36.5],[46.0,42.5],[43.0,42.8],[41.0,43.2]]]},{"name":"黑海","nameI18n":{"zh-CN":"黑海","en":"Black Sea"},"lines":[[[41.0,43.2],[36.0,44.5],[31.0,44.0],[29.0,41.5]]]},{"name":"土耳其海峡","nameI18n":{"zh-CN":"土耳其海峡","en":"Turkish Straits"},"lines":[[[29.0,41.5],[28.0,40.5],[26.5,40.0],[26.2,39.5]]]}],"lines":[[[66.0,68.5],[64.0,64.0],[60.5,60.0],[58.5,54.0],[57.0,51.0],[57.0,51.0],[55.5,49.0],[53.0,47.0],[51.5,46.5],[51.5,46.5],[50.5,44.0],[49.5,41.0],[50.0,38.0],[51.0,36.5],[51.0,36.5],[46.0,42.5],[43.0,42.8],[41.0,43.2],[41.0,43.2],[36.0,44.5],[31.0,44.0],[29.0,41.5],[29.0,41.5],[28.0,40.5],[26.5,40.0],[26.2,39.5]]]},{"between":"欧洲-非洲","name":"直布罗陀海峡","lines":[[[-5.6,36.0],[-4.0,36.2],[0.0,36.5]]]},{"between":"北美-南美","name":"巴拿马运河","lines":[[[-79.6,9.1],[-78.5,8.9],[-77.5,8.6]]]},{"between":"南美-南极","name":"德雷克海峡","nameI18n":{"zh-CN":"德雷克海峡","en":"Drake Passage"},"lines":[[[-68.0,-56.0],[-66.5,-57.5],[-65.0,-59.0],[-63.5,-60.5],[-62.0,-62.0]]]},{"between":"亚洲-北美","name":"白令海峡","lines":[[[-169.0,65.5],[-170.5,65.8],[-172.0,66.0]]]},{"between":"亚洲-大洋洲","name":"印尼群岛","lines":[[[120.0,-1.0],[125.0,-2.0],[130.0,-3.0]]]},{"between":"南极洲","name":"南极圈","lines":[[[-180.0,-66.5],[-170.0,-66.5],[-160.0,-66.5],[-150.0,-66.5],[-140.0,-66.5],[-130.0,-66.5],[-120.0,-66.5],[-110.0,-66.5],[-100.0,-66.5],[-90.0,-66.5],[-80.0,-66.5],[-70.0,-66.5],[-60.0,-66.5],[-50.0,-66.5],[-40.0,-66.5],[-30.0,-66.5],[-20.0,-66.5],[-10.0,-66.5],[0.0,-66.5],[10.0,-66.5],[20.0,-66.5],[30.0,-66.5],[40.0,-66.5],[50.0,-66.5],[60.0,-66.5],[70.0,-66.5],[80.0,-66.5],[90.0,-66.5],[100.0,-66.5],[110.0,-66.5],[120.0,-66.5],[130.0,-66.5],[140.0,-66.5],[150.0,-66.5],[160.0,-66.5],[170.0,-66.5],[180.0,-66.5]]]}]}
@@ -0,0 +1,44 @@
{
"continents": [
{
"id": "eurasia",
"nameI18n": { "zh-CN": "亚欧大陆", "en": "Eurasia" },
"label": [85, 52],
"lines": [
[[-10,36],[-9,43],[-2,48],[3,52],[8,58],[12,65],[20,70],[30,71],[45,68],[60,72],[80,74],[100,76],[120,73],[140,70],[160,62],[170,60],[160,54],[145,50],[140,42],[130,38],[122,30],[120,22],[110,20],[105,10],[100,5],[103,-2],[98,2],[92,20],[88,22],[80,8],[77,8],[72,20],[68,24],[62,25],[57,25],[50,28],[45,38],[35,36],[28,40],[26,40],[20,42],[15,38],[10,37],[0,36],[-10,36]]
]
},
{
"id": "africa",
"nameI18n": { "zh-CN": "非洲大陆", "en": "Africa" },
"label": [18, 2],
"lines": [
[[-17,15],[-16,21],[-10,27],[-6,36],[10,37],[20,33],[32,31],[35,24],[38,18],[43,12],[51,11],[48,5],[42,-2],[41,-12],[40,-20],[35,-26],[30,-31],[25,-35],[18,-34],[15,-27],[12,-18],[9,-5],[8,4],[3,6],[-4,5],[-8,5],[-13,10],[-17,15]]
]
},
{
"id": "america",
"nameI18n": { "zh-CN": "美洲大陆", "en": "America" },
"label": [-88, 8],
"lines": [
[[-168,66],[-160,70],[-145,70],[-130,68],[-115,70],[-100,72],[-85,70],[-75,63],[-62,60],[-55,52],[-60,47],[-66,45],[-70,42],[-75,36],[-81,30],[-80,25],[-83,22],[-87,21],[-90,18],[-88,16],[-83,10],[-78,9],[-77,8],[-79,2],[-81,-5],[-76,-14],[-71,-18],[-70,-24],[-72,-38],[-74,-45],[-70,-52],[-68,-55],[-72,-54],[-75,-48],[-73,-40],[-71,-30],[-70,-20],[-75,-10],[-80,0],[-83,8],[-88,14],[-95,16],[-105,20],[-110,24],[-114,30],[-117,33],[-122,38],[-124,45],[-130,52],[-135,58],[-145,60],[-155,58],[-165,60],[-168,66]]
]
},
{
"id": "australia",
"nameI18n": { "zh-CN": "澳大利亚大陆", "en": "Australia" },
"label": [134, -25],
"lines": [
[[113,-22],[114,-27],[116,-33],[122,-34],[129,-32],[134,-33],[138,-35],[141,-38],[147,-38],[150,-35],[153,-29],[153,-25],[149,-21],[146,-19],[142,-11],[138,-12],[136,-14],[132,-11],[129,-15],[125,-14],[122,-17],[117,-20],[113,-22]]
]
},
{
"id": "antarctica",
"nameI18n": { "zh-CN": "南极大陆", "en": "Antarctica" },
"label": [20, -78],
"lines": [
[[-180,-72],[-150,-75],[-120,-73],[-90,-75],[-60,-70],[-45,-73],[-20,-70],[0,-69],[30,-68],[60,-67],[90,-66],[120,-66],[150,-70],[170,-72],[180,-78],[150,-80],[120,-80],[90,-79],[60,-78],[30,-76],[0,-75],[-30,-76],[-60,-77],[-90,-78],[-120,-77],[-150,-76],[-180,-72]]
]
}
]
}
@@ -1 +1,53 @@
{"plates":[{"id":"pacific","lines":[[[-180,60],[-150,55],[-130,45],[-110,25],[-95,10],[-80,0],[-75,-15],[-90,-30],[-110,-45],[-130,-55],[-160,-60],[-180,-55],[-180,60]]]},{"id":"north-american","lines":[[[-168,72],[-140,70],[-120,60],[-100,50],[-80,45],[-60,42],[-52,28],[-62,12],[-82,8],[-95,16],[-110,25],[-130,45],[-150,55],[-168,72]]]},{"id":"south-american","lines":[[[-82,12],[-62,10],[-45,-2],[-35,-8],[-30,-20],[-40,-35],[-55,-42],[-70,-52],[-78,-40],[-80,-20],[-82,12]]]},{"id":"african","lines":[[[-20,35],[10,37],[32,32],[43,12],[51,10],[42,-8],[40,-25],[25,-35],[15,-30],[8,-5],[-8,5],[-17,15],[-20,35]]]},{"id":"eurasian","lines":[[[-10,36],[0,45],[15,55],[30,68],[60,72],[100,76],[140,70],[160,60],[140,42],[120,30],[100,20],[75,8],[60,22],[45,30],[30,32],[10,37],[-10,36]]]},{"id":"indo-australian","lines":[[[95,5],[115,10],[130,5],[145,-5],[150,-20],[145,-35],[130,-42],[115,-38],[105,-25],[95,-10],[95,5]]]},{"id":"antarctic","lines":[[[-180,-60],[-120,-62],[-60,-60],[0,-62],[60,-60],[120,-62],[180,-60],[180,-90],[-180,-90],[-180,-60]]]},{"id":"nazca","lines":[[[-95,-5],[-85,-10],[-75,-25],[-78,-40],[-90,-42],[-100,-30],[-95,-5]]]},{"id":"cocos","lines":[[[-105,10],[-95,12],[-90,5],[-100,2],[-105,10]]]},{"id":"caribbean","lines":[[[-88,15],[-75,18],[-62,15],[-60,8],[-72,6],[-85,8],[-88,15]]]},{"id":"philippine","lines":[[[118,20],[128,18],[130,8],[125,2],[118,8],[118,20]]]},{"id":"arabian","lines":[[[35,32],[48,30],[58,22],[55,12],[42,10],[35,20],[35,32]]]}]}
{
"plates": [
{
"id": "eurasian",
"nameI18n": { "zh-CN": "亚欧板块", "en": "Eurasian Plate" },
"label": [85, 55],
"lines": [
[[-10,36],[0,45],[15,55],[30,68],[60,72],[100,76],[140,70],[160,60],[140,42],[125,32],[110,28],[95,28],[80,30],[72,28],[60,25],[45,30],[32,32],[10,37],[-10,36]]
]
},
{
"id": "african",
"nameI18n": { "zh-CN": "非洲板块", "en": "African Plate" },
"label": [12, 2],
"lines": [
[[-20,35],[10,37],[32,32],[43,12],[51,10],[42,-8],[40,-25],[25,-35],[15,-30],[8,-5],[-8,5],[-17,15],[-20,35]]
]
},
{
"id": "american",
"nameI18n": { "zh-CN": "美洲板块", "en": "American Plate" },
"label": [-100, 12],
"lines": [
[[-168,72],[-140,70],[-115,70],[-90,72],[-60,60],[-52,45],[-60,30],[-80,25],[-82,8],[-78,0],[-70,-15],[-72,-40],[-75,-52],[-80,-55],[-95,-45],[-105,-25],[-95,-5],[-90,10],[-105,20],[-120,35],[-135,50],[-155,60],[-168,72]]
]
},
{
"id": "pacific",
"nameI18n": { "zh-CN": "太平洋板块", "en": "Pacific Plate" },
"label": [-150, 0],
"lines": [
[[-180,60],[-150,55],[-130,45],[-110,25],[-95,10],[-80,0],[-75,-15],[-90,-30],[-110,-45],[-130,-55],[-160,-60],[-180,-58],[-180,60]],
[[145,55],[158,45],[152,30],[145,15],[140,0],[148,-15],[158,-30],[168,-45],[180,-55],[180,60],[165,60],[145,55]]
]
},
{
"id": "indian-ocean",
"nameI18n": { "zh-CN": "印度洋板块", "en": "Indian Ocean Plate" },
"label": [95, -8],
"lines": [
[[35,32],[50,30],[60,22],[68,24],[75,8],[88,5],[95,5],[115,10],[130,5],[145,-5],[150,-20],[145,-35],[130,-42],[115,-38],[105,-25],[95,-10],[80,-10],[65,-5],[55,10],[42,10],[35,20],[35,32]]
]
},
{
"id": "antarctic",
"nameI18n": { "zh-CN": "南极洲板块", "en": "Antarctic Plate" },
"label": [0, -76],
"lines": [
[[-180,-60],[-120,-62],[-60,-60],[0,-62],[60,-60],[120,-62],[180,-60],[180,-90],[-180,-90],[-180,-60]]
]
}
]
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

After

Width:  |  Height:  |  Size: 196 KiB

@@ -12,8 +12,8 @@
"en": "Earth Geography"
},
"descriptionI18n": {
"zh-CN": "五带划分 · 七大洲四大洋 · 六大板块与洲界",
"en": "Climate zones · continents & oceans · plates & borders"
"zh-CN": "五带划分 · 七大洲四大洋 · 六大板块 · 五大陆与洲界",
"en": "Climate zones · continents & oceans · six plates · five mainlands & borders"
},
"tropicDeg": 23.5,
"axialTiltDeg": 23.5,
+8
View File
@@ -13,6 +13,8 @@ public sealed class PlateEntry
{
[JsonPropertyName("id")] public string Id { get; set; } = "";
[JsonPropertyName("nameI18n")] public Dictionary<string, string>? NameI18n { get; set; }
/// <summary>标签锚点 [lon, lat];缺省时用轮廓质心。</summary>
[JsonPropertyName("label")] public double[]? Label { get; set; }
[JsonPropertyName("lines")] public List<List<double[]>> Lines { get; set; } = new();
}
@@ -21,6 +23,12 @@ public sealed class PlateData
[JsonPropertyName("plates")] public List<PlateEntry> Plates { get; set; } = new();
}
/// <summary>大陆(六块大陆里的教材五块写法)。结构与板块一致,纯线稿。</summary>
public sealed class ContinentData
{
[JsonPropertyName("continents")] public List<PlateEntry> Continents { get; set; } = new();
}
public sealed class BorderEntry
{
/// <summary>分界的两个大洲,如「亚洲-非洲」。</summary>
+10 -4
View File
@@ -19,6 +19,7 @@ public sealed class GeographyRuntime : IModelRuntime
private GeoScene? _scene;
private GeoData? _coast;
private PlateData? _plates;
private ContinentData? _continents;
private BorderData? _borders;
private LabelData? _labels;
private GeographyView? _view;
@@ -30,13 +31,15 @@ public sealed class GeographyRuntime : IModelRuntime
_scene = ModelJson.Read<GeoScene>(Path.Combine(dir, "scene.json")) ?? new GeoScene();
_coast = ModelJson.Read<GeoData>(Path.Combine(dir, "coastline.json")) ?? new GeoData();
_plates = ModelJson.Read<PlateData>(Path.Combine(dir, "plates.json")) ?? new PlateData();
_continents = ModelJson.Read<ContinentData>(Path.Combine(dir, "continents.json")) ?? new ContinentData();
_borders = ModelJson.Read<BorderData>(Path.Combine(dir, "borders.json")) ?? new BorderData();
context.ReportProgress(0.45, "加载名称标注");
_labels = ModelJson.Read<LabelData>(Path.Combine(dir, "labels.json")) ?? new LabelData();
context.ReportProgress(0.72, "构建轮廓");
context.Log($"[{context.ModelId}] 海岸线 {_coast.Lines.Count} 条,板块 {_plates.Plates.Count} 个,洲界 {_borders.Borders.Count} 条");
context.Log($"[{context.ModelId}] 海岸线 {_coast.Lines.Count} 条,六大板块 {_plates.Plates.Count} 个," +
$"大陆 {_continents.Continents.Count} 块,洲界 {_borders.Borders.Count} 条");
}
public Control CreateView(IModelContext context)
@@ -44,10 +47,11 @@ public sealed class GeographyRuntime : IModelRuntime
_scene ??= new GeoScene();
_coast ??= new GeoData();
_plates ??= new PlateData();
_continents ??= new ContinentData();
_borders ??= new BorderData();
_labels ??= new LabelData();
_view = new GeographyView(context, _scene, _coast, _plates, _borders, _labels);
_view = new GeographyView(context, _scene, _coast, _plates, _continents, _borders, _labels);
context.ReportProgress(1.0, "准备就绪");
return BuildLayout(_scene, _view, context);
}
@@ -90,7 +94,8 @@ public sealed class GeographyRuntime : IModelRuntime
actions.Children.Add(MakeModeSwitch(view));
actions.Children.Add(MakeToggle("五带", view.ShowZones, on => view.ShowZones = on));
actions.Children.Add(MakeToggle("大洲轮廓", view.ShowCoast, on => view.ShowCoast = on));
actions.Children.Add(MakeToggle("板块", view.ShowPlates, on => view.ShowPlates = on));
actions.Children.Add(MakeToggle("六大板块", view.ShowPlates, on => view.ShowPlates = on));
actions.Children.Add(MakeToggle("五大陆", view.ShowContinents, on => view.ShowContinents = on));
actions.Children.Add(MakeToggle("洲界", view.ShowBorders, on => view.ShowBorders = on));
actions.Children.Add(MakeButton("复位", () => view.ResetView()));
Grid.SetColumn(actions, 2);
@@ -122,7 +127,8 @@ public sealed class GeographyRuntime : IModelRuntime
{
var panel = new StackPanel { Spacing = 6 };
panel.Children.Add(LegendRow(new SolidColorBrush(Color.Parse("#DEEEFF")), "大洲海岸线"));
panel.Children.Add(LegendRow(new SolidColorBrush(Color.Parse("#FF8A5C")), "板块边界"));
panel.Children.Add(LegendRow(new SolidColorBrush(Color.Parse("#FF8A5C")), "六大板块边界"));
panel.Children.Add(LegendRow(new SolidColorBrush(Color.Parse("#FFD24A")), "五大陆轮廓"));
panel.Children.Add(LegendRow(new SolidColorBrush(Color.Parse("#FFDC70")), "洲界 / 分界线"));
return new Border
{
+113 -27
View File
@@ -23,6 +23,7 @@ public sealed class GeographyView : Control
private readonly GeoScene _scene;
private readonly GeoData _coast;
private readonly PlateData _plates;
private readonly ContinentData _continents;
private readonly BorderData _borders;
private readonly LabelData _labels;
@@ -35,6 +36,7 @@ public sealed class GeographyView : Control
private bool _showZones = true;
private bool _showCoast = true;
private bool _showPlates;
private bool _showContinents = true;
private bool _showBorders = true;
private bool _showLabels = true;
private GeoMode _mode = GeoMode.Sphere3D;
@@ -42,11 +44,12 @@ public sealed class GeographyView : Control
public event Action? StateChanged;
public GeographyView(IModelContext context, GeoScene scene, GeoData coast,
PlateData plates, BorderData borders, LabelData labels)
PlateData plates, ContinentData continents, BorderData borders, LabelData labels)
{
_scene = scene;
_coast = coast;
_plates = plates;
_continents = continents;
_borders = borders;
_labels = labels;
ClipToBounds = true;
@@ -56,6 +59,7 @@ public sealed class GeographyView : Control
public bool ShowZones { get => _showZones; set { _showZones = value; Redraw(); } }
public bool ShowCoast { get => _showCoast; set { _showCoast = value; Redraw(); } }
public bool ShowPlates { get => _showPlates; set { _showPlates = value; Redraw(); } }
public bool ShowContinents { get => _showContinents; set { _showContinents = value; Redraw(); } }
public bool ShowBorders { get => _showBorders; set { _showBorders = value; Redraw(); } }
public bool ShowLabels { get => _showLabels; set { _showLabels = value; Redraw(); } }
public GeoMode Mode { get => _mode; set { _mode = value; InvalidateVisual(); StateChanged?.Invoke(); } }
@@ -164,6 +168,7 @@ public sealed class GeographyView : Control
if (_showZones) DrawZones3D(ctx, m, cx, cy, r);
if (_showCoast) DrawCoast3D(ctx, m, cx, cy, r);
if (_showPlates) DrawPlates3D(ctx, m, cx, cy, r);
if (_showContinents) DrawContinents3D(ctx, m, cx, cy, r);
if (_showBorders) DrawBorders3D(ctx, m, cx, cy, r);
if (_showLabels) DrawLabels3D(ctx, m, cx, cy, r);
@@ -172,22 +177,61 @@ public sealed class GeographyView : Control
DrawReadout(ctx, size, $"球面 · {Norm(_yawDeg):0}°E {_pitchDeg:0}°");
}
/// <summary>
/// 球体本体:分层绘制提升立体感
/// ① 外层大气光晕(径向渐变,越靠边缘越亮)
/// ② 海洋底色(左上受光的渐变,模拟日光)
/// ③ 高光点 + 阴影弧(明暗对比塑造球感)
/// </summary>
private static void DrawOceanDisc(DrawingContext ctx, float cx, float cy, float r)
{
var disc = new RadialGradientBrush
// ① 大气边缘光:球外一层的柔和蓝晕
var halo = new RadialGradientBrush
{
Center = new RelativePoint(0.36, 0.32, RelativeUnit.Relative),
GradientOrigin = new RelativePoint(0.36, 0.32, RelativeUnit.Relative),
RadiusX = new RelativeScalar(0.85, RelativeUnit.Relative),
RadiusY = new RelativeScalar(0.85, RelativeUnit.Relative),
Center = new RelativePoint(0.5, 0.5, RelativeUnit.Relative),
GradientOrigin = new RelativePoint(0.5, 0.5, RelativeUnit.Relative),
RadiusX = new RelativeScalar(0.5, RelativeUnit.Relative),
RadiusY = new RelativeScalar(0.5, RelativeUnit.Relative),
GradientStops =
{
new GradientStop(Color.Parse("#12314F"), 0),
new GradientStop(Color.Parse("#0A1E33"), 0.62),
new GradientStop(Color.Parse("#061120"), 1)
new GradientStop(Color.FromArgb(0, 90, 160, 255), 0.82),
new GradientStop(Color.FromArgb(70, 90, 170, 255), 0.94),
new GradientStop(Color.FromArgb(0, 90, 170, 255), 1.0)
}
};
ctx.DrawEllipse(disc, null, new Point(cx, cy), r, r);
ctx.DrawEllipse(halo, null, new Point(cx, cy), r * 1.14, r * 1.14);
// ② 海洋本体:左上亮、右下暗
var ocean = new RadialGradientBrush
{
Center = new RelativePoint(0.34, 0.30, RelativeUnit.Relative),
GradientOrigin = new RelativePoint(0.34, 0.30, RelativeUnit.Relative),
RadiusX = new RelativeScalar(0.95, RelativeUnit.Relative),
RadiusY = new RelativeScalar(0.95, RelativeUnit.Relative),
GradientStops =
{
new GradientStop(Color.Parse("#1B4A78"), 0.0),
new GradientStop(Color.Parse("#123A5E"), 0.35),
new GradientStop(Color.Parse("#0B2440"), 0.68),
new GradientStop(Color.Parse("#05121F"), 1.0)
}
};
ctx.DrawEllipse(ocean, null, new Point(cx, cy), r, r);
// ③ 高光:左上方一个小亮点,强化球面
var spec = new RadialGradientBrush
{
Center = new RelativePoint(0.30, 0.26, RelativeUnit.Relative),
GradientOrigin = new RelativePoint(0.30, 0.26, RelativeUnit.Relative),
RadiusX = new RelativeScalar(0.30, RelativeUnit.Relative),
RadiusY = new RelativeScalar(0.30, RelativeUnit.Relative),
GradientStops =
{
new GradientStop(Color.FromArgb(70, 180, 220, 255), 0.0),
new GradientStop(Color.FromArgb(0, 180, 220, 255), 1.0)
}
};
ctx.DrawEllipse(spec, null, new Point(cx, cy), r, r);
}
// ---- 五带:按纬度带填色(用四边形条带逐格填充,避免整环多边形跨地平线破面)----
@@ -269,13 +313,16 @@ public sealed class GeographyView : Control
var pen = PlatePenFor(p.Id);
foreach (var line in p.Lines) DrawGeo3D(ctx, line, m, cx, cy, r, pen, true);
}
if (!_showLabels) return;
if (_showLabels) DrawPlateLabels3D(ctx, m, cx, cy, r);
}
private void DrawPlateLabels3D(DrawingContext ctx, Matrix4x4 m, float cx, float cy, float r)
{
foreach (var p in _plates.Plates)
{
var center = Centroid(p.Lines);
if (center == null) continue;
var cam = Geometry.ToCamera(Geometry.LatLonToUnit(center[1], center[0]), Matrix4x4.Identity, m);
var at = p.Label is { Length: >= 2 } ? p.Label : Centroid(p.Lines);
if (at == null) continue;
var cam = Geometry.ToCamera(Geometry.LatLonToUnit(at[1], at[0]), Matrix4x4.Identity, m);
if (cam.Z <= 0.2f) continue;
var pos = Geometry.Project(cam, r, cx, cy);
DrawText(ctx, Pick(p.NameI18n, p.Id), pos.X, pos.Y, 10.5 * TextScale,
@@ -283,6 +330,27 @@ public sealed class GeographyView : Control
}
}
/// <summary>五块大陆:与板块独立的线稿图层,便于讲清「板块 ≠ 大陆」。</summary>
private void DrawContinents3D(DrawingContext ctx, Matrix4x4 m, float cx, float cy, float r)
{
var pen = ContinentPen;
foreach (var c in _continents.Continents)
foreach (var line in c.Lines)
DrawGeo3D(ctx, line, m, cx, cy, r, pen, true);
if (!_showLabels) return;
foreach (var c in _continents.Continents)
{
var at = c.Label is { Length: >= 2 } ? c.Label : Centroid(c.Lines);
if (at == null) continue;
var cam = Geometry.ToCamera(Geometry.LatLonToUnit(at[1], at[0]), Matrix4x4.Identity, m);
if (cam.Z <= 0.2f) continue;
var pos = Geometry.Project(cam, r, cx, cy);
DrawText(ctx, Pick(c.NameI18n, c.Id), pos.X, pos.Y, 12 * TextScale,
MainlandBrush, TextAlignment.Center, FontStyle.Normal);
}
}
private void DrawBorders3D(DrawingContext ctx, Matrix4x4 m, float cx, float cy, float r)
{
foreach (var b in _borders.Borders)
@@ -443,7 +511,7 @@ public sealed class GeographyView : Control
DrawFlatPolyline(ctx, line, P, pen);
if (!_showLabels) continue;
var c = Centroid(pl.Lines);
var c = pl.Label is { Length: >= 2 } ? pl.Label : Centroid(pl.Lines);
if (c == null) continue;
var at = P(c[0], c[1]);
DrawText(ctx, Pick(pl.NameI18n, pl.Id), at.X, at.Y, 10.5 * TextScale,
@@ -451,6 +519,23 @@ public sealed class GeographyView : Control
}
}
// 五大陆
if (_showContinents)
{
foreach (var c in _continents.Continents)
{
foreach (var line in c.Lines)
DrawFlatPolyline(ctx, line, P, ContinentPen);
if (!_showLabels) continue;
var a = c.Label is { Length: >= 2 } ? c.Label : Centroid(c.Lines);
if (a == null) continue;
var at = P(a[0], a[1]);
DrawText(ctx, Pick(c.NameI18n, c.Id), at.X, at.Y, 12 * TextScale,
MainlandBrush, TextAlignment.Center);
}
}
// 洲界
if (_showBorders)
{
@@ -531,6 +616,7 @@ public sealed class GeographyView : Control
"亚洲-欧洲" => Color.FromRgb(120, 226, 255), // 青
"欧洲-非洲" => Color.FromRgb(168, 148, 255), // 紫
"北美-南美" => Color.FromRgb(120, 255, 176), // 绿
"南美-南极" => Color.FromRgb(96, 232, 222), // 青绿(德雷克海峡)
"亚洲-北美" => Color.FromRgb(255, 140, 220), // 粉
"亚洲-大洋洲" => Color.FromRgb(255, 160, 96), // 橙
"南极洲" => Color.FromRgb(200, 225, 255), // 冰蓝
@@ -544,20 +630,15 @@ public sealed class GeographyView : Control
private static IPen PlatePenFor(string id)
{
// 教材六大板块,每块一个颜色
var c = id switch
{
"pacific" => Color.FromRgb(255, 110, 110),
"north-american" => Color.FromRgb(255, 176, 84),
"south-american" => Color.FromRgb(255, 226, 96),
"african" => Color.FromRgb(150, 230, 110),
"eurasian" => Color.FromRgb(110, 214, 230),
"indo-australian" => Color.FromRgb(126, 160, 255),
"antarctic" => Color.FromRgb(208, 190, 255),
"nazca" => Color.FromRgb(255, 140, 200),
"cocos" => Color.FromRgb(255, 200, 130),
"caribbean" => Color.FromRgb(180, 240, 160),
"philippine" => Color.FromRgb(255, 160, 230),
"arabian" => Color.FromRgb(200, 220, 255),
"eurasian" => Color.FromRgb(110, 214, 230), // 青
"african" => Color.FromRgb(150, 230, 110), // 绿
"american" => Color.FromRgb(255, 176, 84), // 橙
"pacific" => Color.FromRgb(255, 110, 110), // 红
"indian-ocean" => Color.FromRgb(126, 160, 255), // 蓝紫
"antarctic" => Color.FromRgb(208, 190, 255), // 淡紫
_ => Color.FromRgb(255, 150, 100)
};
return new Pen(new SolidColorBrush(Color.FromArgb(225, c.R, c.G, c.B)), 1.55,
@@ -574,6 +655,11 @@ public sealed class GeographyView : Control
private static readonly IPen CoastPen = new Pen(new SolidColorBrush(Color.FromArgb(250, 236, 246, 255)), 1.75)
{ LineJoin = PenLineJoin.Round, LineCap = PenLineCap.Round };
/// <summary>五大陆轮廓:金黄色实线,与板块虚线明显区分。</summary>
private static readonly IPen ContinentPen = new Pen(new SolidColorBrush(Color.FromArgb(240, 255, 210, 74)), 2.0)
{ LineJoin = PenLineJoin.Round, LineCap = PenLineCap.Round };
private static readonly IBrush MainlandBrush = new SolidColorBrush(Color.FromRgb(255, 218, 110));
private static readonly IPen TropicPen = new Pen(new SolidColorBrush(Color.FromArgb(220, 255, 190, 100)), 1.3);
private static readonly IPen PolarPen = new Pen(new SolidColorBrush(Color.FromArgb(210, 150, 205, 255)), 1.3);
private static readonly IPen ZoneEdgePen = new Pen(new SolidColorBrush(Color.FromArgb(110, 200, 225, 255)), 0.9);
@@ -0,0 +1,115 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v8.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"EarthGeographyModel/1.0.3": {
"dependencies": {
"Avalonia": "11.3.9"
},
"runtime": {
"EarthGeographyModel.dll": {}
}
},
"Avalonia/11.3.9": {
"dependencies": {
"Avalonia.Remote.Protocol": "11.3.9",
"MicroCom.Runtime": "0.11.0"
},
"runtime": {
"lib/net8.0/Avalonia.Base.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.Controls.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.DesignerSupport.dll": {
"assemblyVersion": "0.7.0.0",
"fileVersion": "0.7.0.0"
},
"lib/net8.0/Avalonia.Dialogs.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.Markup.Xaml.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.Markup.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.Metal.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.MicroCom.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.OpenGL.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.Vulkan.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
}
}
},
"Avalonia.Remote.Protocol/11.3.9": {
"runtime": {
"lib/net8.0/Avalonia.Remote.Protocol.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
}
}
},
"MicroCom.Runtime/0.11.0": {
"runtime": {
"lib/net5.0/MicroCom.Runtime.dll": {
"assemblyVersion": "0.11.0.0",
"fileVersion": "0.11.0.0"
}
}
}
}
},
"libraries": {
"EarthGeographyModel/1.0.3": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Avalonia/11.3.9": {
"type": "package",
"serviceable": true,
"sha512": "sha512-YfaTrUxcmVTsGOw2YqdZyunHqZArK16m1pYfNIBvyvAgX89Pzd3A1PgoMkf64u7scL23IN6HkfqhZeFcbYWLoA==",
"path": "avalonia/11.3.9",
"hashPath": "avalonia.11.3.9.nupkg.sha512"
},
"Avalonia.Remote.Protocol/11.3.9": {
"type": "package",
"serviceable": true,
"sha512": "sha512-2XVLTSNa+Nvwu4D8NqqdudhllTaCRA9ZKlLZZvYLZeuLlzg7OcAV+df/biHQc6AqOv7iMFR9K5Zt3wG0EF4KfQ==",
"path": "avalonia.remote.protocol/11.3.9",
"hashPath": "avalonia.remote.protocol.11.3.9.nupkg.sha512"
},
"MicroCom.Runtime/0.11.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-MEnrZ3UIiH40hjzMDsxrTyi8dtqB5ziv3iBeeU4bXsL/7NLSal9F1lZKpK+tfBRnUoDSdtcW3KufE4yhATOMCA==",
"path": "microcom.runtime/0.11.0",
"hashPath": "microcom.runtime.0.11.0.nupkg.sha512"
}
}
}
@@ -0,0 +1,115 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v8.0",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v8.0": {
"EarthGeographyModel/1.0.4": {
"dependencies": {
"Avalonia": "11.3.9"
},
"runtime": {
"EarthGeographyModel.dll": {}
}
},
"Avalonia/11.3.9": {
"dependencies": {
"Avalonia.Remote.Protocol": "11.3.9",
"MicroCom.Runtime": "0.11.0"
},
"runtime": {
"lib/net8.0/Avalonia.Base.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.Controls.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.DesignerSupport.dll": {
"assemblyVersion": "0.7.0.0",
"fileVersion": "0.7.0.0"
},
"lib/net8.0/Avalonia.Dialogs.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.Markup.Xaml.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.Markup.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.Metal.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.MicroCom.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.OpenGL.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.Vulkan.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
},
"lib/net8.0/Avalonia.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
}
}
},
"Avalonia.Remote.Protocol/11.3.9": {
"runtime": {
"lib/net8.0/Avalonia.Remote.Protocol.dll": {
"assemblyVersion": "11.3.9.0",
"fileVersion": "11.3.9.0"
}
}
},
"MicroCom.Runtime/0.11.0": {
"runtime": {
"lib/net5.0/MicroCom.Runtime.dll": {
"assemblyVersion": "0.11.0.0",
"fileVersion": "0.11.0.0"
}
}
}
}
},
"libraries": {
"EarthGeographyModel/1.0.4": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Avalonia/11.3.9": {
"type": "package",
"serviceable": true,
"sha512": "sha512-YfaTrUxcmVTsGOw2YqdZyunHqZArK16m1pYfNIBvyvAgX89Pzd3A1PgoMkf64u7scL23IN6HkfqhZeFcbYWLoA==",
"path": "avalonia/11.3.9",
"hashPath": "avalonia.11.3.9.nupkg.sha512"
},
"Avalonia.Remote.Protocol/11.3.9": {
"type": "package",
"serviceable": true,
"sha512": "sha512-2XVLTSNa+Nvwu4D8NqqdudhllTaCRA9ZKlLZZvYLZeuLlzg7OcAV+df/biHQc6AqOv7iMFR9K5Zt3wG0EF4KfQ==",
"path": "avalonia.remote.protocol/11.3.9",
"hashPath": "avalonia.remote.protocol.11.3.9.nupkg.sha512"
},
"MicroCom.Runtime/0.11.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-MEnrZ3UIiH40hjzMDsxrTyi8dtqB5ziv3iBeeU4bXsL/7NLSal9F1lZKpK+tfBRnUoDSdtcW3KufE4yhATOMCA==",
"path": "microcom.runtime/0.11.0",
"hashPath": "microcom.runtime.0.11.0.nupkg.sha512"
}
}
}
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
@@ -0,0 +1 @@
c5f16ca9fce0f0594ebc177c2ecb2b54604734e59fc765d9f79f6e5986cc8840
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("NeoRF")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.3.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.3+5e0b46b3f3cd9800af177571c7809a7cdc8e9249")]
[assembly: System.Reflection.AssemblyProductAttribute("Earth Model Studio")]
[assembly: System.Reflection.AssemblyTitleAttribute("EarthGeographyModel")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.3.0")]
[assembly: System.Resources.NeutralResourcesLanguageAttribute("zh-Hans")]
// Generated by the MSBuild WriteCodeFragment class.
@@ -0,0 +1 @@
23e7870a86ac5dd2806c4361ac2881c5183aaff8f1f41e3785e44cba6cf89c09
@@ -0,0 +1,25 @@
is_global = true
build_property.AvaloniaNameGeneratorIsEnabled = true
build_property.AvaloniaNameGeneratorBehavior = InitializeComponent
build_property.AvaloniaNameGeneratorDefaultFieldModifier = internal
build_property.AvaloniaNameGeneratorFilterByPath = *
build_property.AvaloniaNameGeneratorFilterByNamespace = *
build_property.AvaloniaNameGeneratorViewFileNamingStrategy = NamespaceAndClassName
build_property.AvaloniaNameGeneratorAttachDevTools = true
build_property.TargetFramework = net8.0
build_property.TargetFrameworkIdentifier = .NETCoreApp
build_property.TargetFrameworkVersion = v8.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property.EnforceExtendedAnalyzerRules =
build_property.EntryPointFilePath =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = NeoRF.EarthModels
build_property.ProjectDir = /Users/morris/Downloads/GC#/model/earth-geography/src/
build_property.EnableComHosting =
build_property.EnableGeneratedComInterfaceComImportInterop =
build_property.EffectiveAnalysisLevelStyle = 8.0
build_property.EnableCodeStyleSeverity =
@@ -0,0 +1 @@
c78a6ef41b63479935eee5ff8c1b58d6f2207d419745554527580c2a89b09f4d
@@ -0,0 +1,13 @@
/Users/morris/Downloads/GC#/model/earth-geography/src/bin/Debug/net8.0/EarthGeographyModel.deps.json
/Users/morris/Downloads/GC#/model/earth-geography/src/bin/Debug/net8.0/EarthGeographyModel.dll
/Users/morris/Downloads/GC#/model/earth-geography/src/bin/Debug/net8.0/EarthGeographyModel.pdb
/Users/morris/Downloads/GC#/model/earth-geography/src/obj/Debug/net8.0/EarthGeographyModel.csproj.AssemblyReference.cache
/Users/morris/Downloads/GC#/model/earth-geography/src/obj/Debug/net8.0/Avalonia/Resources.Inputs.cache
/Users/morris/Downloads/GC#/model/earth-geography/src/obj/Debug/net8.0/EarthGeographyModel.GeneratedMSBuildEditorConfig.editorconfig
/Users/morris/Downloads/GC#/model/earth-geography/src/obj/Debug/net8.0/EarthGeographyModel.AssemblyInfoInputs.cache
/Users/morris/Downloads/GC#/model/earth-geography/src/obj/Debug/net8.0/EarthGeographyModel.AssemblyInfo.cs
/Users/morris/Downloads/GC#/model/earth-geography/src/obj/Debug/net8.0/EarthGeographyModel.csproj.CoreCompileInputs.cache
/Users/morris/Downloads/GC#/model/earth-geography/src/obj/Debug/net8.0/EarthGeographyModel.dll
/Users/morris/Downloads/GC#/model/earth-geography/src/obj/Debug/net8.0/refint/EarthGeographyModel.dll
/Users/morris/Downloads/GC#/model/earth-geography/src/obj/Debug/net8.0/EarthGeographyModel.pdb
/Users/morris/Downloads/GC#/model/earth-geography/src/obj/Debug/net8.0/ref/EarthGeographyModel.dll
@@ -0,0 +1,146 @@
{
"format": 1,
"restore": {
"/Users/morris/Downloads/GC#/model/earth-geography/src/EarthGeographyModel.csproj": {}
},
"projects": {
"/Users/morris/Downloads/GC#/model/earth-geography/src/EarthGeographyModel.csproj": {
"version": "1.0.4",
"restore": {
"projectUniqueName": "/Users/morris/Downloads/GC#/model/earth-geography/src/EarthGeographyModel.csproj",
"projectName": "EarthGeographyModel",
"projectPath": "/Users/morris/Downloads/GC#/model/earth-geography/src/EarthGeographyModel.csproj",
"packagesPath": "/Users/morris/.nuget/packages/",
"outputPath": "/Users/morris/Downloads/GC#/model/earth-geography/src/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/Users/morris/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"framework": "net8.0",
"targetAlias": "net8.0",
"projectReferences": {
"/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/EarthModelStudio.ModelSdk.csproj": {
"projectPath": "/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/EarthModelStudio.ModelSdk.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "10.0.400"
},
"frameworks": {
"net8.0": {
"framework": "net8.0",
"targetAlias": "net8.0",
"dependencies": {
"Avalonia": {
"target": "Package",
"version": "[11.3.9, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/10.0.401/PortableRuntimeIdentifierGraph.json"
}
}
},
"/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/EarthModelStudio.ModelSdk.csproj": {
"version": "1.0.4",
"restore": {
"projectUniqueName": "/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/EarthModelStudio.ModelSdk.csproj",
"projectName": "EarthModelStudio.ModelSdk",
"projectPath": "/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/EarthModelStudio.ModelSdk.csproj",
"packagesPath": "/Users/morris/.nuget/packages/",
"outputPath": "/Users/morris/Downloads/GC#/model/_sdk/EarthModelStudio.ModelSdk/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/Users/morris/.nuget/NuGet/NuGet.Config"
],
"originalTargetFrameworks": [
"net8.0"
],
"sources": {
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net8.0": {
"framework": "net8.0",
"targetAlias": "net8.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
},
"restoreAuditProperties": {
"enableAudit": "true",
"auditLevel": "low",
"auditMode": "direct"
},
"SdkAnalysisLevel": "10.0.400"
},
"frameworks": {
"net8.0": {
"framework": "net8.0",
"targetAlias": "net8.0",
"dependencies": {
"Avalonia": {
"target": "Package",
"version": "[11.3.9, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48",
"net481"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/local/share/dotnet/sdk/10.0.401/PortableRuntimeIdentifierGraph.json"
}
}
}
}
}
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">/Users/morris/.nuget/packages/</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">/Users/morris/.nuget/packages/</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">7.0.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="/Users/morris/.nuget/packages/" />
</ItemGroup>
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)avalonia/11.3.9/buildTransitive/Avalonia.props" Condition="Exists('$(NuGetPackageRoot)avalonia/11.3.9/buildTransitive/Avalonia.props')" />
</ImportGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgAvalonia_BuildServices Condition=" '$(PkgAvalonia_BuildServices)' == '' ">/Users/morris/.nuget/packages/avalonia.buildservices/11.3.2</PkgAvalonia_BuildServices>
<PkgAvalonia Condition=" '$(PkgAvalonia)' == '' ">/Users/morris/.nuget/packages/avalonia/11.3.9</PkgAvalonia>
</PropertyGroup>
</Project>
Loaded 100 of 292 files, more files were not shown because too many files have changed in this diff. Show more