transform op• 数据种类:mesh → voxel
• 调用: import fullseye as fs; fs.ledger.mesh_to_voxel(vertices, faces, size, bounds=None, samples=40000, device='cpu', smooth=0.8)(要直接调用实现,import match3d; match3d.mesh_to_voxel(vertices, faces, size, bounds=None, samples=40000, device='cpu', smooth=0.8);从台账取用则 ops3d.get("mesh_to_voxel"))
• GPU:该算子有 GPU 路径(device="cuda")
mesh(顶点+面)→ 密度 voxel。面上均匀采样 → splat(把 mesh 行接到所有方法)。
> 以下的详细说明为原文 —— 摘要与标题已翻译。
三角形上の一様点は barycentric(sqrt トリック)。占有 voxel が要るなら閾値化する。
手順: 各三角形の面積に比例して `samples 個の面を選び(default_rng(0)` の固定 seed
→ 毎回同じ点)、面内一様な barycentric 点を作って `points_to_voxel に渡す(smooth`
既定 0.8 voxel)。`faces は (F,3) の頂点 index、vertices` は (V,3)。
退化面(面積 0)しか無い mesh は確率が NaN になり `rng.choice` が ValueError を出す。
`bounds=None` ならサンプル点の min/max(mesh の bbox とほぼ一致するが、サンプル次第で
僅かに内側)。`bounds の検証・範囲外 clip は points_to_voxel` と同じ。
返り値 `(size, size, size)` float64 の点密度(占有ではない。占有が要るなら閾値で
2 値化)。軸順は頂点座標の列順。seed を変えたい・点群も欲しいときは `mesh_to_points` で
点群を作ってから `points_to_voxel` へ。
• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。
• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。
• transforms_repr — py -3.11 examples_3d/transforms_repr.py
voxel 作为输入)voxel_to_mips · voxel_to_mesh · signed_distance_field · to_points · sobel3d · hessian3d · curvature_maps · edt_jfa
transform)points_to_voxel · gaussians_to_voxel · mesh_to_points · depth_to_points · voxel_to_mips · voxel_to_mesh · tsdf_from_depth · signed_distance_field
*Provenance: match3d.py — 3D 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*
© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.