///|
/// Offline vertex-slice explorer for a three-dimensional cubical filtration.
/// Homology and cell values are embedded from MoonBit; JavaScript only filters
/// already computed values for display.
pub fn volume_slices_html(analysis : Analysis) -> String raise TopologyError {
  if analysis.filtration.kind != "cubical_volume" {
    raise TopologyError("volume slice report requires cubical_volume input")
  }
  let data = report_json(analysis)
    .stringify()
    .replace_all(old="<", new="\\u003c")
  let surfaces = volume_h2_surfaces_json(analysis)
    .stringify()
    .replace_all(old="<", new="\\u003c")
  let header =
    #|MoonTopoLens · 三维体素切片
    #|

MoonTopoLens · 三维体素切片

按 Z 层查看顶点值进入过滤复形的过程。H0/H1/H2 是整个三维复形的结果,并非单张切片的同调。

连通分量 H0
环路 H1
空腔 H2

橙色标出所选 H2 出生代表面经过的采样顶点;这是代数代表链,并非唯一或最短的实际空腔表面。青色表示已进入的顶点,深色表示尚未进入,灰色表示高于截止尺度。

三维代表面

点击或键盘选中方形面可跳到相应 Z 层;三维投影仅展示代表链,不包含医学空间方向。

查看完整条形码、持续图和区间报告

全部过滤复形与持续同调由 MoonBit 计算。本页可离线打开。
header + data + middle + surfaces + script }