diff --git a/.gitignore b/.gitignore index 0083251..4888871 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,14 @@ __pycache__/ out/*.npz data/*.parts/ .DS_Store + +# Android APK(壳工程)构建产物 +android/build/ +android/**/build/ +android/.gradle/ +android/local.properties +android/keystore/ +android/icon-preview.png +.idea/ +*.iml +dist/ diff --git a/README.md b/README.md index d16966b..6b6c193 100644 --- a/README.md +++ b/README.md @@ -233,6 +233,72 @@ surface/material occupancy,而不是完整的“车辆实体障碍物”语义 页面数据全部内嵌在 `web/data.js`,不依赖后端或网络;OCP 只在离线推理阶段使用。 three.js 和 OrbitControls 已放在 `web/vendor/`,可离线打开。 +## 装箱模拟(新页签) + +顶部页签切到「装箱模拟」(`web/packing.html`),是一套可以玩的装箱推演: + +![装箱模拟](docs/packing-preview.png) + +- **待选零件**:30 件货物(车 + 29 件异形件),每件可单独设置拟合方式 / 正向 / 堆码个数; +- **全部装箱**:一键把待选件依次放进 40 尺箱(40' GP / 40' HC 可切换); +- **装满提示**:某件找不到合法位置时弹出「集装箱已满」,该件留在待选并标「装不下」, + 不会硬塞; +- **重新推理**:从箱底逐层沿 X/Y 扫描,每个空位把所有剩余件按体积从大到小试放, + 第一个满足「堆码 + 承重 + 支撑 + 间隙」的就放下,像冒泡一样一路铺到箱尾; + 多组扫描方向(X↑/X↓/Y↑/Y↓ 等)并行评估,取填充率最高的一组,并显示各方向对比曲线; +- **逐件加入 / 移除**:点待选行的「+ 装箱」单独试放,点清单里的「移除」退回待选; +- **右键菜单**:在左侧任意器件上右键,直接改正向锁定、堆码个数、承重上限、拟合方式、自身重量, + 应用后自动重新扫描铺装;左侧只保留浏览,不再重复放编辑控件; +- **3D 查看**:右侧视口略收窄,右上角有 **XYZ 罗盘**——**拖动罗盘即可旋转**(触屏/鼠标通用), + 轻点回到整体视角;鼠标 **左键平移、中键拖动旋转、滚轮缩放**;触屏 **单指平移、双指缩放**; + 整体 / 俯视 / 侧视 / 门端 / 翻转 / 居中 / 自转;实体 / 虚影 / X 光三种显示; +- **装箱清单**:面板里的清单就是最终装载顺序,可「导出清单」下载 CSV; +- **理论极限与红警**:先算 Σ货物占用体积 / 箱内容积 = 理论上限;铺装后若明显低于上限 + (差距 >1% 标红、1% 内标琥珀、≤0.5% 标绿),并自动补扫 8 组随机顺序 + 缝隙补装去逼近。 + +**每件货的三个参数**(在「零件参数」里改,改完自动重推): + +| 参数 | 含义 | +| --- | --- | +| 拟合方式 | 默认 **长方体**(最小外接盒);显式切成 **小立方体** 才按 100 mm 体素占位,可与长方体混装 | +| 正向锁定 | 锁定只允许绕竖轴 0/90/180/270°;不锁定允许球面任意角度(长方体倾斜只会变大,所以只枚举轴向;小立方体件才采样空间角度) | +| 堆码个数 | 整数 **1–9**:1 = 不可再压,2 = 上面还能再堆 1 个……同一竖列按「最小堆码个数」为准 | +| 承重上限 | 顶部能承受的总载荷(kg,0 = 不可压),落位时逐层传播校验 | +| 自身重量 | 参与载荷传播与整箱重心计算,可在右键菜单里改 | + +体素件的中空 / 内凹 / 半开放腔体不占堆码深度位,所以即使堆码个数是 1,孔洞、框架内部、 +凹腔里仍然可以继续塞货。间隙按 1 个体素(100 mm)预留,叠放要求底面 ≥60% 支撑。 + +**重力与稳定性**:大底面积(≥1.5 m²)的件按“稳”字顺序优先垫底;这类件放到高层时要求 +支撑率 ≥85%(普通件 ≥60%),警告区会提示“还有 N 件大底面积货物位于高位,建议下沉”。 + +**刚体力学校验**:每个体素件的质心由体素质量分布算出来;落位时要求质心落在接触区内, +偏心率会放大等效载荷(`1 + 1.5·e/half`,上限 2.5),再逐层向下传播校验承重——用体素模型 +而不是外接盒来传递受力,就是为了少受“包围盒虚胖”的力矩干扰。 + +所有计算都在浏览器里完成(`web/packing.js`:重力下落 + 极值点候选 + 打分 + 多轮迭代), +不需要后端,也不读取 STEP 文件。车体体素来自 `src/gen_car_voxels.py` 生成的 +`web/car-voxels.js`(4 cm 栅格降采样到 10 cm)。 + +## Android APK(手机离线体验版) + +`android/` 是一个零依赖的 WebView 壳(单 Activity),把 `web/` 直接当作 assets 打包, +手机上打开就是同一套页面,**不需要 INTERNET 权限**,也不依赖服务器。 + +```powershell +# 需要 JDK 17 + Android SDK(platform 35 / build-tools 35) +$env:JAVA_HOME = 'E:\toolchain\jdk\jdk-17.0.21.1+2' +$env:ANDROID_SDK_ROOT = 'E:\toolchain\android-sdk' +.\android\build-apk.ps1 # → dist/occupancy-fitting-1.0.apk +``` + +安装:`adb install -r dist\occupancy-fitting-1.0.apk`,或把 APK 传到手机点击安装 +(允许「未知来源」)。包名 `com.occupancyfit.app`,应用名「占用拟合」, +minSdk 24 / targetSdk 34,约 3.5 MB。 + +`android/` 同时是标准 AGP 工程,可用 Android Studio 打开;构建细节、签名和 +Windows 打包坑见 [android/README.md](android/README.md)。 + ## 文件结构 ```text @@ -250,7 +316,11 @@ occupancy-fitting/ │ ├── app.js │ ├── style.css │ ├── data.js # inference.py 生成(含网格和体素) +│ ├── packing.html # 装箱模拟页签 +│ ├── packing.js # 浏览器内的装箱引擎 + 3D 场景 +│ ├── packing.css │ └── vendor/ # three.js r128 + OrbitControls(MIT) +├── android/ # WebView 壳工程,打包成 APK(见 android/README.md) ├── out/ │ ├── report.json # 完整结果与每种边长的指标 │ └── metrics.csv # 可做表格/画图的扁平指标 diff --git a/android/README.md b/android/README.md new file mode 100644 index 0000000..cfb5db5 --- /dev/null +++ b/android/README.md @@ -0,0 +1,86 @@ +# Android APK 壳工程 + +把 `web/`(three.js + `data.js`)装进一个单 Activity 的 WebView,做成可安装的 APK。 +页面本身完全离线,因此**不需要 INTERNET 权限**。 + +## 目录 + +```text +android/ +├── app/ +│ ├── build.gradle # 标准 AGP 工程(Android Studio 可直接打开) +│ └── src/main/ +│ ├── AndroidManifest.xml +│ ├── java/com/occupancyfit/app/MainActivity.java +│ └── res/ # 主题、字符串、图标(图标由脚本生成) +├── build-apk.ps1 # 无 Gradle 的离线构建脚本(推荐) +├── tools/make-icons.ps1 # 生成 adaptive icon 与各密度 PNG +├── keystore/occupancy.jks # 本机调试签名(被 .gitignore 忽略) +└── build/ # 中间产物(被忽略) +``` + +`app/build.gradle` 里 `assets.srcDirs` 直接指向仓库的 `../web`,不复制文件; +改完网页重新打包即可生效。 + +## 构建 + +需要 JDK 17、Android SDK(`platforms/android-35` + `build-tools/35.0.0`)。 +默认路径是本机的 `E:\toolchain`,可通过 `JAVA_HOME` / `ANDROID_SDK_ROOT` 覆盖: + +```powershell +Set-ExecutionPolicy -Scope Process Bypass -Force +$env:JAVA_HOME = 'E:\toolchain\jdk\jdk-17.0.21.1+2' +$env:ANDROID_SDK_ROOT = 'E:\toolchain\android-sdk' +.\android\build-apk.ps1 +``` + +产物:`dist/occupancy-fitting-1.0.apk`(约 3.5 MB,minSdk 24 / targetSdk 34)。 + +也可以走 Gradle(`android/` 是标准 AGP 8.7.3 工程,首次构建需要联网解析依赖): + +```powershell +cd android; .\gradlew.bat assembleRelease +``` + +## 脚本做了哪 6 步 + +1. 复制 manifest 并注入 `package`(Gradle 用的源 manifest 保持无 `package`,两边都能用); +2. `aapt2 compile` + `aapt2 link`:资源、图标、`assets/web` 一起打包; +3. `javac -encoding UTF-8 -source 8 -target 8` 编译 `MainActivity`; +4. `d8` 生成 `classes.dex`; +5. `jar -cf0M` 重新归档(正斜杠路径 + Store 条目),`zipalign -p 4` 对齐; +6. `apksigner` 用 `keystore/occupancy.jks` 签名,并做结构与签名自检。 + +## Windows 上踩过的四个坑 + +- **aapt2 写反斜杠**:`-A web` 会把 `vendor\three.min.js` 写进 zip,Android 只认 + `/`,运行时会 404。所以最后用 `jar` 重新归档。 +- **`resources.arsc` 必须是 Store**:Android 11+ 安装时强校验(targetSdk ≥ 30), + 但 .NET 的 `ZipArchive` 传 `NoCompression` 仍写 deflate 存储块,只能用 `jar -cf0M` + (全部 Store)才能满足。 +- **`d8` 不接受目录**:这个版本只吃 `.class` 文件列表,所以脚本显式枚举。 +- **`javac` 默认 GBK**:源码含中文注释时必须加 `-encoding UTF-8`;`-Xlint:-options` + 这种带冒号的参数经 PowerShell 传给原生程序会被拆坏,改用 argfile 传参。 + +## 签名 + +`keystore/occupancy.jks`,别名与密码都是 `occupancy`(仅本机演示用,别拿来发布)。 +该文件被 `.gitignore` 忽略;换机器重新生成会导致签名不同,**覆盖安装前需先卸载旧版**。 + +## 安装 + +```powershell +adb install -r dist\occupancy-fitting-1.0.apk +``` + +或把 APK 传到手机,点击安装并允许「未知来源」。应用名「占用拟合」, +`com.occupancyfit.app`。 + +## 图标 + +```powershell +Set-ExecutionPolicy -Scope Process Bypass -Force +.\android\tools\make-icons.ps1 # 输出各密度 PNG + adaptive icon 前景 + icon-preview.png +``` + +风格:等轴测线框立方体 + 中截面细分(呼应体素网格),一条橙色棱表示“被占据的立方体”。 diff --git a/android/app/build.gradle b/android/app/build.gradle new file mode 100644 index 0000000..0947f2d --- /dev/null +++ b/android/app/build.gradle @@ -0,0 +1,47 @@ +plugins { + id 'com.android.application' +} + +android { + namespace 'com.occupancyfit.app' + compileSdk 35 + + defaultConfig { + applicationId 'com.occupancyfit.app' + minSdk 24 + // keep targetSdk at 34: Android 15 forces edge-to-edge for targetSdk 35, + // which would draw the WebView under the status bar + targetSdk 34 + versionCode 10 + versionName '1.9' + } + + signingConfigs { + release { + storeFile rootProject.file('keystore/occupancy.jks') + storePassword 'occupancy' + keyAlias 'occupancy' + keyPassword 'occupancy' + } + } + + buildTypes { + release { + minifyEnabled false + shrinkResources false + signingConfig signingConfigs.release + } + } + + sourceSets { + main { + // package the repo's web/ folder directly instead of copying 3 MB of data.js + assets.srcDirs = [rootProject.file('../web').absolutePath] + } + } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 + } +} diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..9739603 --- /dev/null +++ b/android/app/src/main/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + diff --git a/android/app/src/main/java/com/occupancyfit/app/MainActivity.java b/android/app/src/main/java/com/occupancyfit/app/MainActivity.java new file mode 100644 index 0000000..5c44ff5 --- /dev/null +++ b/android/app/src/main/java/com/occupancyfit/app/MainActivity.java @@ -0,0 +1,129 @@ +package com.occupancyfit.app; + +import android.annotation.SuppressLint; +import android.app.Activity; +import android.content.Intent; +import android.graphics.Color; +import android.net.Uri; +import android.os.Bundle; +import android.view.View; +import android.view.ViewGroup; +import android.webkit.WebChromeClient; +import android.webkit.WebResourceRequest; +import android.webkit.WebSettings; +import android.webkit.WebView; +import android.webkit.WebViewClient; + +/** + * 单 Activity 的 WebView 外壳:加载 assets 里的 web/index.html(离线三维体素拟合页面)。 + */ +public class MainActivity extends Activity { + + private static final String APP_BG = "#0A0E17"; + private static final String START_URL = "file:///android_asset/index.html"; + + private WebView webView; + + @SuppressLint({"SetJavaScriptEnabled", "AddJavascriptInterface"}) + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + int bg = Color.parseColor(APP_BG); + getWindow().setStatusBarColor(bg); + getWindow().setNavigationBarColor(bg); + getWindow().setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(bg)); + + webView = new WebView(this); + webView.setBackgroundColor(bg); + webView.setLayoutParams(new ViewGroup.LayoutParams( + ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); + + WebSettings settings = webView.getSettings(); + settings.setJavaScriptEnabled(true); + settings.setDomStorageEnabled(true); + settings.setAllowFileAccess(true); + settings.setAllowContentAccess(false); + settings.setSupportZoom(false); + settings.setBuiltInZoomControls(false); + settings.setDisplayZoomControls(false); + settings.setUseWideViewPort(false); + settings.setLoadWithOverviewMode(false); + settings.setTextZoom(100); + settings.setMediaPlaybackRequiresUserGesture(false); + settings.setCacheMode(WebSettings.LOAD_NO_CACHE); + + webView.setWebViewClient(new WebViewClient() { + @Override + public boolean shouldOverrideUrlLoading(WebView view, WebResourceRequest request) { + return openExternally(request.getUrl()); + } + + @Override + public void onPageFinished(WebView view, String url) { + view.setBackgroundColor(Color.TRANSPARENT); + } + }); + + // 让 WebGL 优先跑在硬件上,并允许 canvas 全屏(页面里没有,但留着不会出问题) + webView.setWebChromeClient(new WebChromeClient()); + + setContentView(webView); + webView.loadUrl(START_URL); + } + + /** file:// 留在 WebView 内,其余 scheme 交给系统浏览器。 */ + private boolean openExternally(Uri uri) { + String scheme = uri.getScheme(); + if (scheme == null || "file".equals(scheme) || "about".equals(scheme) + || "data".equals(scheme) || "blob".equals(scheme) || "javascript".equals(scheme)) { + return false; + } + try { + startActivity(new Intent(Intent.ACTION_VIEW, uri)); + } catch (Exception ignored) { + // 没有浏览器可处理时静默忽略,保持在当前页面 + } + return true; + } + + @Override + protected void onResume() { + super.onResume(); + if (webView != null) { + webView.onResume(); + webView.resumeTimers(); + } + } + + @Override + protected void onPause() { + if (webView != null) { + webView.onPause(); + webView.pauseTimers(); + } + super.onPause(); + } + + @Override + public void onBackPressed() { + if (webView != null && webView.canGoBack()) { + webView.goBack(); + return; + } + super.onBackPressed(); + } + + @Override + protected void onDestroy() { + if (webView != null) { + ViewGroup parent = (ViewGroup) webView.getParent(); + if (parent != null) { + parent.removeView(webView); + } + webView.destroy(); + webView = null; + } + super.onDestroy(); + } +} diff --git a/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..017183d Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..8efb9d8 Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..0763929 Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..7012bc5 Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png b/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..2b23aea Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/ic_launcher_foreground.png differ diff --git a/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..a8a8fa5 --- /dev/null +++ b/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..472934d Binary files /dev/null and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..da5bb3b Binary files /dev/null and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..e851962 Binary files /dev/null and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..3ec9226 Binary files /dev/null and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..355dc1b Binary files /dev/null and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/android/app/src/main/res/values/ic_launcher_background.xml b/android/app/src/main/res/values/ic_launcher_background.xml new file mode 100644 index 0000000..a2ba94c --- /dev/null +++ b/android/app/src/main/res/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #0B1018 + diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..12bcdc8 --- /dev/null +++ b/android/app/src/main/res/values/strings.xml @@ -0,0 +1,5 @@ + + + 占用拟合 + #0A0E17 + diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..29c5603 --- /dev/null +++ b/android/app/src/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + diff --git a/android/build-apk.ps1 b/android/build-apk.ps1 new file mode 100644 index 0000000..1bf2a5a --- /dev/null +++ b/android/build-apk.ps1 @@ -0,0 +1,169 @@ +# Builds a signed release APK without Gradle: +# aapt2 (resources + manifest + assets) -> javac -> d8 -> zipalign -> apksigner +# Usage: Set-ExecutionPolicy -Scope Process Bypass; .\android\build-apk.ps1 +$ErrorActionPreference = 'Continue' # native tools write hints to stderr; exit codes are checked explicitly + +$androidRoot = $PSScriptRoot +$repoRoot = (Resolve-Path "$androidRoot\..").Path + +$sdk = if ($env:ANDROID_SDK_ROOT) { $env:ANDROID_SDK_ROOT } else { 'E:\toolchain\android-sdk' } +$javaHome = if ($env:JAVA_HOME) { $env:JAVA_HOME } else { 'E:\toolchain\jdk\jdk-17.0.21.1+2' } +$buildTools = Join-Path $sdk 'build-tools\35.0.0' +$androidJar = Join-Path $sdk 'platforms\android-35\android.jar' + +$env:JAVA_HOME = $javaHome +$env:PATH = "$javaHome\bin;$buildTools;$env:PATH" + +foreach ($p in @($buildTools, $androidJar, (Join-Path $javaHome 'bin\javac.exe'))) { + if (-not (Test-Path $p)) { throw "missing toolchain path: $p" } +} + +$build = Join-Path $androidRoot 'build' +$classes = Join-Path $build 'classes' +$dexDir = Join-Path $build 'dex' +$res = Join-Path $androidRoot 'app\src\main\res' +$srcJava = Join-Path $androidRoot 'app\src\main\java' +$keystore = Join-Path $androidRoot 'keystore\occupancy.jks' +$apkOut = Join-Path $repoRoot 'dist\occupancy-fitting-1.9.apk' + +if (Test-Path $build) { Remove-Item -Recurse -Force $build } +New-Item -ItemType Directory -Force -Path $build, $classes, $dexDir, (Join-Path $repoRoot 'dist') | Out-Null + +function Invoke-Tool { + param([string]$Exe, [string[]]$Arguments, [string]$What) + $out = & $Exe @Arguments 2>&1 + $code = $LASTEXITCODE + if ($out) { $out | ForEach-Object { Write-Host " $_" } } + if ($code -ne 0) { throw "$What failed (exit $code)" } +} + +# ---- 1. manifest: inject package name (AGP-compatible source stays package-free) ---- +$manifestSrc = Join-Path $androidRoot 'app\src\main\AndroidManifest.xml' +$manifest = Get-Content -Raw $manifestSrc +$manifest = $manifest -replace '', + '' +if ($manifest -notmatch 'package="com\.occupancyfit\.app"') { throw 'manifest package injection failed' } +$manifestBuilt = Join-Path $build 'AndroidManifest.xml' +[System.IO.File]::WriteAllText($manifestBuilt, $manifest, [System.Text.UTF8Encoding]::new($false)) + +$aapt2 = Join-Path $buildTools 'aapt2.exe' + +# ---- 2. resources + assets ---- +Write-Host '[1/6] aapt2 compile resources' +$resZip = Join-Path $build 'res.zip' +Invoke-Tool $aapt2 @('compile', '--dir', $res, '-o', $resZip) 'aapt2 compile' + +Write-Host '[2/6] aapt2 link (manifest + resources + assets/web)' +$unsigned = Join-Path $build 'unsigned.apk' +Invoke-Tool $aapt2 @( + 'link', + '-o', $unsigned, + '-I', $androidJar, + '--manifest', $manifestBuilt, + '-A', (Join-Path $repoRoot 'web'), + '-R', $resZip, + '--auto-add-overlay', + '--min-sdk-version', '24', + '--target-sdk-version', '34', + '--version-code', '10', + '--version-name', '1.9' +) 'aapt2 link' + +# ---- 3. java -> classes (argfile avoids PowerShell/backslash quoting problems) ---- +Write-Host '[3/6] javac' +$javaFiles = Get-ChildItem -Path $srcJava -Recurse -Filter *.java | ForEach-Object { $_.FullName } +$argFile = Join-Path $build 'javac.args' +$cp = $androidJar -replace '\\', '/' +$dst = $classes -replace '\\', '/' +$argLines = @( + '-encoding', 'UTF-8', + '-source', '8', + '-target', '8', + '-nowarn', + '-classpath', "`"$cp`"", + '-d', "`"$dst`"" +) +foreach ($f in $javaFiles) { + $fp = $f -replace '\\', '/' + $argLines += "`"$fp`"" +} +[System.IO.File]::WriteAllLines($argFile, $argLines, [System.Text.UTF8Encoding]::new($false)) +Invoke-Tool (Join-Path $javaHome 'bin\javac.exe') @("@$argFile") 'javac' + +# ---- 4. classes -> classes.dex ---- +Write-Host '[4/6] d8' +$d8 = Join-Path $buildTools 'd8.bat' +$classFiles = Get-ChildItem -Path $classes -Recurse -Filter *.class | ForEach-Object { $_.FullName } +if (-not $classFiles) { throw 'no .class files produced by javac' } +Invoke-Tool $d8 (@('--release', '--min-api', '24', '--lib', $androidJar, '--output', $dexDir) + $classFiles) 'd8' +$dex = Join-Path $dexDir 'classes.dex' +if (-not (Test-Path $dex)) { throw 'classes.dex not produced' } + +# ---- 5. assemble final archive: forward-slash paths + resources.arsc stored ---- +# aapt2 on Windows stores nested assets as "assets/vendor\file.js" (Android looks them up +# with '/' only), and .NET's ZipArchive cannot emit a true Store entry (NoCompression still +# writes deflate stored-blocks). Android 11+ refuses to install an APK whose +# resources.arsc is not stored, so the archive is rebuilt with `jar -cf0M`. +Write-Host '[5/6] repack (forward slashes, Store entries) + zipalign' +Add-Type -AssemblyName System.IO.Compression.FileSystem +$staging = Join-Path $build 'apk-contents' +[System.IO.Compression.ZipFile]::ExtractToDirectory($unsigned, $staging) +if (-not (Test-Path (Join-Path $staging 'AndroidManifest.xml'))) { throw 'staging extraction failed' } +Copy-Item -Force $dex (Join-Path $staging 'classes.dex') + +$repacked = Join-Path $build 'repacked.apk' +Invoke-Tool (Join-Path $javaHome 'bin\jar.exe') @('-cf0M', $repacked, '-C', $staging, '.') 'jar' + +$aligned = Join-Path $build 'aligned.apk' +Invoke-Tool (Join-Path $buildTools 'zipalign.exe') @('-p', '-f', '4', $repacked, $aligned) 'zipalign' + +# ---- 6. sign ---- +Write-Host '[6/6] apksigner' +if (-not (Test-Path $keystore)) { + Write-Host ' keystore missing, generating a local demo key' + New-Item -ItemType Directory -Force -Path (Split-Path $keystore) | Out-Null + Invoke-Tool (Join-Path $javaHome 'bin\keytool.exe') @( + '-genkeypair', '-keystore', $keystore, '-alias', 'occupancy', + '-keyalg', 'RSA', '-keysize', '2048', '-validity', '10000', + '-storepass', 'occupancy', '-keypass', 'occupancy', + '-dname', 'CN=Occupancy Fitting, OU=Demo, O=Local Build, L=Local, ST=Local, C=CN' + ) 'keytool' +} +$apksigner = Join-Path $buildTools 'apksigner.bat' +Invoke-Tool $apksigner @( + 'sign', + '--ks', $keystore, + '--ks-key-alias', 'occupancy', + '--ks-pass', 'pass:occupancy', + '--key-pass', 'pass:occupancy', + '--min-sdk-version', '24', + '--out', $apkOut, + $aligned +) 'apksigner sign' + +Write-Host '' +# ---- sanity checks ---- +$chk = [System.IO.Compression.ZipFile]::OpenRead($apkOut) +$entries = @($chk.Entries | ForEach-Object { $_.FullName }) +$arscEntry = $chk.Entries | Where-Object { $_.FullName -eq 'resources.arsc' } +$arscStored = ($arscEntry.Length -eq $arscEntry.CompressedLength) +$chk.Dispose() +$backslash = $entries | Where-Object { $_ -like '*\*' } +if ($backslash) { throw "backslash entry names remain: $($backslash -join ', ')" } +foreach ($need in @( + 'assets/index.html', 'assets/app.js', 'assets/data.js', 'assets/style.css', + 'assets/vendor/three.min.js', 'assets/vendor/OrbitControls.js', + 'classes.dex', 'resources.arsc')) { + if ($entries -notcontains $need) { throw "missing APK entry: $need" } +} +if (-not $arscStored) { throw 'resources.arsc must be Stored (uncompressed) for Android 11+' } +Write-Host 'entry check: ok (forward slashes, all assets present, resources.arsc stored)' + +Write-Host '' +Invoke-Tool $apksigner @('verify', '--verbose', '--print-certs', $apkOut) 'apksigner verify' + +Write-Host '' +$badging = & $aapt2 dump badging $apkOut 2>&1 +$badging | Select-String 'package:|application-label:|launchable-activity:|sdkVersion|targetSdkVersion|uses-permission' | + ForEach-Object { $_.Line } +Get-Item $apkOut | ForEach-Object { "APK: {0} ({1:N1} MB)" -f $_.FullName, ($_.Length / 1MB) } diff --git a/android/build.gradle b/android/build.gradle new file mode 100644 index 0000000..5b7ccba --- /dev/null +++ b/android/build.gradle @@ -0,0 +1,3 @@ +plugins { + id 'com.android.application' version '8.7.3' apply false +} diff --git a/android/gradle.properties b/android/gradle.properties new file mode 100644 index 0000000..ee1d36e --- /dev/null +++ b/android/gradle.properties @@ -0,0 +1,5 @@ +org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 +org.gradle.parallel=true +org.gradle.caching=true +android.useAndroidX=true +android.nonTransitiveRClass=true diff --git a/android/settings.gradle b/android/settings.gradle new file mode 100644 index 0000000..efd9892 --- /dev/null +++ b/android/settings.gradle @@ -0,0 +1,17 @@ +pluginManagement { + repositories { + google() + mavenCentral() + } +} + +dependencyResolutionManagement { + repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) + repositories { + google() + mavenCentral() + } +} + +rootProject.name = 'occupancy-fitting' +include ':app' diff --git a/android/tools/make-icons.ps1 b/android/tools/make-icons.ps1 new file mode 100644 index 0000000..4184267 --- /dev/null +++ b/android/tools/make-icons.ps1 @@ -0,0 +1,169 @@ +# Generates Android launcher icons: isometric wireframe cube + voxel mid-planes. +# Usage: Set-ExecutionPolicy -Scope Process Bypass; .\android\tools\make-icons.ps1 +$ErrorActionPreference = 'Stop' +Add-Type -AssemblyName System.Drawing + +$root = (Resolve-Path "$PSScriptRoot\..").Path +$res = Join-Path $root 'app\src\main\res' +$k = [Math]::Cos([Math]::PI / 6.0) +$tmp = Join-Path $env:TEMP 'occupancy-icon' + +function New-Glyph { + param([int]$Size, [double]$S) + + $bmp = [System.Drawing.Bitmap]::new($Size, $Size) + $g = [System.Drawing.Graphics]::FromImage($bmp) + $g.SmoothingMode = [System.Drawing.Drawing2D.SmoothingMode]::AntiAlias + $g.Clear([System.Drawing.Color]::Transparent) + + $cx = $Size / 2.0 + $cy = $Size / 2.0 + + $project = { + param($x, $y, $z) + [System.Drawing.PointF]::new( + [float]($cx + ($x - $y) * $k * $S), + [float]($cy + (($x + $y) * 0.5 - $z) * $S)) + } + + $verts = @() + foreach ($x in @(-1.0, 1.0)) { + foreach ($y in @(-1.0, 1.0)) { + foreach ($z in @(-1.0, 1.0)) { + $verts += [pscustomobject]@{ X = $x; Y = $y; Z = $z } + } + } + } + + $edges = @() + for ($i = 0; $i -lt $verts.Count; $i++) { + for ($j = $i + 1; $j -lt $verts.Count; $j++) { + $a = $verts[$i] + $b = $verts[$j] + $diff = 0 + if ($a.X -ne $b.X) { $diff++ } + if ($a.Y -ne $b.Y) { $diff++ } + if ($a.Z -ne $b.Z) { $diff++ } + if ($diff -eq 1) { $edges += , @($a, $b) } + } + } + + $cyan = [System.Drawing.Color]::FromArgb(255, 0x5F, 0xE8, 0xFF) + $glow = [System.Drawing.Pen]::new([System.Drawing.Color]::FromArgb(34, 0x5F, 0xE8, 0xFF), [float]($S * 0.20)) + $main = [System.Drawing.Pen]::new($cyan, [float]($S * 0.062)) + $inner = [System.Drawing.Pen]::new([System.Drawing.Color]::FromArgb(70, 0x5F, 0xE8, 0xFF), [float]($S * 0.022)) + $accent = [System.Drawing.Pen]::new([System.Drawing.Color]::FromArgb(220, 0xFF, 0x8A, 0x3D), [float]($S * 0.045)) + $main.LineJoin = [System.Drawing.Drawing2D.LineJoin]::Round + $inner.LineJoin = [System.Drawing.Drawing2D.LineJoin]::Round + $glow.LineJoin = [System.Drawing.Drawing2D.LineJoin]::Round + + foreach ($e in $edges) { + $g.DrawLine($glow, (& $project $e[0].X $e[0].Y $e[0].Z), (& $project $e[1].X $e[1].Y $e[1].Z)) + } + + $rings = @( + , @(@(0.0, -1.0, -1.0), @(0.0, 1.0, -1.0), @(0.0, 1.0, 1.0), @(0.0, -1.0, 1.0)) + , @(@(-1.0, 0.0, -1.0), @(1.0, 0.0, -1.0), @(1.0, 0.0, 1.0), @(-1.0, 0.0, 1.0)) + , @(@(-1.0, -1.0, 0.0), @(1.0, -1.0, 0.0), @(1.0, 1.0, 0.0), @(-1.0, 1.0, 0.0)) + ) + foreach ($ring in $rings) { + for ($i = 0; $i -lt 4; $i++) { + $p1 = $ring[$i] + $p2 = $ring[($i + 1) % 4] + $g.DrawLine($inner, (& $project $p1[0] $p1[1] $p1[2]), (& $project $p2[0] $p2[1] $p2[2])) + } + } + + foreach ($e in $edges) { + $g.DrawLine($main, (& $project $e[0].X $e[0].Y $e[0].Z), (& $project $e[1].X $e[1].Y $e[1].Z)) + } + + # one "occupied" voxel edge, highlighted in orange + $g.DrawLine($accent, (& $project 1.0 -1.0 1.0), (& $project 1.0 -1.0 -1.0)) + + $g.Dispose() + return $bmp +} + +if (-not (Test-Path $tmp)) { New-Item -ItemType Directory -Path $tmp | Out-Null } + +$glyph = New-Glyph -Size 1024 -S 190 +$glyph.Save((Join-Path $tmp 'glyph.png'), [System.Drawing.Imaging.ImageFormat]::Png) + +function New-RoundedPath { + param([int]$Size, [double]$Radius) + $p = [System.Drawing.Drawing2D.GraphicsPath]::new() + $d = $Radius * 2 + $p.AddArc(0, 0, [float]$d, [float]$d, 180, 90) + $p.AddArc([float]($Size - $d), 0, [float]$d, [float]$d, 270, 90) + $p.AddArc([float]($Size - $d), [float]($Size - $d), [float]$d, [float]$d, 0, 90) + $p.AddArc(0, [float]($Size - $d), [float]$d, [float]$d, 90, 90) + $p.CloseFigure() + return $p +} + +$bg = [System.Drawing.Color]::FromArgb(255, 0x0B, 0x10, 0x18) +$bgInner = [System.Drawing.Color]::FromArgb(255, 0x10, 0x1A, 0x28) +$bgEdge = [System.Drawing.Color]::FromArgb(90, 0x2A, 0x53, 0x6B) + +foreach ($d in @(@('mdpi', 48), @('hdpi', 72), @('xhdpi', 96), @('xxhdpi', 144), @('xxxhdpi', 192))) { + $name = $d[0] + $size = [int]$d[1] + $bmp = [System.Drawing.Bitmap]::new($size, $size) + $g = [System.Drawing.Graphics]::FromImage($bmp) + $g.SmoothingMode = [System.Drawing.Drawing2D.SmoothingMode]::AntiAlias + $g.InterpolationMode = [System.Drawing.Drawing2D.InterpolationMode]::HighQualityBicubic + $g.Clear([System.Drawing.Color]::Transparent) + + $path = New-RoundedPath -Size $size -Radius ([double]($size * 0.23)) + $rect = [System.Drawing.Rectangle]::new(0, 0, $size, $size) + $brush = [System.Drawing.Drawing2D.LinearGradientBrush]::new( + $rect, $bgInner, $bg, [System.Drawing.Drawing2D.LinearGradientMode]::Vertical) + $g.FillPath($brush, $path) + $pen = [System.Drawing.Pen]::new($bgEdge, [float][Math]::Max(1.0, $size * 0.012)) + $g.DrawPath($pen, $path) + + $side = [double]($size * 0.74) + $ox = ($size - $side) / 2.0 + $g.DrawImage($glyph, [System.Drawing.RectangleF]::new([float]$ox, [float]$ox, [float]$side, [float]$side)) + + $dir = Join-Path $res "mipmap-$name" + New-Item -ItemType Directory -Force -Path $dir | Out-Null + $bmp.Save((Join-Path $dir 'ic_launcher.png'), [System.Drawing.Imaging.ImageFormat]::Png) + $g.Dispose(); $bmp.Dispose(); $path.Dispose(); $brush.Dispose(); $pen.Dispose() +} + +foreach ($d in @(@('mdpi', 108), @('hdpi', 162), @('xhdpi', 216), @('xxhdpi', 324), @('xxxhdpi', 432))) { + $name = $d[0] + $size = [int]$d[1] + $bmp = [System.Drawing.Bitmap]::new($size, $size) + $g = [System.Drawing.Graphics]::FromImage($bmp) + $g.SmoothingMode = [System.Drawing.Drawing2D.SmoothingMode]::AntiAlias + $g.InterpolationMode = [System.Drawing.Drawing2D.InterpolationMode]::HighQualityBicubic + $g.Clear([System.Drawing.Color]::Transparent) + + $side = [double]($size * 0.62) + $ox = ($size - $side) / 2.0 + $g.DrawImage($glyph, [System.Drawing.RectangleF]::new([float]$ox, [float]$ox, [float]$side, [float]$side)) + + $dir = Join-Path $res "drawable-$name" + New-Item -ItemType Directory -Force -Path $dir | Out-Null + $bmp.Save((Join-Path $dir 'ic_launcher_foreground.png'), [System.Drawing.Imaging.ImageFormat]::Png) + $g.Dispose(); $bmp.Dispose() +} + +# 1024px preview with background, for eyeballing +$preview = [System.Drawing.Bitmap]::new(1024, 1024) +$pg = [System.Drawing.Graphics]::FromImage($preview) +$pg.SmoothingMode = [System.Drawing.Drawing2D.SmoothingMode]::AntiAlias +$pg.InterpolationMode = [System.Drawing.Drawing2D.InterpolationMode]::HighQualityBicubic +$pg.Clear($bg) +$path = New-RoundedPath -Size 1024 -Radius 235 +$brush = [System.Drawing.Drawing2D.LinearGradientBrush]::new( + [System.Drawing.Rectangle]::new(0, 0, 1024, 1024), $bgInner, $bg, [System.Drawing.Drawing2D.LinearGradientMode]::Vertical) +$pg.FillPath($brush, $path) +$pg.DrawImage($glyph, [System.Drawing.RectangleF]::new(128, 128, 768, 768)) +$preview.Save((Join-Path $root 'icon-preview.png'), [System.Drawing.Imaging.ImageFormat]::Png) +$pg.Dispose(); $preview.Dispose(); $glyph.Dispose() + +Write-Output "icons written to $res" diff --git a/docs/packing-mobile.png b/docs/packing-mobile.png new file mode 100644 index 0000000..b7773c1 Binary files /dev/null and b/docs/packing-mobile.png differ diff --git a/docs/packing-preview.png b/docs/packing-preview.png new file mode 100644 index 0000000..112fb6a Binary files /dev/null and b/docs/packing-preview.png differ diff --git a/src/gen_car_voxels.py b/src/gen_car_voxels.py new file mode 100644 index 0000000..81c5687 --- /dev/null +++ b/src/gen_car_voxels.py @@ -0,0 +1,110 @@ +#!/usr/bin/env python3 +"""Regenerate the 10 cm car occupancy grid embedded in web/packing.js. + +The fitting page stores the car as 4 cm occupancy cubes (`web/data.js`). +The packing page needs a coarser, compact grid, so we downsample to 10 cm by +majority vote and print a bit-packed base64 blob plus the dims. + +Run: python src/gen_car_voxels.py +""" +from __future__ import annotations + +import base64 +import json +import math +from pathlib import Path + +import numpy as np + +ROOT = Path(__file__).resolve().parents[1] +PITCH_MM = 100.0 +FINE_MM = 40.0 + + +def main() -> None: + raw = (ROOT / "web" / "data.js").read_text(encoding="utf-8") + data = json.loads(raw[raw.index("{"):].rstrip().rstrip(";")) + sd = data["sizes"][0] # 4 cm cubes + nx, ny, nz = sd["dims"] + idx = np.frombuffer(base64.b64decode(sd["indicesB64"]), dtype="= 0.5], j[frac >= 0.5], k[frac >= 0.5]] = True + + ratio = PITCH_MM / FINE_MM # 2.5 + ox, oy, oz = (int(math.ceil(n / ratio)) for n in (nx, ny, nz)) + coarse = np.zeros((ox, oy, oz), dtype=bool) + for cx in range(ox): + for cy in range(oy): + for cz in range(oz): + x0, x1 = int(cx * ratio), min(nx, int((cx + 1) * ratio) + 1) + y0, y1 = int(cy * ratio), min(ny, int((cy + 1) * ratio) + 1) + z0, z1 = int(cz * ratio), min(nz, int((cz + 1) * ratio) + 1) + block = fine[x0:x1, y0:y1, z0:z1] + # "any" keeps thin structures (wings, wheels) at the coarse pitch; + # majority would make the car ~0.7 m shorter than its real bbox. + if block.size and block.any(): + coarse[cx, cy, cz] = True + + # fill enclosed voids (cockpit, engine bay): flood the outside, then invert. + # open space under the wings stays empty, so parts can still tuck under them. + free = ~coarse + reach = np.zeros_like(coarse) + stack = [] + sx, sy, sz = free.shape + for x in range(sx): + for y in range(sy): + for z in (0, sz - 1): + if free[x, y, z]: + stack.append((x, y, z)) + for x in range(sx): + for z in range(sz): + for y in (0, sy - 1): + if free[x, y, z]: + stack.append((x, y, z)) + for y in range(sy): + for z in range(sz): + for x in (0, sx - 1): + if free[x, y, z]: + stack.append((x, y, z)) + while stack: + x, y, z = stack.pop() + if reach[x, y, z] or not free[x, y, z]: + continue + reach[x, y, z] = True + for dx, dy, dz in ((1, 0, 0), (-1, 0, 0), (0, 1, 0), (0, -1, 0), (0, 0, 1), (0, 0, -1)): + nx_, ny_, nz_ = x + dx, y + dy, z + dz + if 0 <= nx_ < sx and 0 <= ny_ < sy and 0 <= nz_ < sz and free[nx_, ny_, nz_] and not reach[nx_, ny_, nz_]: + stack.append((nx_, ny_, nz_)) + coarse = coarse | (~reach) + + + packed = np.packbits(coarse.ravel()) + blob = base64.b64encode(packed.tobytes()).decode("ascii") + + out = ROOT / "web" / "car-voxels.js" + out.write_text( + "/* generated by src/gen_car_voxels.py - 10 cm occupancy of AURORA A1 */\n" + "window.CAR_VOXELS = " + + json.dumps({ + "dims": [int(v) for v in coarse.shape], + "cells": int(coarse.sum()), + "pitchMm": PITCH_MM, + "b64": blob, + }, ensure_ascii=False, separators=(",", ":")) + + ";\n", + encoding="utf-8", + ) + print("fine dims :", (nx, ny, nz)) + print("coarse dims :", coarse.shape) + print("occupied cells:", int(coarse.sum()), "of", coarse.size) + print("wrote", out, f"({out.stat().st_size} bytes)") + + +if __name__ == "__main__": + main() diff --git a/web/car-voxels.js b/web/car-voxels.js new file mode 100644 index 0000000..10a5ee2 --- /dev/null +++ b/web/car-voxels.js @@ -0,0 +1,2 @@ +/* generated by src/gen_car_voxels.py - 10 cm occupancy of AURORA A1 */ +window.CAR_VOXELS = {"dims":[57,21,10],"cells":3247,"pitchMm":100.0,"b64":"wDAMAwAAAAgCAIA4DgIAgCAAAADAMAwDAAAwDAMAwAAAAgCAIA4DgIAgCAAAwDAMAwDAAAwAAAAAAAAAAAAAAYBgAAAAAAAAAAAAABAAAQAAAAAAAAAAAAAAcBwAAAAAAAAAAAAABAAAAAAAAAAAAAAAAGAcBwGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAcBwHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAcBwHAAAAAAAAAAAAAAAAeB4HgeAAAAAAAHgeB4HgAAAAAAB4HgeB4AA/D8Pw/AAAAAAAHgeB4DgAAAAAAD8Pw/D8AA/j+P4/gAAAAAYDwfB8DwAAAAAAD+P4/j+AA1jGP4/gAAAAAYDwPA8DwAAAAAAD+P4xjWAA1jGP4/gAAAAA8DwPA8DwAAAAAAD+P4xj2AAzjOP4/gAAAAA8DwfB8DwAAAAAAD+P4zjOAA/D8Pw/AAAAAB8HwfB8HwPAAAAAD8Pw/D8AAeB4HgeAAAAAB8HwfB8HwfAAAAAB4HgeB4AAAAAAAAAAAAAB8HwfB8HwfAAAAAAAAAAAAAAAAAAAAAAAAAB8Hwfh+HwfAAAAAAAAAAAAAAAAAAAAAAAAOB8H4fx/H4fB8AAAAAAAAAAAAAAAAAAAAAAfB+P4/z/P4fB8AAAAAAAAAAAAAAAAAAADAMfz+P+/7/v+/B/AMAwAAAAAAAAAAADwPA3D8fz9v28DwP2/Z/D8Nw8DwAAAAAAAADwfB8HwfD9vw/D8P2/Z8HwfB8DwAAAAAAAAHwfB8HwfD9PA8DwPg/R8HwfB8HwAAAAAAAAHwfB8HwfD9PA8zzPA/R8HwfB8HwAAAAAAAAHwfB8HwfD/PM9z3Ps/x8HwfB8HwAAAAAAAAHwfB8HwfD/P89z3P8/x8HwfB8HwAAAAAAAAHwfB8HwfD+P+////+/B8HwfB8HwAAAAAAAAHwfB8HwfD/P///////B8HwfB8HwAAAAAAAAHwfB8HwfD/P///////B8HwfB8HwAAAAAAAAHgfB8HwfD/v///////B8HwfB8HgAAAAAAAAHgeB8HwfD/v///////h8HwfB4HgAAAAAAAAAAeB4HgeD/P+/7/v+fh4HgeB4AAAAAAAAAAAAeB4HgeB/H+f5/n+fh4HgeB4AAAAAAAAAAAAeB4HgeB/H+f5/n+fh4HgeBwAAAAAAAAAAAAcB4HgeB/H8fx/H8fh4HgeAAAAAAAAAAAAAAcBwHAcB+H8fx/H8fBwHAcAAAAAAAAAAAAAAABwHAcB+H8fx/H8cBwHAcAAAAAAAAAAAAAAABwHAcB8H4fx/H4cBwHAcAAAAAAAAAAAAAAAAAHAcB8H4fh+H4cBwHAAAAAAAAAAAAAAAAAAAHAcB8Hwfh+HwcBwHAAAAAAAAAAAAAAAAAAAHAcBwHwfB8HwcBwGAAAAAAAAAAAAAAAAAAAGAcBwHwfB8HwcBwAAAAAAAAAAAAAAAAAAAAAAYBgHwfB8HwYBgAAAAAAAAAAAAeB4HgeCAIA4DgPg/D8Pg4DgIAuB4HgeB4AA/D8Pw/CAIAgCALg+D4LggCAIA/D8Pw/D8AA/j+P4/jAMAwDAPA+D4PAwDAMA/j+P4/j+AA1jGMY/hQFAUBQHAeB4HAUBQFA/j+MYxjWAA9jGMY/hQFAUBQHAeB4HAUBQFA/j+MYxjWAAzjOM4zhgGAYBgGAeB4GAYBgGA7jOM4zjOAA/D8Pw/BgGAYBgGAeB4GAYBgGA/D8Pw/D8AAeB4HgeAgCAIAgCAOA4CAIAgCAeB4HgeB4AAAAAAAAAwDAMAwDAOA4DAMAwDAMAAAAAAAAAAAAAAAARBEEAQBAEQRBEEAQBEEQAAAAAAAAAAAAAAABAEAQBAEEQRAEAQBAEAQAAAAAAAAAAAAAAABgGAQBAEAQBAEAQBAGAYAAAAAAAAAAAAAAAAgCAAAAAAAAAAAAAACAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"}; diff --git a/web/index.html b/web/index.html index 7dbed4e..43ef50d 100644 --- a/web/index.html +++ b/web/index.html @@ -9,6 +9,11 @@